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.
Grid-based trade management with lot multipliers
Multi-indicator entry system including MA and MACD
Automated holiday shutdown and spread filtering
Account-wide drawdown and equity protection limits
Read from b4.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
Version_3_9_6
string
EA Settings:
TradeComment
string
B4
EANumber
int
1
EmergencyCloseAll
bool
false
LabelAcc
string
Account Trading Settings:
ShutDown
bool
false
StopTradePercent
double
10
NanoAccount
bool
false
PortionPC
double
100
PortionChange
int
1
MaxDDPercent
double
50
MaxSpread
double
5
Show all 40 inputs
Name
Type
Default
Description
UseHolidayShutdown
bool
true
Holidays
string
18/12-01/01
PlaySounds
bool
false
AlertSound
string
Alert.wav
LabelIES
string
Indicator / Entry Settings:
B3Traditional
bool
true
ForceMarketCond
int
3
UseAnyEntry
bool
false
MAEntry
int
1
CCIEntry
int
0
BollingerEntry
int
0
StochEntry
int
0
MACDEntry
int
0
LabelLS
string
Lot Size Settings:
UseMM
bool
true
LAF
double
0.5
Lot
double
0.01
Multiplier
double
1.4
LabelGS
string
Grid Settings:
AutoCal
bool
false
ATRTF
int
0
ATRPeriods
int
21
GAF
double
1.0
EntryDelay
int
2400
EntryOffset
double
5
UseSmartGrid
bool
true
LabelTS
string
Trading Settings:
MaxTrades
int
15
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone shturm/b4 from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
3Copy the filesCopy the .mq4 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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
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