Donchian Breakout Trader
- Experts
- Samuel Cavalcanti Costa
- Versione: 1.2
- Attivazioni: 5
Donchian Breakout Trader is a professional Expert Advisor based on the classic Donchian Channel breakout strategy, popularized by the Turtle Trading system. The EA monitors the highest high and lowest low of the last N periods (default 20). A buy signal is generated when the current bar closes above the Donchian channel high, indicating an upside breakout and potential trend continuation. A sell signal is generated when the current bar closes below the Donchian channel low, indicating a downside breakout. The EA only opens one order per direction at a time, avoiding multiple entries in the same trend. All parameters are fully customizable: channel period (InpChannelPeriod), stop loss in points (InpStopLossPoints), take profit in points (InpTakeProfitPoints), desired lot size (InpLotSize), risk percentage of free margin (InpRiskPercent, 0 = fixed lot), maximum orders per direction (InpMaxOrders), magic number (InpMagicNumber), and order comment (InpComment). The EA includes automatic lot normalization according to broker's volume limits (SYMBOL_VOLUME_MIN, SYMBOL_VOLUME_MAX, SYMBOL_VOLUME_STEP), automatic stop loss and take profit validation respecting broker's minimum distance (SYMBOL_TRADE_STOPS_LEVEL), margin check using OrderCalcMargin, and new bar detection to avoid multiple signals on the same bar. Suitable for any symbol and timeframe, but works best on trending markets like EURUSD, GBPUSD, or gold (XAUUSD) on H1 or higher timeframes. No additional indicators or DLLs required. Compiled in X64 Regular for full Market compatibility. Perfect for traders looking for a simple, robust, and time-tested trend-following strategy.
