Adaptive ATR Trailing Stop
- Utilità
-
Seref Oliver Joisten
Welcome to my profile. I’m an embedded software engineer and active trader with a relentless drive to build trading tools that actually work in real-world conditions—no cheap gimmicks, no illusions.
Every Expert Advisor I create is designed with three principles in mind: - Versione: 1.1
- Aggiornato: 23 febbraio 2026
Adaptive ATR Trailing Stop (MT5)
Overview
Adaptive ATR Trailing Stop is a utility Expert Advisor for MetaTrader 5 that manages stop loss levels for existing open positions. It uses the Average True Range (ATR) to calculate a volatility-based trailing distance.
This EA does not open trades. It only modifies the Stop Loss (SL) of existing positions and keeps the current Take Profit (TP) unchanged.
How it works
- The EA runs on every tick of the chart where it is attached.
- For each open position that matches the selected filters, it calculates ATR on the chart timeframe (Period()) for that position’s symbol.
- Trailing distance is calculated as:
max(MinTrailPoints * Point, ATR * ATR_Multiplier)
- Trailing starts only when the position is in profit by at least:
Start_ATR * ATR
- Stop Loss is moved in steps to reduce modification frequency:
the SL is updated only when the new target SL differs by at least Step_ATR * ATR from the current SL.
- The EA never loosens stop losses. It only moves SL in the favorable direction.
If a position has no SL set (SL = 0), the EA can set an initial SL once the start profit condition is met.
Position filters
- ApplyToChartSymbol:
true = manage only positions of the current chart symbol
false = manage symbols based on SymbolList (or all symbols if SymbolList is empty)
- SymbolList:
comma-separated list of symbols to manage (used only when ApplyToChartSymbol is false)
- MagicFilter:
filter by magic number (-1 = manage any magic number)
Inputs
ATR_Period: ATR period (default 14)
ATR_Price: applied price (default PRICE_CLOSE)
ATR_Multiplier: ATR multiplier for trailing distance (default 1.0)
Start_ATR: profit threshold (ATR units) before trailing starts (default 0.5)
Step_ATR: minimum SL movement step (ATR units) (default 0.15)
MinTrailPoints: minimum trailing distance in points (default 100)
OnlyTrailProfitable: if true, positions in loss are not modified (default true)
Notes and limitations
- The EA is tick-driven (OnTick). It evaluates all open positions when the attached chart receives ticks.
- Broker conditions (spread, slippage, stops level/freeze level, execution rules) can affect SL modifications.
- Strategy Tester behavior may differ from live trading due to tick simulation and execution modeling. Demo forward testing is recommended.
Requirements
- MetaTrader 5
- Broker must allow Stop Loss modifications and meet minimum stop distance rules.
Version: 1.01
Copyright: 2025, R4V3N

Лучший EA который есть в бесплатном доступе и безусловно ни капли не уступает платным аналогам, покрывающий практически все потребности для качественной работы с atr traling stop.