Skip to content
All library documents

Nikkei 225 Opening-Gap Continuation with Range Breakouts and VWAP

Article MQL5 code base

Summary

This educational MetaTrader 5 strategy trades continuation after a qualifying gap between the prior Nikkei 225 cash-session close and the new session open. It builds an opening range from one-minute bars, calculates session VWAP, and considers a long after an upside range break above VWAP or a short after a downside break below VWAP. It cancels a setup if more than half the gap has filled before entry, and permits at most one entry per day.

The EA describes risk-based sizing from account equity and stop distance, with estimated losses converted to account currency, plus optional fixed lots, partial exits, break-even stops, targets, and a forced session exit. The material explains implementation and broker configuration but supplies no backtest results or evidence of profitability. It cautions that symbol specifications, session hours, data quality, and spread assumptions vary across brokers, and that users need to validate those settings for their own conditions.

Key ideas

  • The strategy seeks continuation after a sufficiently large Nikkei cash-session opening gap.
  • Entries require an opening-range break and confirmation that price remains on the appropriate side of session VWAP.
  • A setup is cancelled if over half of the opening gap fills before entry, and only one entry is allowed per day.
  • Position size can be tied to account equity and stop distance, with partial profit-taking and break-even management available.
  • Broker session schedules, contract specifications, spreads, and historical data can materially affect evaluation.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.