Trading robot · MT5

Tokyo Box

by polcad

This expert advisor for MetaTrader 5 automates trading strategies based on the Asian session price range.

GitHub stars2
Forks0
Last update10 months ago5 Nov 2025
LicenceNone stated

Overview

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.

Details

Author

polcad on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout, Mean reversion

Markets

Forex

Timeframes

M15-H1

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

EA files

Input parameters

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

NameTypeDefaultDescription
TradeModeENUM_TRADE_MODETRADE_BOTHTrading Mode
AsianStartHourint3Asian session start hour (03:00 GMT+3)
AsianStartMinint0Asian session start minute (0)
AsianEndHourint11Asian session end hour (11:00 GMT+3)
AsianEndMinint0Asian session end minute (0)
USStartHourint11US session start hour (11:00 GMT+3)
USStartMinint0US session start minute (0)
USEndHourint23US session end hour (23:00 GMT+3)
USEndMinint0US session end minute (0)
MainTimeframeENUM_TIMEFRAMESPERIOD_H1Main timeframe for Asian session range
LowerTimeframeENUM_TIMEFRAMESPERIOD_M15Lower timeframe for US session breakouts and range trades
TrailingPercentdouble50.0% of Asian session range for breakout trailing stop
Show all 21 inputs
NameTypeDefaultDescription
RangeTradeSLPercentdouble50.0% of Asian session range for range trade SL
TakeProfitPercentdouble100.0% of Asian session range for breakout take-profit
BreakEvenPercentdouble0.5% price change to move SL to break-even
RangeTradeThresholdPercentdouble75.0% of range for range trade entry (unused, retained for compatibility)
LotSizedouble0.1Lot size for trades
AsianBoxColorcolorclrGreenColor for Asian session box (live and static)
PreUSBoxColorcolorclrYellowColor for box from Asian end to US start (skipped)
USBoxColorcolorclrBlueColor for box during US session
KeepBoxesDaysint3Number of days to keep boxes (default 3)

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone polcad/Trading_scripts 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.
  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

High Frequency Scalper

by Pusparaj99op
5 stars

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

MT5 Trading robot ScalpingBreakoutMean reversion

Nolo Trading Bot

by festomanolo
4 stars

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

MT5 Trading robot Trend followingMean reversionBreakout High risk
Updated 6 months ago MIT GitHub repository of Nolo Trading Bot
4 stars

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

MT5 Trading robot ScalpingBreakoutMean reversion
Updated 3 months ago Custom licence GitHub repository of Gold SnR Momentum Scalper Pro
3 stars

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

MT5 Trading robot Mean reversionBreakout
Updated 1 year ago None stated GitHub repository of Asian Range Breakout

Xauusd God MT5

by techly39
3 stars

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

MT5 Trading robot BreakoutSMC / ICT / price actionMean reversion
Updated 10 months ago None stated GitHub repository of Xauusd God MT5

EA SMC Engine

by Pauloeduspbr
3 stars

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

MT5 Trading robot SMC / ICT / price actionBreakoutTrend following
Updated 5 months ago MIT GitHub repository of EA SMC Engine

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