Awrafx Trendline Divergence Breakout refines entries on the M5 timeframe using Change of Character and micro Break of Structure signals. The EA includes automated risk management with percentage-based lot sizing and ATR-based stop losses. It features a triple take-profit system with partial closing capabilities. Trade filters include a 200 EMA trend filter, session timing, and volatility gates based on ATR. The strategy requires both H1 and M5 data to confirm signals.
Multi-timeframe analysis using H1 and M5 charts
RSI divergence detection with customizable pivot bars
Automated partial take-profit at three ATR-based levels
Entry refinement via Change of Character and Break of Structure
Read from AWRAFX_TrendDiv_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpSymbols
string
XAUUSD
Comma-separated symbols
InpRSI_Period
int
14
RSI Period
InpEMA_Period
int
200
EMA Period
InpATR_Period
int
14
ATR Period
InpPivotBars
int
5
Bars each side for pivot
InpMinRSIDelta
double
3.0
Min RSI delta for divergence
InpMinDivSpan
int
5
Min bars between pivots
InpMaxDivSpan
int
50
Max bars between pivots
InpTrendATRMult
double
2.0
ATR multiplier for trend strength
InpMinScore
int
60
Minimum score for signal
InpMaxSpread
double
50
Max spread in points
InpWriteCSV
bool
true
Write audit CSV
Show all 40 inputs
Name
Type
Default
Description
InpCHoCHTimeout
int
20
Max H1 bars to wait for CHoCH
InpCHoCHTolATR
double
0.05
CHoCH tolerance as fraction of ATR (small buffer)
InpRetestTimeout
int
120
Max M5 bars to wait for retest (120 = ~10 hours)
InpRetestTolATR
double
0.10
Retest touch zone tolerance as fraction of M5 ATR
InpMicroBOSTimeout
int
60
Max M5 bars to wait for micro-BOS
InpMicroPivotBars
int
3
Bars each side for M5 micro pivot detection
InpRiskPercent
double
1.0
Risk per trade in %
InpSL_Buffer_ATR_M5
double
0.5
SL buffer as fraction of M5 ATR
InpMaxSL_ATR_H1
double
3.0
Reject entry if SL > this multiple of H1 ATR
InpMinRR
double
1.5
Minimum room-to-move ratio vs SL
InpTP1_ATR_H1
double
1.5
TP1 multiple of H1 ATR
InpTP2_ATR_H1
double
2.5
TP2 multiple of H1 ATR
InpTP3_ATR_H1
double
4.0
TP3 multiple of H1 ATR
InpUsePartialTP
bool
true
Enable partial closes
InpTP1_ClosePct
double
0.40
Fraction to close at TP1
InpTP2_ClosePct
double
0.30
Fraction to close at TP2
InpTP3_ClosePct
double
0.30
Fraction to close at TP3
InpMagicNumber
int
20250301
EA magic number
InpSlippage
int
10
Max price slippage in points
InpUseSessionFilter
bool
true
Enable session filter
InpSessionStartHour
int
7
Session start hour (broker/server time)
InpSessionStartMin
int
0
Session start minute
InpSessionEndHour
int
20
Session end hour (broker/server time)
InpSessionEndMin
int
0
Session end minute
InpUseFridayCutoff
bool
true
No new entries after Friday cutoff
InpFridayCutoffHour
int
18
Friday cutoff hour (broker/server time)
InpEntryMaxSpread
double
40
Max spread at entry (points) โ re-checked before OrderSend
InpUseVolatilityGate
bool
true
Enable ATR floor/ceiling gate
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone sapuann/AWRAFX-TRENDLINE-DIVERGENCE-BREAKOUT-EA-MT5 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 automated trading robot for MetaTrader 5 implements Smart Money Concepts (SMC) and ICT principles using a hybrid architecture. Trading logic and signal detection are processed within a native C++ DLL, while the MQL5 bridge handles trade execution and data feeding. The system identifies market structure shifts, inc
MT5Trading robotSMC / ICT / price actionBreakoutTrend following
This MetaTrader 5 expert advisor focuses on trading gold and other instruments using a trend-following breakout and retest methodology. It filters market conditions using three moving averages and ATR-based consolidation detection. Entries are triggered by RSI pullbacks and liquidity grab patterns during specific intra
Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man
Fimathe EA is a MetaTrader 5 robot designed to automate the Fimathe trading technique. It replaces manual channel drawing by analyzing a user-defined range of historical candles to determine reference channels and neutral zones. The system identifies price partitions and uses the median distance to set entry levels. Fo
This MetaTrader 5 expert advisor focuses on XAUUSD using a multi-timeframe scalping approach based on Smart Money Concepts. It identifies institutional market structures by analyzing H4 trends, H1 supply and demand zones, and M5 entries. The logic incorporates order block detection, Fair Value Gaps (FVG), and liquidity
This MetaTrader 5 expert advisor automates trading strategies based on Inner Circle Trader (ICT) and Smart Money Concepts (SMC). It utilizes a confluence engine to evaluate market structure, PDA zones, fair value gaps, order blocks, and SMT divergence against correlated symbols like the DXY. Designed specifically for p