支持中心 帮助文档 联系我们
📱 微信: 18391752892 | 💬 QQ: 3313198376 | ✈️ Telegram | 📧 fishfx123@gmail.com
EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34% EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34%

Adaptive ATR Trailing Stop

👤 作者: Seref Oliver Joisten

5.0 分

¥0.00

📌 版本: v1.1
📥 下载: 0
⭐ 评分: 5.0

📝 产品详情

Adaptive ATR Trailing Stop

作者Seref Oliver Joisten
版本v1.1
更新2025-10-11T19:33:25
激活数78603
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

安全须知

本产品仅通过 MQL5.com 官方渠道获取。其他渠道版本可能缺少完整功能和技术支持。

EA 配置

交易品种XAUUSD
时间框架H1 (推荐)
推荐经纪商IC Markets, IC Trading
最低存款$300 / 0.01手

📸 截图预览