12. 2. 2023

5 9

ATR Trailing Stops

ATR Trailing Stops. Works in 137 and higher.

Blog post: https://strategyquant.com/blog/the-atr-trailing-stops-indicator-when-and-how-to-use-it-for-effective-trading/

Subscribe
Notify of
9 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Peter Morrow
16. 2. 2023 9:04 am

hi my code editor can’t compile this script, nor MAMAFAMAKAMA. Hope i spelt that correctly. 😛

eastpeace
18. 2. 2023 1:17 pm

Hello, clonex,
Why multiply the ATR by ATRMultiplier twice, which seems to make the final result meaningless.

            double atrMultiplied = averageCalculator.getValue() * ATRMultiplier;
            double Stop = atrMultiplied*ATRMultiplier;
tjunjie
Reply to  clonex / Ivan Hudec
7. 6. 2023 2:51 am

is there a new link?

Emmanuel
16. 3. 2023 8:59 am

Excellent , Thank you Ivan

GaryAitcheson
12. 5. 2023 10:25 am

This looks really promising. However when I try to run a backtest on MT5 it gives me these errors:
Tester program file ‘SqATRTrailingStops’.ex5 read error
Tester program file Indicators\’SqATRTrailingStops’.ex5 read error
Custom Indicator loading of ‘SqATRTrailingStops’ GBPUSD,H1 failed [557]
Strategy 1.41.74 (GBPUSD,H1) 2017.01.04 00:00:00  cannot load custom indicator ”SqATRTrailingStops” [4802]
Strategy 1.41.74 (GBPUSD,H1) 2017.01.04 00:00:00  indicator create error
Tester OnTester critical error