Trading robot · MT5

Raven Cost Averaging

by randiapriliyadiR

Raven Cost Averaging is a multi-currency grid robot for MetaTrader 5 designed to trade seven major forex pairs from a single chart.

High risk

GitHub stars1
Forks0
Last update4 days ago18 Sep 2026
LicenceApache-2.0
Latest release3.44 days ago

Overview

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.

Details

Author

randiapriliyadiR on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Hedging, Indicator crossover

Markets

Forex

Timeframes

M15-H1

Risk profile

  • Opens a grid of orders: exposure builds up in a trend
  • Holds opposite positions at once
  • Trades without a fixed stop loss

Input parameters

Read from Raven Cost Averaging.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpSectionGeneralstring=== General ===
MaxLayersint0Max Layers (0 = no limit)
MaxLayerScopeENUM_MAX_LAYER_SCOPEMAX_LAYER_MAGIC_ONLYMax Layer Scope
SymbolSuffixstringcSymbol Suffix (empty = none)
InpSectionOpsstring=== Operations ===
ShowPanelbooltrueShow Panel
InpSectionEntrystring=== Entry Filter ===
UseSmaEntryFilterbooltrueSMA200 entry filter (default)
SmaTimeframeENUM_TIMEFRAMESPERIOD_M15SMA200 timeframe
InpSectionEURUSDstring=== EURUSD ===
EURUSD_EnablebooltrueEnable EURUSD
EURUSD_Lotdouble0.1Lot EURUSD
Show all 40 inputs
NameTypeDefaultDescription
EURUSD_PipStepint10Pip Step EURUSD
EURUSD_Magiculong111111Magic EURUSD
InpSectionGBPUSDstring=== GBPUSD ===
GBPUSD_EnablebooltrueEnable GBPUSD
GBPUSD_Lotdouble0.1Lot GBPUSD
GBPUSD_PipStepint14Pip Step GBPUSD
GBPUSD_Magiculong222222Magic GBPUSD
InpSectionUSDCHFstring=== USDCHF ===
USDCHF_EnablebooltrueEnable USDCHF
USDCHF_Lotdouble0.1Lot USDCHF
USDCHF_PipStepint9Pip Step USDCHF
USDCHF_Magiculong333333Magic USDCHF
InpSectionNZDUSDstring=== NZDUSD ===
NZDUSD_EnablebooltrueEnable NZDUSD
NZDUSD_Lotdouble0.1Lot NZDUSD
NZDUSD_PipStepint8Pip Step NZDUSD
NZDUSD_Magiculong444444Magic NZDUSD
InpSectionAUDUSDstring=== AUDUSD ===
AUDUSD_EnablebooltrueEnable AUDUSD
AUDUSD_Lotdouble0.1Lot AUDUSD
AUDUSD_PipStepint9Pip Step AUDUSD
AUDUSD_Magiculong555555Magic AUDUSD
InpSectionUSDJPYstring=== USDJPY ===
USDJPY_EnablebooltrueEnable USDJPY
USDJPY_Lotdouble0.1Lot USDJPY
USDJPY_PipStepint130Pip Step USDJPY
USDJPY_Magiculong666666Magic USDJPY
InpSectionUSDCADstring=== USDCAD ===

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone randiapriliyadiR/raven-cost-averaging 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

AutoTrade EA

by liucheng-12-08
3 stars

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

MT4MT5 Trading robot ScalpingIndicator crossoverMartingale High risk
Updated 7 months ago None stated GitHub repository of AutoTrade EA

Mr X Grid Hedge

by ibrahimzameel9232-lgtm
2 stars

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.

MT5 Trading robot GridMartingaleHedging High risk
Updated 10 months ago None stated GitHub repository of Mr X Grid Hedge

STO Martin

by crq644
2 stars

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

MT5 Trading robot MartingaleGridTrend following High risk
Updated 3 years ago None stated GitHub repository of STO Martin

Xauusd Auto Trader

by ibadnarpatih-create
2 stars

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

MT5 Trading robot Trend followingIndicator crossoverMartingale High risk
Updated 3 weeks ago GPL-3.0 GitHub repository of Xauusd Auto Trader

Price Less EA

by exalkas
2 stars

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

MT4 Trading robot GridIndicator crossoverMartingale High risk
Updated 8 years ago None stated GitHub repository of Price Less EA
1 stars

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

MT4 Trading robot GridMartingaleIndicator crossover High risk
Updated 8 years ago None stated GitHub repository of Integra 777 Buy Sell

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