Trading robot · MT5

RiskGuard Pro

by farhadiamirali403-lab

RiskGuard Pro is a multi-strategy expert advisor for MetaTrader 5 that combines automated trade execution with comprehensive risk management.

High risk

GitHub stars1
Forks0
Last updateyesterday21 Sep 2026
LicenceNone stated

Overview

RiskGuard Pro features a voting engine that aggregates signals from indicators like RSI, MACD, and Bollinger Bands. The EA supports various lot-sizing methods, including fixed lots and percentage-based risk. It includes grid and martingale strategies with basket-level take profit and stop loss targets. Protective features include ATR-based dynamic stops, trailing stops, and daily drawdown limits. A draggable on-chart dashboard provides real-time statistics and manual trade buttons for enhanced control.

Details

Author

farhadiamirali403-lab on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Multi-strategy, Grid, Martingale, Indicator crossover

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend

Input parameters

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

NameTypeDefaultDescription
InpMagiclong20250919Magic number
InpCommentstringRiskGuardProOrder comment
InpSlippageint20Max slippage (points)
InpScopeENUM_RGP_SCOPERGP_SCOPE_EAWhich positions are managed
InpLotModeENUM_RGP_LOTRGP_LOT_RISK_PCTLot calculation mode
InpFixedLotdouble0.01Fixed lot
InpRiskPercentdouble1.0Risk per trade (%)
InpRiskMoneydouble50.0Risk per trade (money)
InpBalancePercentdouble2.0Balance used as margin (%)
InpLotPerBlockdouble0.01Lot per block
InpBlockSizedouble1000.0Block size (account currency)
InpRiskBaseENUM_RGP_BASERGP_BASE_BALANCERisk is measured on
Show all 40 inputs
NameTypeDefaultDescription
InpFixedBasedouble10000.0Fixed base amount
InpMaxLotdouble10.0Maximum lot per trade
InpMinLotFloordouble0.0Minimum lot floor (0 = strict risk)
InpMaxPositionsint5Max open positions (0 = off)
InpMaxPerSymbolint2Max positions per symbol (0 = off)
InpMaxTotalLotsdouble50.0Max total lots (0 = off)
InpMaxTotalRiskPctdouble5.0Max combined open risk (%) (0 = off)
InpMinMarginLeveldouble200.0Minimum margin level (%) (0 = off)
InpUseAdaptiveboolfalseAdjust risk after wins/losses
InpLossFactordouble0.5Risk multiplier per loss
InpWinFactordouble1.0Risk multiplier per win
InpAdaptStepsint3Max steps applied
InpMinRiskPctdouble0.1Lower risk bound (%)
InpMaxRiskPctdouble3.0Upper risk bound (%)
InpResetOnWinbooltrueBack to base risk after a win
InpSLModeENUM_RGP_SLRGP_SL_ATRStop loss mode
InpSLPointsdouble300Stop loss (points)
InpSLATRPeriodint14ATR period
InpSLATRMultdouble2.0ATR multiplier for SL
InpSwingBarsint20Bars used for the swing stop
InpSLTimeframeENUM_TIMEFRAMESPERIOD_CURRENTTimeframe for ATR / swing
InpTPModeENUM_RGP_TPRGP_TP_RRTake profit mode
InpTPPointsdouble600Take profit (points)
InpTPATRMultdouble3.0ATR multiplier for TP
InpRewardRatiodouble2.0Reward : risk
InpMinSLPointsdouble50Minimum stop distance (points)
InpMaxSLPointsdouble20000Maximum stop distance (points)
InpForceSLbooltrueAdd a stop loss when missing

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone farhadiamirali403-lab/Expert-RiskGuardPro- 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, and any .mqh files into the Include folder the code expects.
  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

Forex Brother Algo 1

by hkmarquix
1 stars

This MetaTrader 4 expert advisor implements a multi-strategy framework for automated trading across various symbols. It incorporates several technical entry signals, including Ichimoku, Bollinger Bands, and ADX-filtered logic. The EA provides multiple trade management options, explicitly including martingale lot scalin

MT4 Trading robot Multi-strategyMartingaleIndicator crossover High risk
Updated 5 years ago None stated GitHub repository of Forex Brother Algo 1

Currency Strength EA

by drdz9876
6 stars

This MetaTrader 5 expert advisor utilizes a multicurrency strength system to identify trading opportunities by comparing relative currency values. It calculates strength based on a configurable lookback period, typically using H4 data, and includes triangular weighting and smoothing options. The robot manages exits usi

MT5 Trading robot MartingaleMulti-strategyGrid High risk
Updated 4 years ago GPL-3.0 GitHub repository of Currency Strength EA
5 stars

This MetaTrader 5 expert advisor is designed for gold trading using a combined martingale and grid approach. It uses a moving average crossover filter to determine initial entry direction. If the market moves against the position, the EA opens additional trades at fixed intervals, increasing the lot size via a multipli

MT5 Trading robot MartingaleGridIndicator crossover High risk
Updated 10 months ago None stated GitHub repository of XAUUSD Martingale Grid

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

IchiDCA CCBSN PropFirm EA

by magicniuniu
3 stars

IchiDCA CCBSN PropFirm EA is an automated trend-following robot for MetaTrader 5, optimized for gold and forex markets. It triggers trades based on Ichimoku Cloud breaks, filtered by dual Exponential Moving Averages and MACD indicators. The strategy manages positions through a Dollar Cost Averaging system that layers u

MT5 Trading robot Trend followingGridMean reversion High risk

Fibonacci ICT EA

by Shifrozy
2 stars

Fibonacci ICT EA for MetaTrader 5 combines institutional price action concepts with Fibonacci retracement levels. It identifies higher timeframe trends and enters on pullbacks to specific golden zones using confirmations like Break of Structure and Fair Value Gaps. The system includes robust risk management such as per

MT5 Trading robot SMC / ICT / price actionIndicator crossoverMean reversion High risk
Updated 3 weeks ago None stated GitHub repository of Fibonacci ICT EA

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