Trading robot ยท MT5

TitanAI 4H Range Scalper

by poisonox

TitanAI 4H Range Scalper is a MetaTrader 5 expert advisor that executes a range rejection strategy based on the 00:00 New York H4 candle.

GitHub stars1
Forks1
Last update2 months ago9 Jul 2026
LicenceNone stated

Overview

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.

Details

Author

poisonox on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

SMC / ICT / price action, Mean reversion, Breakout

Markets

Any symbol

Timeframes

M15-H1

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

EA files

Input parameters

Read from 4hr15minbot.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpMagicNumberlong240610Magic Number
InpTradeCommentstringTitanAI-4HRRTrade Comment
InpRiskPercentdouble1.0Risk Percent per Trade (%)
InpMaxDailyLossPercentdouble3.0Max Daily Loss (%)
InpMaxConsecutiveLossint3Max Consecutive Losses
InpMaxTradesPerDayint2Max Trades Per Day
InpSessionModeENUM_SESSION_MODESESSION_OVERLAPTrading Session Mode
InpBrokerGMTOffsetint2Broker Server GMT Offset (hours)
InpNewYorkGMTOffsetint-4New York GMT Offset (hours, adjust for DST)
InpLondonStartHourNYint3London Session Start (NY hour)
InpLondonEndHourNYint11London Session End (NY hour)
InpNewYorkStartHourNYint8New York Session Start (NY hour)
Show all 40 inputs
NameTypeDefaultDescription
InpNewYorkEndHourNYint17New York Session End (NY hour)
InpRangeHighColorcolorclrRedRange High Line Color
InpRangeLowColorcolorclrBlueRange Low Line Color
InpRangeMidColorcolorclrGrayMidpoint Line Color
InpDrawRangeBoxbooltrueDraw Range Box
InpRangeBoxColorcolorclrLightGrayRange Box Color
InpShowEntryArrowsbooltrueShow Entry Arrows
InpShowTradeLevelsbooltrueShow SL/TP Lines
InpMinBreakoutPipsdouble5.0Minimum Breakout Distance (pips)
InpSLBufferPipsdouble2.0Stop Loss Buffer (pips)
InpTPModeENUM_TP_MODETP_2RTake Profit Mode (Risk:Reward)
InpUseBreakEvenbooltrueEnable Break Even
InpBreakEvenTriggerRdouble1.0Break Even Trigger (in R multiples)
InpTrailModeENUM_TRAIL_MODETRAIL_NONETrailing Stop Mode
InpATRPeriodint14ATR Period
InpATRMultiplierdouble1.5ATR Trailing Multiplier
InpSwingLookbackint10Swing Trailing Lookback (bars)
InpFixedTrailPipsdouble15.0Fixed Trailing Distance (pips)
InpMaxSpreadPipsdouble3.0Maximum Allowed Spread (pips)
InpUseATRFilterboolfalseEnable ATR Volatility Filter
InpMinATRPipsdouble5.0Minimum ATR (pips)
InpUseEMAFilterboolfalseEnable EMA Trend Filter
InpEMAPeriodint200EMA Period
InpUseNewsFilterboolfalseEnable Manual News Filter
InpNewsTimesstringBlocked Times, e.g. "2026.07.10 12:30,2026.07.11 14:00"
InpNewsBufferMinutesint30Minutes Before/After News to Block
InpShowDashboardbooltrueShow Dashboard
InpDashboardTextColorcolorclrWhiteDashboard Text Color

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone poisonox/4hr15min from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 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.

Similar expert advisors

Xauusd God MT5

by techly39
3 stars

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

MT5 Trading robot BreakoutSMC / ICT / price actionMean reversion
Updated 10 months ago None stated GitHub repository of Xauusd God MT5

EA SMC Engine

by Pauloeduspbr
3 stars

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

MT5 Trading robot SMC / ICT / price actionBreakoutTrend following
Updated 5 months ago MIT GitHub repository of EA SMC Engine

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

MT5 Trading robot SMC / ICT / price actionBreakoutTrend following

Gold Trading Bot Pro

by pollycarp
1 stars

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

MT5 Trading robot Trend followingBreakoutMean reversion
Updated 1 year ago None stated GitHub repository of Gold Trading Bot Pro

Gold Dual Engine Scalper

by MithunCyDev
1 stars

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

MT5 Trading robot ScalpingBreakoutSMC / ICT / price action

Price Action EA

by Covenantmondei
1 stars

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

MT5 Trading robot Mean reversionBreakoutSMC / ICT / price action
Updated 1 year ago None stated GitHub repository of Price Action EA

More trading robots

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers