OPEN-SOURCE SCRIPT

Adaptive Autonomous Recursive Trailing Stop

Updated
Introduction

Trailing stop are important indicators in technical analysis, today i propose a new trailing stop A2RTS based on my last published indicator A2RMA (1), this last indicator directly used an error measurement thus providing a way to create enveloppes, which provide a direct way to create trailing stops based on highest/lowest rules.

The Indicator

If you need a more detailed explanation of this indicator i encourage you to check the A2RMA indicator post i made, parameters does not differ from the supertrend, thus having a length parameter and a factor parameter who is here described as gamma, gamma control how far away are the bands from each others thus spotting longer terms trends when gamma is higher.

snapshot

On BTCUSD

snapshot

Something worth mentioning is that the indicator sometimes behave like my MTA trailing stop indicator (2) who is closer to the price when a trend persist thus providing early exit points, however A2RTS behave a bit better.

snapshot

Price can sometimes break the trailing stop, this can be interpreted as a support/resistance or just as an exit point, the support resistance methodology on trailing stop is not the most recommended.

snapshot

Sometimes it is recommended to have an higher length rather than an high gamma like in this case for INTEL CORP, below gamma = 3 and length = 20

snapshot

The microprocessor market like to use higher length's instead of higher gamma's, A2RMA is a non-linear filter, this would explain such behaviour.

Conclusion

Trailing stops might not suffer as much from whipsaw trades than MA crossovers but they still remain inefficient when market is not trending, results of the proposed indicator on major forex pairs are more than disappointing, but i hope this will serve as basis for other trailing stops that might act a little bit better. I conclude this post by thanking everyone who support my work and i encourage you to modify this indicator and share it with the community.

Thanks for reading !

Cited Articles

Adaptive Autonomous Recursive Moving Average


MTA-Traling Stop




Release Notes
Replaced bar_index + minor changes
adaptivecolorsfiltersupertrendtrailingstoptrailingstoplossTrend Analysis

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?


Check out the indicators we are making at luxalgo: tradingview.com/u/LuxAlgo/
Also on:

Disclaimer