Conservative Trend Trading System
- Experts
- Jia Xi Quan
- Versão: 1.6
- Ativações: 5
EURUSD Donchian Trend Breakout EA (Strategy A)
Entry 20 / Exit 10 — ADX Trend Filter — ATR Risk Control — No Time Restrictions
This Expert Advisor is a rule-based trend-following system designed specifically for EURUSD. It implements a classic Donchian Channel breakout model (inspired by the well-known Turtle concepts) and focuses on capturing directional moves while filtering out low-quality conditions such as ranging markets and volatility spikes.
The EA is built with clean, mechanical execution rules suitable for systematic testing, optimization, and stable long-term use. It includes a Chinese high-visibility panel for real-time status tracking (signals, filters, channel values, positions, and P/L).
Strategy Logic (Transparent & Testable)
1) Breakout Entry (EntryLen = 20)
The EA enters only on confirmed close-based breakouts to reduce wick/noise triggers.
-
Long Entry: Close breaks above the previous 20-bar Donchian High (shift=1)
-
Short Entry: Close breaks below the previous 20-bar Donchian Low (shift=1)
Using shift=1 ensures the channel is calculated from completed bars, avoiding “self-referencing” breakouts on the current candle.
2) Trend Qualification (ADX Filter)
To reduce false signals during consolidation, trades are allowed only when trend strength is sufficient:
-
ADX(14) ≥ ADX_Min (default: 20)
You can increase this threshold (e.g., 25–30) for more conservative behavior and fewer trades.
3) Volatility Protection (ATR Waterfall Filter)
The EA can optionally block new entries during abnormal volatility bursts:
-
Block new trades if ATR points ≥ ATR_Waterfall_Points (default enabled; can be turned off by setting to 0)
This helps protect against “waterfall” conditions, spreads widening, and unstable price action.
4) Exit Logic (ExitLen = 10)
Exits are based on the opposite Donchian channel, allowing winners to run while exiting when trend structure breaks.
-
Exit Long: Close falls below the previous 10-bar Donchian Low (shift=1)
-
Exit Short: Close rises above the previous 10-bar Donchian High (shift=1)
Risk Management (Built-In)
ATR-Based Initial Stop Loss (Recommended)
-
Initial SL = ATR(14) × SL_ATR_Mult (default: 2.0)
This provides adaptive stop distances aligned with market volatility.
Optional ATR Trailing Stop
-
Trailing SL = ATR(14) × Trail_ATR_Mult (default: 2.0)
Trailing activates only when the position is in profit and only moves in a risk-reducing direction.
Execution & Operation
-
No trading session restrictions (runs 24/5)
-
Not locked to M5: supports PERIOD_CURRENT , meaning the EA can follow the chart timeframe you attach it to (M15 / H1 recommended for cleaner trend behavior)
-
OneOrderPerBar option: prevents rapid repeated entries within the same candle
-
MaxPositions control: default 1 position per symbol for clean trend tracking (can be adjusted)
Built-In Panel (Chinese, Large Font)
The on-chart panel displays:
-
Current strategy status (Allowed / ADX filtered / Volatility blocked)
-
Breakout signals (Long/Short/None)
-
Donchian entry & exit channel values
-
ADX value and threshold
-
ATR points and waterfall threshold
-
Open positions and floating P/L
-
Real-time update timestamp
This reduces confusion and helps users quickly understand why the EA is (or isn’t) trading.
Recommended Setup for EURUSD
-
Timeframes: M15 or H1
-
Typical conservative profile: ADX_Min 25, smaller lot size, OneOrderPerBar enabled
-
Always test with your broker’s spread/commission model.
Important Risk Disclaimer
Trading leveraged products involves substantial risk. Market conditions such as consolidations, high-impact news, spread widening, slippage, and gaps can lead to losses. Past performance and backtest results do not guarantee future returns. Use responsible position sizing and test on demo or small capital before deploying on live accounts.
