The robot uses exponential moving averages to determine direction and manages entries through a grid mechanism. It features aggressive lot scaling via a martingale multiplier and dynamic grid spacing calculated from ATR volatility. Risk management tools include basket-level take profit, money-based trailing stops, and a maximum equity drawdown protection filter. The repository includes several additional files inspired by various commercial trading strategies, though the README documentation is missing.
Trend-following EMA crossover logic
Dynamic grid step using ATR volatility
Martingale lot scaling with configurable multiplier
Read from QuantumGoldGrid.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpMagic
long
20240601
Magic number (unique per chart)
InpComment
string
QGG
Trade comment
InpMaxSpreadPoints
int
60
Max spread (points) to allow new entries
InpSlippagePoints
int
30
Max slippage/deviation (points)
InpTrendTF
ENUM_TIMEFRAMES
PERIOD_M15
Trend timeframe
InpFastMA
int
50
Fast EMA period
InpSlowMA
int
200
Slow EMA period
InpTradeWithTrend
bool
true
Only trade in trend direction
InpGridStepPoints
double
250
Distance between grid orders (points)
InpMaxTrades
int
10
Max simultaneous trades (per basket)
InpUseDynamicStep
bool
true
Scale grid step by ATR volatility
InpAtrTF
ENUM_TIMEFRAMES
PERIOD_M15
ATR timeframe (for dynamic step)
Show all 31 inputs
Name
Type
Default
Description
InpAtrPeriod
int
14
ATR period
InpAtrStepMult
double
1.0
Grid step = ATR * this (when dynamic)
InpLotMode
ENUM_LOT_MODE
LOT_FIXED
Lot sizing mode
InpFixedLot
double
0.01
Fixed lot (first trade)
InpRiskPercent
double
0.5
Risk % of balance (risk mode)
InpLotMultiplier
double
1.5
Martingale multiplier per grid step (1.0 = off)
InpMaxLot
double
5.0
Hard cap on any single lot
InpBasketTPMoney
double
0
Close basket at this profit ($). 0 = disabled
InpTPperLotPoints
double
400
Per-basket TP target in points (avg-price based)
InpBasketSLMoney
double
0
Close basket at this loss ($). 0 = disabled
InpUseTrailing
bool
true
Trail basket profit
InpTrailStartMoney
double
5.0
Start trailing after this profit ($)
InpTrailGiveBack
double
0.40
Lock-in: close if profit falls to this fraction of peak
InpMaxDrawdownPct
double
25.0
Close all & pause if equity DD% exceeds this (0=off)
InpUseTimeFilter
bool
false
Restrict trading hours
InpStartHour
int
0
Start hour (server time)
InpEndHour
int
24
End hour (server time)
InpCloseOnFriday
bool
false
Flatten everything Friday evening
InpFridayCloseHour
int
21
Friday close hour (server time)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone Anik-900/data-cleaning 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 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 provides a collection of MetaTrader 4 and 5 expert advisors, including the modular Super Trading Bot series and an AI-driven trading template. The EAs utilize various technical indicators like Bollinger Bands, Parabolic SAR, and moving averages for trend-following and scalping. Built-in risk management
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 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
This repository is a diverse collection of MetaTrader 4 and 5 expert advisors, including signal-based robots, grid traders, and utility scripts. The featured expert advisor provides a versatile framework for trade management with options for trailing stops, break-even logic, and ECN broker compatibility. It includes co
This repository provides automated trading experts for the MetaTrader 5 platform, featuring a combined grid and martingale strategy along with an Ichimoku-based approach. The primary expert advisor executes trades based on price movement relative to a fixed grid distance. It incorporates a lot multiplication system tha