Japan 225 Closing Model
- Experts
- 버전: 1.25
- 활성화: 20
Japan 225 Closing Model
Japan 225 Closing Model is an MT5 Expert Advisor for the Nikkei 225 cash index CFD. Thirty minutes before the Tokyo cash close, it uses the morning and afternoon price moves to forecast direction through the close. A positive forecast gives a buy signal and a negative forecast gives a sell signal.
What the model learns
The EA uses the midpoint of Bid and Ask to measure two returns. The first runs from the previous session's cash close to 09:30. The second covers the half-hour ending just before the signal. A linear regression estimates how those two moves have related to the final half-hour's return on earlier trading days.
The training window covers the previous 252 scheduled JPX sessions. If at least 227 sessions have all required Bid and Ask ticks, the model uses those complete tick records. Otherwise, it may estimate missing historical midpoints from the selected instrument's completed one-minute Bid bars. It takes the Bid open or close of the exact required minute and adds half the bar's recorded spread in price units. At least 227 complete sessions are still required. Using estimates can change the forecast direction.
The model can estimate the previous session's close in the same way. The current day's intraday observations, signal and order execution require quotes supplied by MT5. This rule applies in both the tester and live trading. If the required data are unavailable, the EA skips the trade.
Entry and exit in Japan time
From November 5, 2024, the afternoon input runs from 14:30 through the last quote in the 14:59 minute. The signal minute begins at 15:00, the cash close is 15:30, and the scheduled exit begins at 16:00:15.
Through November 1, 2024, the afternoon input runs from 14:00 through the last quote in the 14:29 minute. The signal minute begins at 14:30, the cash close is 15:00, and the scheduled exit begins at 15:30:15.
The EA confirms the signal on the first valid quote in the signal minute. It waits at least 15 seconds and can submit an entry only before that minute ends. The scheduled exit is 60 minutes and 15 seconds after the signal minute begins. If the broker has closed the instrument by then, the EA holds the position and attempts to close on an eligible quote when trading resumes. This can extend overnight or over a weekend.
Instrument and backtest setup
Attach the EA to your broker's Nikkei 225 cash CFD chart. The preferred contract has no expiry, uses Bid bars and has JPY as its profit currency. Leave IndexSymbol blank for automatic selection or enter your broker's exact symbol, including its suffix. If the preferred contract cannot be selected, the EA uses the attached chart symbol when it permits both buy and sell market orders. On an EURUSD chart this can result in a model trained on EURUSD history and orders placed on EURUSD, including on a live account.
To check the selection, start with EnableNewEntries set to false and look for TRADE_SYMBOL in the Experts log. For backtests, set the UTC offset and daylight saving rule used by your broker during the tested period. Provide price history for the previous 252 trading sessions plus one preceding session for the reference close. The built-in JPX calendar starts on January 4, 2013. The first possible signal is January 17, 2014, and the last scheduled session is December 30, 2027.
Position size and exit management
Margin budget percent defaults to 5% of account equity. It sets the initial margin budget per new order and accepts decimal percentages greater than 0 and up to 100. To trade fixed volume, select fixed lots and enter Fixed lot size (default 0.01). The order must meet the broker's volume and margin requirements.
The EA manages exits by time and places no fixed stop-loss or take-profit orders. Keep MT5 connected and algorithmic trading enabled while a position is open.
