The EA identifies a fixed daily range and monitors for false breakouts or liquidity sweeps, entering a trade when price closes back within the range boundaries. It features robust risk management including percentage-based lot sizing, maximum daily loss limits, and trade frequency caps. Trade management options include multiple risk-to-reward take profit settings, break-even triggers, and trailing stop modes based on ATR, swing points, or fixed pips.
Read from 4hr15minbot.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpMagicNumber
long
240610
Magic Number
InpTradeComment
string
TitanAI-4HRR
Trade Comment
InpRiskPercent
double
1.0
Risk Percent per Trade (%)
InpMaxDailyLossPercent
double
3.0
Max Daily Loss (%)
InpMaxConsecutiveLoss
int
3
Max Consecutive Losses
InpMaxTradesPerDay
int
2
Max Trades Per Day
InpSessionMode
ENUM_SESSION_MODE
SESSION_OVERLAP
Trading Session Mode
InpBrokerGMTOffset
int
2
Broker Server GMT Offset (hours)
InpNewYorkGMTOffset
int
-4
New York GMT Offset (hours, adjust for DST)
InpLondonStartHourNY
int
3
London Session Start (NY hour)
InpLondonEndHourNY
int
11
London Session End (NY hour)
InpNewYorkStartHourNY
int
8
New York Session Start (NY hour)
Show all 40 inputs
Name
Type
Default
Description
InpNewYorkEndHourNY
int
17
New York Session End (NY hour)
InpRangeHighColor
color
clrRed
Range High Line Color
InpRangeLowColor
color
clrBlue
Range Low Line Color
InpRangeMidColor
color
clrGray
Midpoint Line Color
InpDrawRangeBox
bool
true
Draw Range Box
InpRangeBoxColor
color
clrLightGray
Range Box Color
InpShowEntryArrows
bool
true
Show Entry Arrows
InpShowTradeLevels
bool
true
Show SL/TP Lines
InpMinBreakoutPips
double
5.0
Minimum Breakout Distance (pips)
InpSLBufferPips
double
2.0
Stop Loss Buffer (pips)
InpTPMode
ENUM_TP_MODE
TP_2R
Take Profit Mode (Risk:Reward)
InpUseBreakEven
bool
true
Enable Break Even
InpBreakEvenTriggerR
double
1.0
Break Even Trigger (in R multiples)
InpTrailMode
ENUM_TRAIL_MODE
TRAIL_NONE
Trailing Stop Mode
InpATRPeriod
int
14
ATR Period
InpATRMultiplier
double
1.5
ATR Trailing Multiplier
InpSwingLookback
int
10
Swing Trailing Lookback (bars)
InpFixedTrailPips
double
15.0
Fixed Trailing Distance (pips)
InpMaxSpreadPips
double
3.0
Maximum Allowed Spread (pips)
InpUseATRFilter
bool
false
Enable ATR Volatility Filter
InpMinATRPips
double
5.0
Minimum ATR (pips)
InpUseEMAFilter
bool
false
Enable EMA Trend Filter
InpEMAPeriod
int
200
EMA Period
InpUseNewsFilter
bool
false
Enable Manual News Filter
InpNewsTimes
string
Blocked Times, e.g. "2026.07.10 12:30,2026.07.11 14:00"
InpNewsBufferMinutes
int
30
Minutes Before/After News to Block
InpShowDashboard
bool
true
Show Dashboard
InpDashboardTextColor
color
clrWhite
Dashboard Text Color
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone poisonox/4hr15min 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 is designed specifically for trading gold (XAUUSD). The system utilizes a modular architecture to detect market regimes, identify ranges, and execute trades based on liquidity sweeps and breakouts. It incorporates several filters, including spread and volume checks, alongside a drawdown
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 executes a multi-stage trading strategy focusing on H1 trendline breakouts and RSI divergences. It 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
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
Gold Dual Engine Scalper is an MT5 expert advisor designed for XAUUSD trading. It utilizes a regime-based state machine to navigate market conditions, employing two distinct engines: one for volatility burst continuations and another for liquidity sweep reversals. The EA monitors for price compression and market exhaus
This MetaTrader 5 robot executes trades based on price behavior and technical indicators. It utilizes the Relative Strength Index to identify overbought and oversold conditions while incorporating breakout and candle pattern logic. The expert advisor includes flexible risk management, offering fixed lot sizes or percen