Tokyo Box calculates the high and low of a defined Asian session and executes breakout or range-reversion trades during the US session. The robot includes automated risk management features such as lot sizing, stop loss and take profit levels based on the session range percentage, and break-even or trailing stop adjustments. It also draws visual session boxes on the chart to illustrate the trading zones. The repository documentation is minimal.
Read from TokyoBox.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
TradeMode
ENUM_TRADE_MODE
TRADE_BOTH
Trading Mode
AsianStartHour
int
3
Asian session start hour (03:00 GMT+3)
AsianStartMin
int
0
Asian session start minute (0)
AsianEndHour
int
11
Asian session end hour (11:00 GMT+3)
AsianEndMin
int
0
Asian session end minute (0)
USStartHour
int
11
US session start hour (11:00 GMT+3)
USStartMin
int
0
US session start minute (0)
USEndHour
int
23
US session end hour (23:00 GMT+3)
USEndMin
int
0
US session end minute (0)
MainTimeframe
ENUM_TIMEFRAMES
PERIOD_H1
Main timeframe for Asian session range
LowerTimeframe
ENUM_TIMEFRAMES
PERIOD_M15
Lower timeframe for US session breakouts and range trades
TrailingPercent
double
50.0
% of Asian session range for breakout trailing stop
Show all 21 inputs
Name
Type
Default
Description
RangeTradeSLPercent
double
50.0
% of Asian session range for range trade SL
TakeProfitPercent
double
100.0
% of Asian session range for breakout take-profit
BreakEvenPercent
double
0.5
% price change to move SL to break-even
RangeTradeThresholdPercent
double
75.0
% of range for range trade entry (unused, retained for compatibility)
LotSize
double
0.1
Lot size for trades
AsianBoxColor
color
clrGreen
Color for Asian session box (live and static)
PreUSBoxColor
color
clrYellow
Color for box from Asian end to US start (skipped)
USBoxColor
color
clrBlue
Color for box during US session
KeepBoxesDays
int
3
Number of days to keep boxes (default 3)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone polcad/Trading_scripts from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .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.
This MetaTrader 5 expert advisor is designed for scalping gold on the M1 timeframe. It features a versatile strategy engine capable of toggling between breakout and mean-reversion modes based on market conditions. The system manages trades using ATR-based trailing stops, break-even adjustments, and time-based exits. Ri
This expert advisor for MetaTrader 5 is a multi-strategy system that utilizes market regime detection to switch between trend following, range trading, and breakout modes. It incorporates a wide array of technical indicators, including Moving Averages, RSI, MACD, Ichimoku, and SuperTrend. The bot manages risk through v
Gold SnR Momentum Scalper Pro is an automated scalping robot for MetaTrader 5, specifically optimized for XAUUSD on the M1 timeframe. It identifies entry points by combining support and resistance zones with RSI and moving average momentum. The system incorporates tick-level analysis to measure buying and selling press
This automated expert advisor for MetaTrader 5 implements a mean-reversion strategy based on Asian session price ranges. It identifies the high and low levels during specific Asian trading hours and monitors for a price breakout. Instead of trading the breakout momentum, it enters a position when price returns inside t
This MetaTrader 5 expert advisor is designed specifically for trading gold (XAUUSD). The system utilizes a modular architecture to detect market regimes, identify ranges, and execute trades based on liquidity sweeps and breakouts. It incorporates several filters, including spread and volume checks, alongside a drawdown
This automated trading robot for MetaTrader 5 implements Smart Money Concepts (SMC) and ICT principles using a hybrid architecture. Trading logic and signal detection are processed within a native C++ DLL, while the MQL5 bridge handles trade execution and data feeding. The system identifies market structure shifts, inc
MT5Trading robotSMC / ICT / price actionBreakoutTrend following