Testing Trailing Stops Against Real Account Trade History
Summary
The article describes extending a MetaTrader strategy tester EA so it can replay real account deals while applying alternative StopLoss, TakeProfit, and trailing-stop rules. It discusses Parabolic SAR and moving-average trailing approaches, then adapts trailing classes so a central loop can process open positions efficiently rather than each symbol object scanning every position independently.
The tester compares several trailing methods on historical trades and reports that a double exponential moving average improved the results by USD 1,397. The author presents this as an example of how changing exit rules can alter a strategy’s outcome, not as evidence that the same settings will work prospectively. Indicator defaults were used and trailing parameters were selected randomly; the article recommends testing settings separately for each symbol and accounting for its price behavior and volatility. The tool also lacks per-symbol custom trailing parameters, leaving that as a possible extension.
Key ideas
- A strategy tester can replay account deal history with revised stop and target settings.
- Parabolic SAR and moving averages can provide dynamic trailing stop levels.
- A shared position loop avoids repeated scans when several symbol-specific trading objects are used.
- The reported improvement came from a double exponential moving average trailing rule.
- Random settings and standard indicator parameters limit the strength and generality of the reported comparison.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.