Add trailing stop to BO EA v5.1 — all 17 presets enabled

ApplyTrailingStop() runs every 5s on open positions: activates after
1000 pts (100 pips) of profit, trails SL 500 pts (50 pips) behind price.
SL only moves in the profitable direction, never backwards.

New inputs: InpUseTrailingStop, InpTrailStart, InpTrailStop (all presets
set to true/1000/500). EA version bumped 5.0 → 5.1.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-02 02:44:24 -04:00
co-authored by Claude Sonnet 4.6
parent bae25d07eb
commit 0175a6edff
18 changed files with 146 additions and 2 deletions
+5
View File
@@ -27,6 +27,11 @@ ATRMultiplier=1.2
InpUseStopLoss=true
StopLoss=180
; === Trailing Stop ===
InpUseTrailingStop=true
InpTrailStart=1000
InpTrailStop=500
; === Risk Management ===
TRADE_RANGE=40
LongLimit=0