The featured SwingGrid EA utilizes ADX trend filters and ATR-based volatility thresholds to execute trades, employing a recovery grid system with dynamic lot multipliers. Other tools in the set cover news straddle breakouts, smart money concepts with liquidity sweeps, and Ichimoku trend following. Risk management includes basket trailing stops, partial closes, and drawdown protection, though several strategies utilize martingale-style lot scaling for trade recovery.
Dynamic ATR-based grid spacing and recovery
News straddle with opposite order trailing stop
Liquidity sweep and SBR/RBS flip detection
Multi-stage basket trailing and partial close logic
Read from Zerith_XAU_SwingGrid_Recovery_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpInitialLot
double
0.01
Base Initial Lot Size
InpDeviation
int
30
Max Deviation / Slippage (Points)
InpMagic
long
20260601
EA Magic Number (SwingGrid)
InpTradeCommentPrefix
string
ZX_SwingGrid
Trade Comment Prefix
InpTrendAdx
int
25
Trend Threshold (ADX)
InpRangeAdx
int
20
Range Threshold (ADX)
InpVolatilityAtrPts
double
50.0
Volatility Threshold (M1 ATR Points)
InpTpPointsBase
int
200
Base Take-Profit (Points)
InpTpPointsMin
int
50
Minimum Take-Profit (Points)
InpTpAtrMult
double
1.2
ATR Dynamic TP Multiplier
InpSwingDivisor
double
10.0
Yesterday Daily Swing Divisor (Swing / 10)
InpGridAtrTf
ENUM_TIMEFRAMES
PERIOD_H1
ATR Timeframe for Grid Calculation
Show all 40 inputs
Name
Type
Default
Description
InpGridAtrPeriod
int
14
ATR Period for Grid Calculation
InpGridAtrMult
double
1.0
ATR Multiplier for Grid Spacing
InpRecoveryMinGap
int
100
Minimum Absolute Recovery Gap (Points)
InpRecoveryMaxLayers
int
10
Maximum Recovery Layers Allowed
InpLotMultEarly
double
1.3
Early Layer Lot Multiplier (1-2)
InpLotMultMid
double
1.5
Mid Layer Lot Multiplier (3-5)
InpLotMultLate
double
1.3
Late Layer Lot Multiplier
InpAntiMartingaleDeep
bool
true
Enable Deep Anti-Martingale (≥6)
InpDeepLotMult
double
0.8
Deep Layer Multiplier (< 1.0)
InpRecoveryMaxLot
double
5.0
Absolute Maximum Lot Cap
InpVolNeutralAtr
double
500.0
Volatility Neutral ATR Reference (Pts)
InpTrailingEnable
bool
true
Enable Basket Trailing Stop
InpTrailingTriggerUsd
double
5.0
Trailing Activation Basket Profit ($)
InpTrailingStepUsd
double
2.0
Trailing Callback / Step ($)
InpPartialCloseEnable
bool
false
Enable Staged Partial Close (Default: false for pure basket closing)
InpPartialCloseAtUsd
double
4.0
Profit Trigger per Stage ($)
InpPartialClosePct
double
30.0
Percentage of Winning Volume to Close (%)
InpStagedPartialClose
bool
true
Enable Multi-Stage Partial Close
InpPartialCloseLevels
int
2
Maximum Partial Close Stages
InpRecoveryModeEnable
bool
true
Enable Fast Recovery TP Mode
InpRecoveryModeAtLayer
int
4
Activate Recovery Mode at Layer (≥)
InpRecoveryReducedTp
int
35
Reduced Fast Exit TP (Points)
InpUseBasketStopLoss
bool
false
Enable Basket Hard Stop-Loss ($)
InpMaxBasketLossUsd
double
30.0
Basket Hard Stop-Loss ($)
InpBasketMaxAgeHours
int
8
Basket Max Holding Time (Hours)
InpMaxSpreadPts
int
50
Max Allowed Spread (Points)
InpMaxRecoveryAttempts
int
8
Max Recovery Attempts Allowed
InpBreakevenExit
bool
true
Breakeven Exit After Deep Drawdown
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone BlamzKunG/My-Expert-Advisor 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 repository provides a diverse collection of MetaTrader 4 and MetaTrader 5 expert advisors covering multiple trading methodologies. It includes robots for smart money concepts with fair value gap detection, Joe Ross hook patterns, and volatility-based scalping. The library features specific tools for XAUUSD and mul
This repository contains a large collection of over 100 expert advisors for the MetaTrader 5 platform, many of which appear to be generated using the Mission Automate tool. The library covers a wide variety of trading methodologies including range breakouts, Ichimoku cloud strategies, Heiken Ashi engulfing patterns, an
This repository is a large collection of over 1,000 expert advisors designed for the MetaTrader 5 platform. It serves as an open-source library featuring various algorithmic trading strategies, including moving average crossovers, RSI levels, Parabolic SAR, and range breakouts. The collection provides robots for trend
This collection of expert advisors for MetaTrader 4 and 5 provides various automated strategies based on price action and technical indicators. The primary EA utilizes a moving average crossover system with switchable modes for different market conditions. It features a martingale lot-scaling system for sideways market
This collection provides MetaTrader 5 Expert Advisors sourced from MQL5 programming documentation. The primary tool, Unity Martingale, implements a multi-currency reversal strategy using breakout or pullback signals. It employs a martingale lot-scaling system that increases positions after losses based on a user-define
This repository contains an extensive library of MetaTrader 5 expert advisors covering various algorithmic trading methodologies. The collection includes strategies based on Bollinger Bands, Relative Strength Index, moving average ribbons, and swing failure patterns. A core focus is the Ighodalo series for gold and CFD