This is a simple super trend based MAST trend.
By default the supertrend is 10 period with 3 ATR multiplier.
A moving average is used to benefit from the pullback entries.
Pullback : Price above Supertrend & below MA
Bullish: Price above Supertrend and above MA
pullback : Price below Supertrend & above MA
: Price below Supertrend & below MA
Refer to investopedia or any relevant articles for in detail about Supertrend.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.