OPEN-SOURCE SCRIPT

SMAgain vs EMAgain for ProfitTrailer

SMAgain or EMAgain in ProfitTrailer is the strategy using the spread difference between the price and combination of fast MA and slow MA.

Time frame numbers are from popular settings.

If you have positive buy value for gain starategy, it is mostly between the price and slow MA except one or two candle right after cross (sometimes three candles).

If you have negative buy value for gain starategy, it is mostly between the price and fast MA except one or two candle right after cross (sometimes three candles).

This script is to help myself understand the buy strategies of ProfitTrailer.

Any comments and suggestions are welcome.
Exponential Moving Average (EMA)emagainSimple Moving Average (SMA)smagain

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer