The system employs a hedging strategy, opening initial buy and sell positions and layering subsequent trades at fixed pip distances. It includes an optional M15 SMA 200 filter for primary entries. Risk is managed through adjustable maximum layer limits and independent settings for each pair. The EA features an interactive dashboard for monitoring exposure, real-time floating profit, and pausing operations manually. It relies on broker-side take profit targets rather than individual stop losses.
Read from Raven Cost Averaging.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpSectionGeneral
string
=== General ===
MaxLayers
int
0
Max Layers (0 = no limit)
MaxLayerScope
ENUM_MAX_LAYER_SCOPE
MAX_LAYER_MAGIC_ONLY
Max Layer Scope
SymbolSuffix
string
c
Symbol Suffix (empty = none)
InpSectionOps
string
=== Operations ===
ShowPanel
bool
true
Show Panel
InpSectionEntry
string
=== Entry Filter ===
UseSmaEntryFilter
bool
true
SMA200 entry filter (default)
SmaTimeframe
ENUM_TIMEFRAMES
PERIOD_M15
SMA200 timeframe
InpSectionEURUSD
string
=== EURUSD ===
EURUSD_Enable
bool
true
Enable EURUSD
EURUSD_Lot
double
0.1
Lot EURUSD
Show all 40 inputs
Name
Type
Default
Description
EURUSD_PipStep
int
10
Pip Step EURUSD
EURUSD_Magic
ulong
111111
Magic EURUSD
InpSectionGBPUSD
string
=== GBPUSD ===
GBPUSD_Enable
bool
true
Enable GBPUSD
GBPUSD_Lot
double
0.1
Lot GBPUSD
GBPUSD_PipStep
int
14
Pip Step GBPUSD
GBPUSD_Magic
ulong
222222
Magic GBPUSD
InpSectionUSDCHF
string
=== USDCHF ===
USDCHF_Enable
bool
true
Enable USDCHF
USDCHF_Lot
double
0.1
Lot USDCHF
USDCHF_PipStep
int
9
Pip Step USDCHF
USDCHF_Magic
ulong
333333
Magic USDCHF
InpSectionNZDUSD
string
=== NZDUSD ===
NZDUSD_Enable
bool
true
Enable NZDUSD
NZDUSD_Lot
double
0.1
Lot NZDUSD
NZDUSD_PipStep
int
8
Pip Step NZDUSD
NZDUSD_Magic
ulong
444444
Magic NZDUSD
InpSectionAUDUSD
string
=== AUDUSD ===
AUDUSD_Enable
bool
true
Enable AUDUSD
AUDUSD_Lot
double
0.1
Lot AUDUSD
AUDUSD_PipStep
int
9
Pip Step AUDUSD
AUDUSD_Magic
ulong
555555
Magic AUDUSD
InpSectionUSDJPY
string
=== USDJPY ===
USDJPY_Enable
bool
true
Enable USDJPY
USDJPY_Lot
double
0.1
Lot USDJPY
USDJPY_PipStep
int
130
Pip Step USDJPY
USDJPY_Magic
ulong
666666
Magic USDJPY
InpSectionUSDCAD
string
=== USDCAD ===
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone randiapriliyadiR/raven-cost-averaging 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.
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
Mr X Grid Hedge is a MetaTrader 5 expert advisor specifically designed for XAUUSD trading. It 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.
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
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