Donchian MACD Breakout EA utilizes a higher timeframe for trend direction while identifying entry opportunities on lower timeframes. The robot includes a trend memory mode designed to manage entries after price retracements. Risk management features include per-timeframe trailing stops, ATR-based volatility filters, and configurable EMA exits for profit-taking. It provides visual on-chart indicators for Donchian levels and price protection structures.
Read from Breakout(v5.55).mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpHTF
ENUM_TIMEFRAMES
PERIOD_H4
InpDonchianPer
int
20
InpMinChRangePts
int
300
InpUseATRFilter
bool
false
InpATRPeriod
int
14
InpATRMult
double
1.5
InpUseTrendMemory
bool
false
启用“突破后趋势记忆/延续”模式(?
InpMem_BreakCandleLevel
bool
true
A) 突破K低/高保护:BUY用突破K低点,SELL用突破K高点
InpMem_XBarsLevel
bool
true
B) X根HTF结构位保护:BUY用最近X根HTF最低,SELL用最近X根HTF最高
InpMem_XBarsLookback
int
3
X=几根HTF(含突破K)
InpMem_PctRetraceLevel
bool
true
C) 百分比回撤保护:基于突破后最高/最低与breakLevel的回撤百分比
InpMem_RetracePercent
double
50.0
?
Show all 40 inputs
Name
Type
Default
Description
InpShowTM_Lines
bool
true
画出 Donchian / XBars / Memory 水平线
InpShowTM_History
bool
false
是否保留历史线(开启后每次突破都保留;否则只保留当前)
InpShowTM_MaxHistory
int
50
历史线最大保留数量(每种线各自计算)
InpShowTM_DonchianLine
bool
true
显示 Donchian Break 线
InpShowTM_XBarsLine
bool
true
显示 XBars Protect 线
InpShowTM_MemoryLine
bool
true
显示 Trend Memory Active 线
InpShowTM_LabelFontSize
int
9
标签字体大小
InpUseH4
bool
true
InpUseH1
bool
true
InpUseM30
bool
true
InpUseM15
bool
true
InpUseM5
bool
true
InpH4_IgnoreDonchian
bool
false
InpH1_IgnoreDonchian
bool
false
InpM30_IgnoreDonchian
bool
false
InpM15_IgnoreDonchian
bool
false
InpM5_IgnoreDonchian
bool
false
InpH4_UseBreakScan
bool
false
InpH4_BreakScanBars
int
5
InpH4_BreakScanMode
EMacdScanMode
MACD_SCAN_CROSS
InpH1_UseBreakScan
bool
false
InpH1_BreakScanBars
int
5
InpH1_BreakScanMode
EMacdScanMode
MACD_SCAN_CROSS
InpM30_UseBreakScan
bool
false
InpM30_BreakScanBars
int
5
InpM30_BreakScanMode
EMacdScanMode
MACD_SCAN_CROSS
InpM15_UseBreakScan
bool
false
InpM15_BreakScanBars
int
5
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone fuimeng85/mt5-breakout-ea from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This MetaTrader 5 expert advisor executes trades based on the Ichimoku Kinko Hyo system, specifically targeting cloud breakouts. It incorporates several technical filters including Average True Range for volatility and Average Directional Index for trend strength to refine entries. Risk management is handled through pe
This MetaTrader 5 expert advisor combines Bollinger Band mean-reversion, squeeze breakouts, and EMA crossover trend following. It filters for ranging markets using a long-period EMA slope to execute reversal trades with candlestick confirmation, specifically identifying Doji patterns at the bands. Risk management inclu
This MetaTrader 5 expert advisor focuses on the EURUSD pair using an adaptive market regime approach. It alternates between trend-following and mean-reversion logic based on ADX and EMA indicators. The trend strategy utilizes price breakouts or pullbacks confirmed by RSI, while the range strategy employs Bollinger Band
This collection of Expert Advisors for MetaTrader 5 provides high-frequency scalping and multi-strategy automated trading across multiple currency pairs. The robots utilize a signal scoring system based on moving average crossovers, RSI momentum, Bollinger Band breakouts, and MACD signals. The suite includes a dedicate
XAU Confluence EA is an automated trading robot for MetaTrader 5, specifically tailored for the gold market. The system executes trades based on a triple-confluence strategy that integrates an exponential moving average ribbon for trend direction, Donchian Channel breakouts with volume confirmation, and a proxy-CVD ind
This automated expert advisor for MetaTrader 5 is specifically designed for the GBPJPY currency pair. It utilizes a breakout strategy based on psychological key price levels, which are adjustable in the settings. The bot filters entries using two Simple Moving Averages and the Average Directional Index to confirm trend