Trading robot · MT4

B4

by shturm

B4 is an automated trading robot for MetaTrader 4 that utilizes a grid-based strategy with martingale lot scaling.

High risk

GitHub stars1
Forks2
Last update9 years ago11 Dec 2016
LicenceNone stated

Overview

B4 employs multiple technical indicators, including Moving Averages, CCI, Bollinger Bands, Stochastic, and MACD, to determine market entry points. The EA features comprehensive risk management controls such as account equity protection, maximum drawdown limits, spread filters, and a holiday shutdown schedule. It manages trades in baskets and includes a smart grid system to adjust trade spacing based on market volatility.

Details

Author

shturm on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Grid, Martingale, Indicator crossover

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

EA Files

Input Parameters

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

NameTypeDefaultDescription
Version_3_9_6stringEA Settings:
TradeCommentstringB4
EANumberint1
EmergencyCloseAllboolfalse
LabelAccstringAccount Trading Settings:
ShutDownboolfalse
StopTradePercentdouble10
NanoAccountboolfalse
PortionPCdouble100
PortionChangeint1
MaxDDPercentdouble50
MaxSpreaddouble5
Show all 40 inputs
NameTypeDefaultDescription
UseHolidayShutdownbooltrue
Holidaysstring18/12-01/01
PlaySoundsboolfalse
AlertSoundstringAlert.wav
LabelIESstringIndicator / Entry Settings:
B3Traditionalbooltrue
ForceMarketCondint3
UseAnyEntryboolfalse
MAEntryint1
CCIEntryint0
BollingerEntryint0
StochEntryint0
MACDEntryint0
LabelLSstringLot Size Settings:
UseMMbooltrue
LAFdouble0.5
Lotdouble0.01
Multiplierdouble1.4
LabelGSstringGrid Settings:
AutoCalboolfalse
ATRTFint0
ATRPeriodsint21
GAFdouble1.0
EntryDelayint2400
EntryOffsetdouble5
UseSmartGridbooltrue
LabelTSstringTrading Settings:
MaxTradesint15

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone shturm/b4 from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 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

Jack EA4

by jack139
2 stars

This MetaTrader 4 expert advisor automates trading using a Moving Average crossover strategy, specifically configured for the GBPUSD pair on fifteen-minute charts. It enters positions based on dual indicator signals and manages them through a combination of money-based take profit targets and lot size scaling. The syst

MT4 Trading robot Indicator crossoverMartingaleGrid High risk
Updated 7 years ago Custom licence GitHub repository of Jack EA4

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

Grid Martingale TA Signals

by SrisittikumChanintorn
1 stars

This MetaTrader 4 expert advisor executes a dual-direction grid trading strategy driven by technical analysis. It enters trades based on an Exponential Moving Average crossover logic using three distinct periods. The system employs a customizable martingale sequence where lot sizes increase after a user-defined number

MT4 Trading robot Indicator crossoverGridMartingale High risk
Updated 1 year ago None stated GitHub repository of Grid Martingale TA Signals

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 MT4?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers