Trading robot · MT5

Market Makers Nightmare

by chuck3117

This MetaTrader 5 expert advisor automates trading strategies based on Inner Circle Trader (ICT) concepts.

GitHub stars2
Forks1
Last update2 months ago30 Jun 2026
LicenceCustom licence

Overview

Market Makers Nightmare identifies market structure elements such as Order Blocks, Fair Value Gaps, and Market Structure Shifts to find entry points. The robot features specific logic for Kill Zones, Asian range liquidity, and Optimal Trade Entry (OTE) levels. Risk management is integrated through fixed stop losses, take profit ratios, and daily drawdown protection that halts trading after a set percentage loss or consecutive failures. A dedicated scalp mode provides specialized handling for high-frequency M1 structural trades.

Details

Author

chuck3117 on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

SMC / ICT / price action, Scalping

Markets

Gold, Forex

Timeframes

M1-M5, 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.

Input parameters

Read from MarketMakersNightmare_v3_42 (2).mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
TradingSymbolstringXAUUSD
UseChartSymbolbooltrue
UseInstrumentPresetbooltrueAuto-configure settings for detected symbol
ScalpModeboolfalseAggressive scalping: scales lookbacks/limits for M1 structure
Scalp_MaxTradesPerDayint60Replaces MaxTradesPerDay when ScalpMode is on
Scalp_CooldownSecondsint20Replaces EntryCooldownSeconds when ScalpMode is on
Scalp_SwingLookbackint60Replaces OTE_SwingLookback (more M1 bars needed for a real swing)
Scalp_CISDLookbackint8Replaces CISD_Lookback
Scalp_OBLookbackint40Replaces OB_Lookback
Scalp_FVGLookbackint40Replaces FVG_Lookback
Scalp_NEE_OBLookbackint40Replaces NEE_OB_Lookback
Scalp_NEE_FVGLookbackint40Replaces NEE_FVG_Lookback
Show all 40 inputs
NameTypeDefaultDescription
Scalp_PendingExpiryint15Replaces NEE_PendingExpiryBars (M1 candles — ~15 min)
Scalp_SetupExpirySecint900Replaces SetupExpirySeconds (15 min, legacy path)
Scalp_MSSRetestModebooltruePlace limit at MSS/CISD retest instead of deep OTE
Scalp_MSSRetestBufferint5Points inside MSS level for the limit (closer = better fill)
Scalp_MSSFVGRadiusint80Search radius (points) around MSS level for FVG/OB confluence
Scalp_PreferFVGatMSSbooltruePrefer FVG/OB over raw MSS level when within radius
RiskModeENUM_RISK_MODERISK_PERCENTLot sizing method
RiskPercentdouble1.0% of balance per trade [RISK_PERCENT]
RiskFixedAmountdouble100.0Fixed amount per trade [RISK_FIXED_AMOUNT]
FixedLotSizedouble0.01Manual lot size [RISK_FIXED_LOT]
MaxLotCapdouble5.0Hard cap — never exceed this lot regardless of calculation
StopLossPointsdouble300Fixed SL (pts) — used when UseATR_SL=false
TakeProfitRatiodouble3.0TP = SL × this ratio (e.g. 3.0 = 1:3 RR)
DailyLossLimitPctdouble3.0Stop trading if day loss > X% of start balance (0=off)
DailyLossLimitAmountdouble0.0Stop trading if day loss > X (currency, 0=off)
MaxConsecutiveLossesint3Pause after X straight SL hits (0=off)
ResumeNextDaybooltrueAuto-resume protection on new day
AutoFillModebooltrueAuto-detect broker fill mode (fixes most rejections)
ZoneTolerancedouble30.0Points outside zone still accepted (buffer)
SkipOTEAtExecutionbooltrueSkip OTE re-check at execution — price is already in zone
SkipM5AtExecutionbooltrueSkip M5 confirmation — execute on zone touch
SkipM1AtExecutionboolfalseSkip M1 trigger (set true = fire on zone touch alone)
SetupExpirySecondsint3600Zone stays active for 1 hour
MaxPendingZonesint5Max simultaneous zones to monitor
OrderRetryCountint3Retry order this many times on retriable errors
OrderRetryDelayMSint500Delay between retries in milliseconds
EnforceMinStopLevelbooltrueAuto-adjust SL/TP to broker minimum stop distance
LogExecutionDetailbooltruePrint detailed execution log to MT5 journal

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone chuck3117/MARKET-MAKERS-NIGHTMARE 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

EA Scalper XAUUSD

by francomascareloai
236 stars

EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di

MT5 Trading robot SMC / ICT / price actionIndicator crossoverScalping High risk
Updated 3 months ago Custom licence GitHub repository of EA Scalper XAUUSD

Bakome Gold Scalper

by BAKOME-Hub
25 stars

Bakome Gold Scalper is an automated trading solution for MetaTrader 5 specifically designed for the gold market. It executes trades based on Inner Circle Trader concepts, incorporating Fair Value Gaps, Order Blocks, Liquidity Sweeps, and Silver Bullet kill zones. The system limits trading to specific sessions, primaril

MT5 Trading robot SMC / ICT / price actionScalping

Prop Firm EA Fleet

by cgemise971
20 stars

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

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 9 months ago None stated GitHub repository of Prop Firm EA Fleet

Simba Sniper EA

by oriokie
6 stars

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

MT5 Trading robot SMC / ICT / price actionScalpingTrend following High risk
Updated 8 months ago Custom licence GitHub repository of Simba Sniper EA
6 stars

This Expert Advisor for MetaTrader 5 automates a pure price-action strategy primarily designed for gold on the five-minute timeframe. It identifies market trends using swing point structures like higher highs and lower lows without lagging indicators. The EA creates supply and demand zones from engulfing candle pattern

MT5 Trading robot Trend followingSMC / ICT / price actionScalping

CRT TBS Gold Scalper

by Pusparaj99op
5 stars

This MetaTrader 5 expert advisor is designed for gold trading using Candle Range Theory and Time-Based Strategy principles. It identifies market structure through the Accumulation, Manipulation, and Distribution cycle while detecting Fair Value Gaps and Order Blocks. The robot executes trades exclusively during specifi

MT5 Trading robot SMC / ICT / price actionScalpingTrend following

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