Trading robot ยท MT5

Springfield 3 Grids

by sournk

This MetaTrader 5 expert advisor implements a multi-layered grid strategy that manages up to three independent grids simultaneously on a single instrument.

High risk

GitHub stars2
Forks4
Last update2 years ago11 Dec 2023
LicenceNone stated
Latest release1.1.02 years ago

Overview

Springfield 3 Grids uses the Relative Strength Index (RSI) across different timeframes to determine the initial trade direction for each grid. The EA employs martingale lot scaling, increasing the volume of subsequent positions by a multiplier at fixed point intervals. Risk is managed through a basket take profit calculated from the weighted average price of all open orders. The EA requires a license key to operate.

Details

Author

sournk on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Martingale, Mean reversion, Hedging

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
  • Holds opposite positions at once
  • Trades without a fixed stop loss

Input parameters

Read from Springfield-3Grids-MT5-Bot.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpLicenseKeystringโ€”Put here you license key with no sapces and line breaks
InpMaxTradesAuint5MaxTrades: Max grid size
InpLotsAdouble0.1Lots: Initial grid order lots size
InpLotsExponentAdouble1.5LotsExponent: Next grid order volume ratio
InpStepAuint300Step: Price distance to open next grid order, points
InpTakeProfitAuint300Take Profit: Distance from grid Break Even, points
InpRSITimeFrameAENUM_TIMEFRAMESPERIOD_M1RSI timeframe
InpMaxSlippageAulong2Max slippage for market operations, points
InpMagicAlong2023111901Magic number of the grid
InpEnabledBbooltrueGrid enabled
InpMaxTradesBuint5MaxTrades: Max grid size
InpLotsBdouble0.1Lots: Initial grid order lots size
Show all 30 inputs
NameTypeDefaultDescription
InpLotsExponentBdouble1.5LotsExponent: Next grid order volume ratio
InpStepBuint300Step: Price distance to open next grid order, points
InpTakeProfitBuint300Take Profit: Distance from grid Break Even, points
InpRSITimeFrameBENUM_TIMEFRAMESPERIOD_H1RSI timeframe
InpMaxSlippageBulong2Max slippage for market operations, points
InpMagicBlong2023111902Magic number of the grid
InpEnabledCbooltrueGrid enabled
InpMaxTradesCuint5MaxTrades: Max grid size
InpLotsCdouble0.1Lots: Initial grid order lots size
InpLotsExponentCdouble1.5LotsExponent: Next grid order volume ratio
InpStepCuint300Step: Price distance to open next grid order, points
InpTakeProfitCuint300Take Profit: Distance from grid Break Even, points
InpRSITimeFrameCENUM_TIMEFRAMESPERIOD_D1RSI timeframe
InpMaxSlippageCulong2Max slippage for market operations, points
InpMagicClong2023111903Magic number of the grid
InpRSIMAPerioduint14RSI: MA period, bars
InpRSIAppliedPriceENUM_APPLIED_PRICEPRICE_CLOSERSI: Applied price
InpLogLevelLogLevelLogLevel(INFO)Log level

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone sournk/Springfield-3Grids-MT5-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

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

Advanced Grid Trading

by jepli-1225
2 stars

Advanced Grid Trading is a MetaTrader 5 expert advisor that manages a complex grid strategy across four configurable layers. It places stop and limit orders at fixed intervals, employing either fixed or geometric lot scaling for increased grid depth. Trade management includes a shared profit pool used to close losing p

MT5 Trading robot GridMartingaleMean reversion High risk
Updated 6 months ago None stated GitHub repository of Advanced Grid Trading
1 stars

This Expert Advisor for MetaTrader 5 focuses on gold trading through a combination of mean-reversion signals and a grid management system. It uses multi-timeframe filters, including exponential moving averages and ADX on the H1 timeframe, to identify trend direction while executing entries on M15 based on RSI and Bolli

MT5 Trading robot Mean reversionGridMartingale High risk

Icarus

by fraggli
7 stars

Icarus is an automated trading system for MetaTrader 4 that employs a grid strategy with Martingale lot scaling. It utilizes Bollinger Bands and the Stochastic Oscillator to identify entry points, offering a conjunctive mode for filtered execution. The EA manages risk through maximum position limits, equity warning thr

MT4 Trading robot GridMartingaleMean reversion High risk
Updated 4 years ago GPL-3.0 GitHub repository of Icarus

North East Way

by Yogurt-Peng
3 stars

This MetaTrader 4 robot implements a multi-currency mean-reversion strategy, targeting price returns to the average on correlated forex pairs. It manages trades using a grid system with a significant martingale multiplier to scale lot sizes. The expert advisor allows for simultaneous trading on multiple symbols to dive

MT4 Trading robot Mean reversionGridMartingale High risk
Updated 1 year ago None stated GitHub repository of North East Way

Blessing Three

by duanwujie
1 stars

This MetaTrader 4 expert advisor is an automated grid trading system that utilizes a variety of indicators including Moving Averages, CCI, Bollinger Bands, and MACD for trade entries. It employs a martingale-style lot multiplier to manage position sizing across sequential grid levels. The software includes risk control

MT4 Trading robot GridMartingaleIndicator crossover High risk
Updated 9 years ago None stated GitHub repository of Blessing Three

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