Mr X Grid Hedge utilizes a grid strategy with entry signals confirmed by a combination of EMA crossovers, RSI bounds, and ATR volatility filters. The system manages risk through automated hedging triggered by drawdown or specific grid depth. Users can choose between fixed, incremental, or martingale lot progression. The EA includes emergency drawdown protection and a weekend closing feature, but lacks traditional individual stop losses, relying instead on basket closures and equity guards.
Multi-indicator entry filtering with EMA, RSI, and ATR
Configurable incremental or martingale lot scaling
Automated hedging based on drawdown or grid level
Global equity protection and weekend session closure
Read from GridHedgingEA_MultiConfirm_Version2.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
StartingLotSize
double
0.01
Starting Lot Size
GridDistancePips
int
100
Grid Distance in Points ($10 for XAUUSD)
MaxGridLevels
int
10
Maximum Grid Positions (Safety Limit)
ProfitTargetUSD
double
30.0
Profit Target in USD
EnableHedging
bool
true
Enable Hedging When Drawdown Increases
FastEMA_Period
int
20
Fast EMA Period
SlowEMA_Period
int
50
Slow EMA Period
RSI_Period
int
14
RSI Period
RSI_LowerBound
int
40
RSI Lower Bound (avoid oversold)
RSI_UpperBound
int
60
RSI Upper Bound (avoid overbought)
ATR_Period
int
14
ATR Period
MinATR_Value
double
5.0
Minimum ATR for Entry (volatility filter)
Show all 32 inputs
Name
Type
Default
Description
EntryTimeframe
ENUM_TIMEFRAMES
PERIOD_M15
Timeframe for Entry Analysis
LotMethod
LOT_PROGRESSION_METHOD
INCREMENTAL
Lot Progression Method
IncrementStep
double
0.01
Increment Step (for INCREMENTAL method)
HedgeTriggerLevel
int
6
Hedge After N Grid Levels
HedgeTriggerDrawdownPct
double
25.0
Hedge at Drawdown % (of balance)
MaxDrawdownPct
double
40.0
CRITICAL: Force Close All at Drawdown %
MaxLotSize
double
1.0
Maximum Lot Size (Safety Cap)
CloseOnWeekend
bool
true
Close All Positions Before Weekend
WeekendClosureHour
int
21
Friday Hour to Close (Server Time)
CloseOnHighDrawdown
bool
true
Auto-close at max drawdown
BreakevenCloseThreshold
double
5.0
Close at breakeven if within $X
UseTradeTimeFilter
bool
false
Enable Trading Hours Filter
TradeStartHour
int
8
Start Trading Hour (Server Time)
TradeEndHour
int
20
End Trading Hour (Server Time)
AllowNewEntries
bool
true
Allow New Initial Entries
MinMinutesBetweenEntries
int
60
Min Minutes Between Initial Entries
ShowDebugInfo
bool
true
Show Debug Info in Logs
Slippage
int
10
Maximum Slippage in Points
MagicNumber
long
123456
Magic Number for This EA
TradeComment
string
GridHedge_MC
Trade Comment
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone ibrahimzameel9232-lgtm/Mr.X 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.
STO Martin is a grid-based trading robot for MetaTrader 5 that uses technical indicators to manage entries and recoveries. It employs a Stochastic Oscillator for execution signals and a Moving Average to filter trades according to the prevailing trend. The EA features a martingale lot-scaling system that adds positions
AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa
This MetaTrader 5 expert advisor is designed for trading XAUUSD using a trend-following approach. It identifies entries through a triple Exponential Moving Average crossover system, requiring ADX momentum confirmation before opening positions. To manage losing trades, the EA employs a martingale strategy that layers or
Price Less EA is an automated trading robot for the MetaTrader 4 platform that implements a grid-based recovery strategy. It combines moving average crossovers for entry timing with a multi-level position layering system. The robot initiates trades and scales lot sizes using step-based increments at fixed distances. It
Integra 777 Buy Sell is a MetaTrader 4 expert advisor that utilizes a grid-based approach combined with the Commodity Channel Index (CCI) for trade entries and management. The robot opens positions and adds supplementary orders at dynamic distances, governed by a minimum step parameter. It features a unique trailing pr
This MetaTrader 4 expert advisor executes a dual-direction grid trading strategy driven by technical analysis. It enters trades based on an Exponential Moving Average crossover logic using three distinct periods. The system employs a customizable martingale sequence where lot sizes increase after a user-defined number