The robot identifies price ranges during specific time windows and enters trades upon a breakout. It features a trend filter using fast and slow moving averages to align entries with broader market direction. Risk management includes automatic lot sizing based on account percentage, a stop loss calculated as a factor of the range height, and a trailing stop. Users can limit the maximum number of trades per day and set specific hours for closing all open positions.
Read from Box Breakout v1.4.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
Timeframe
ENUM_TIMEFRAMES
PERIOD_CURRENT
Magic
int
1
Magic (Need to use magic number for each different EA)
LotSize
double
0.1
RiskPercent
double
0.5
RiskPercent (0 = Use Fixed LotSize)
TpPoints
double
0
TPoints (0 = No TP)
TpFactor
double
0
TpFactor (0 = Use TpPoints)
SlFactor
double
1.0
SlFactor (Multiplier for stop loss distance - 1.0 = at opposite range, 2.0 = 2x range distance)
TslTriggerPoints
double
0
TslTriggerPoints (0 = No Tsl)
TslTriggerFactor
double
0.75
TslTriggerFactor (0 = Use TslTriggerPoints)
TslPoints
double
25
TslPoints (0 = Breakeven)
TradeWithTrend
bool
true
TradeWithTrend (Forces strategy to only trade with the trend)
TrendMaTimeframe
ENUM_TIMEFRAMES
PERIOD_H1
TrendMaTimeframe (The timeframe the trending moving average should be calculated)
Show all 29 inputs
Name
Type
Default
Description
SlowTrendMaMethod
ENUM_MA_METHOD
MODE_SMA
SlowTrendMaMethod (The type of moving average used to determine the slow trend)
SlowTrendMaPeriod
int
200
SlowTrendMaPeriod (The period used to calculate the slow trending moving average)
FastTrendMaMethod
ENUM_MA_METHOD
MODE_SMMA
FastTrendMaMethod (The type of moving average used to determine the fast trend)
FastTrendMaPeriod
int
60
FastTrendMaPeriod (The period used to calculate the fast trending moving average)
RangeBuffer
double
0
RangeBuffer (Amount in points between the two moving averages to represent a ranging market)
RangeTimeframe
ENUM_TIMEFRAMES
PERIOD_H1
RangeTimeframe (Fixed timeframe for consistent range calculation)
RangeStartHour
int
3
RangeStartMinute
int
0
RangeEndHour
int
7
RangeEndMinute
int
30
StopTradingHour
int
17
StopTradingMinute
int
30
ClosePositionsHour
int
19
ClosePositionsMinute
int
55
MaxTradesPerDay
int
1
MaxTradesPerDay (Maximum number of executed trades per day - EA cancels remaining orders when limit reached)
HistoricalDays
int
30
HistoricalDays (Number of past days to display ranges for - maximum 50)
ShowAllTradingLines
bool
true
ShowAllTradingLines (Show trading window lines for all historical ranges)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone je-zhou/Forex-Algotrading-Strategies--MQL5- from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
3Copy the filesCopy the .mq4 / .mq5 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.
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
This MetaTrader 5 expert advisor specializes in trading Gold (XAUUSD) by targeting volatility during the New York session. It utilizes an Average True Range (ATR) indicator to identify market trends and determine entry levels for limit orders. Risk management includes fixed stop loss parameters and dynamic trailing sto
Black XAU is an automated trading robot for MetaTrader 5, specifically designed for gold. It utilizes a multi-timeframe breakout and retest strategy, identifying trading zones based on initial H4 market structure. Entries are triggered on the M5 timeframe when price retests a confirmed breakout level. The expert adviso
Binario is a breakout expert advisor for MetaTrader 4 and 5 that utilizes a price channel constructed from two moving averages of the same period. By default, it uses a 144-period exponential moving average applied to both highs and lows. It enters trades when the price moves outside this band by a predefined pip dista
Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man
This MetaTrader 4 expert advisor executes a regime-gated breakout strategy specifically optimized for XRP and ETH markets. It operates on the H4 timeframe, utilizing Bollinger Bands for entry signals coupled with ADX and ATR filters to identify high-volatility trend environments. The EA employs a one-shot entry approac