Trading robot · MT5

RvFx Trading Bot

by bipin-vishwakarma

RvFx is an automated trading system for MetaTrader 5 that utilizes grid and hedging techniques.

High risk

GitHub stars1
Forks1
Last update2 months ago21 Jul 2026
LicenceNone stated

Overview

RvFx Trading Bot manages trades through a cycle-based logic, adding positions at fixed point intervals. The EA includes sophisticated lot sizing options, such as linear steps, multipliers, and a predefined sequence, which results in martingale-style lot scaling. Risk controls include an adaptive drawdown protection system that adjusts limits based on the current layer count and a minimum free margin filter. It features an on-chart dashboard and includes a manual simulator for testing.

Details

Author

bipin-vishwakarma on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Hedging, Martingale

Markets

Forex

Timeframes

Any timeframe

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend
  • Holds opposite positions at once
  • Trades without a fixed stop loss

Topics

algorithmic-tradingexpert-advisorforexmetatrader5mql5trading-bot

Input parameters

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

NameTypeDefaultDescription
StartLotdouble0.01Starting lot for linear step
EndLotdouble0.06Maximum lot for linear step
LotStepdouble0.01Increment per layer in linear step
LotMultiplierdouble1.3Multiplier after predefined sequence
UseFixedSequencebooltrueUse predefined lot sequence
TP_Pointsdouble100.0TP in points
FixedGapPointsdouble200.0Distance between layers in points
MaxLayersint40Maximum layers per cycle (safety limit)
AllowCycleCompletionbooltrueOverride MaxLayers for near-completion cycles
EnableAdaptiveDDbooltrueEnable adaptive drawdown protection
MaxDD_EarlyStagedouble15.0Max DD % for 0-10 layers
MaxDD_MidStagedouble25.0Max DD % for 11-20 layers
Show all 21 inputs
NameTypeDefaultDescription
MaxDD_NearCompletedouble35.0Max DD % for 21-29 layers
MaxDD_Completiondouble40.0Max DD % for 30+ layers
MinFreeMarginPercentdouble30.0Minimum free margin % to continue
MagicNumberint777888Magic number for position identification
Slippageint10Max deviation in points
CommentPrefixstringRv_fxComment prefix for orders
EnableAlertsbooltrueEnable alerts
ShowDashboardbooltrueShow on-chart dashboard
EnableLoggingbooltrueEnable detailed logging

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone bipin-vishwakarma/rvfx-trading-bot 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

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

Grid Hedge Combine

by Far-1d
3 stars

Grid Hedge Combine is a MetaTrader 5 expert advisor designed to automate market entries using a mixture of grid and hedging techniques. It opens initial trades and layers subsequent orders at predefined pip intervals when the price moves against the position. The EA features lot size scaling, allowing for aggressive or

MT5 Trading robot GridMartingaleHedging High risk
Updated 1 year ago None stated GitHub repository of Grid Hedge Combine

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

AW Full Recovery EA

by wongthep
2 stars

This MetaTrader 5 expert advisor functions as a grid-based recovery system that can operate independently or manage trades from external EAs via magic number filtering. It initiates entries using Bollinger Bands and RSI indicators, then manages drawdown through a recovery grid matrix. The system employs dynamic ATR-bas

MT5 Trading robot GridMartingaleHedging High risk
Updated 3 months ago None stated GitHub repository of AW Full Recovery EA

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

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