Gotobi Settlement EA
- Uzmanlar
- Sürüm: 1.0
- Etkinleştirmeler: 5
Gotobi Settlement EA trades one well-known pattern of the yen market: the Tokyo fix on gotobi days. The 5th, 10th, 15th, 20th, 25th, 30th and the last day of the month are traditional settlement days in Japan, and on those days USDJPY has often risen into the 09:55 JST fixing rate and eased after it. The usual explanation is dollar buying by Japanese importers before the fix; the EA does not depend on that explanation, it trades the pattern that the tests below measure. It sells USDJPY at 09:55 JST on those days and closes the trade 60 minutes later.
Is it for you?
Good fit if you:
- want a simple EA with one clear rule that you can check yourself;
- accept a modest edge, small risk per trade and losing months;
- can keep MT5 running in the Tokyo morning (a VPS is recommended).
Not a good fit if you:
- expect daily trades — it trades only on gotobi days, about 6 per month;
- want it to buy as well — it only sells, because that is the side the pattern supports in my tests;
- plan to raise the risk far above the default.
How it works
- Gotobi days: the 5th, 10th, 15th, 20th, 25th, 30th and the last day of each month. When that day is a weekend or a Japanese holiday, the EA trades on the previous Tokyo business day of the same month (the convention it uses); if there is no such day in that month (for example a 5 January after the New Year holidays), that gotobi is skipped.
- Japanese national holidays are built in: the official Cabinet Office list for 2018–2027, and for later years the dates are calculated with the rules of the Japanese holiday law. The bank holidays of 31 December to 3 January are skipped.
- At 09:55 Tokyo time the EA opens one sell trade. If the terminal had no tick in the first 5 minutes after the fix, the day is skipped rather than entered late.
- Stop loss = 1 × ATR(24) on H1. No take profit: the trade is closed 60 minutes after the fix (10:55 JST).
- At most one trade per gotobi day. No position is held overnight.
- A short text on the chart shows the next trade day and its entry time in your broker's server time.
Risk management
- Position size is a fixed percentage of equity (default 0.5% per trade) lost if the stop is hit, spread included.
- No grid, no martingale, no averaging, no hedging.
- If the risk-based lot is below your broker's minimum lot, the EA trades the minimum lot only while its real risk stays at or below 2% of equity; otherwise it skips the day.
- Free margin is checked before every order. The trade is skipped if the spread at the fix is wider than Max_Spread_Pips (default 5 pips).
What you need to know before you buy
- It trades rarely. About 74 trades per year, all sells, all closed within one hour.
- All trading happens in the Tokyo morning. 09:55–10:55 JST is 02:55–03:55 or 03:55–04:55 server time on most GMT+2/+3 brokers. The terminal must be running then.
- The pattern is public. The gotobi effect has been written about for years, and a known effect can weaken. 2026 has been close to flat so far (−23 USD at 0.5% risk, see below).
- Broker time is handled for you in live trading. The EA reads your broker's GMT offset from the terminal. Tokyo has no daylight saving, so only your broker's clock changes matter.
Time zones
In the Strategy Tester the broker clock cannot be detected, so it is set with the two "Strategy Tester only" inputs: the default is GMT+2/+3 with US daylight saving. Some brokers move their server clock on the European dates instead; choose the European option for them. The results below use Admirals price data, whose server follows the European dates, so they were run with the European setting. This matters more than usual here: with the wrong (US) setting, the Admirals test enters one hour off in the weeks between the US and European clock changes, and the 2018–2026 result drops from PF 1.49 to PF 1.42.
Backtest results (simulation, not live trading)
USDJPY, real ticks (history quality 100%), 10,000 USD, 0.5% risk per trade, default inputs, broker daylight saving set to European, Admirals price history.
- 2018 – 2 December 2026: +4,592 USD, profit factor 1.49, 670 trades, maximum equity drawdown 3.9%.
- By year: 2018 +132, 2019 +722, 2020 +808, 2021 +323, 2022 +523, 2023 +204, 2024 +816, 2025 +1,086, 2026 (to 2 Dec) −23. Eight of nine years positive.
- Extra cost of 0.5 pips per trade (2018 – Nov 2026): profit factor 1.34.
How it was tested
Every paid EA I publish must pass the same five checks: in-sample and unchanged forward period, most years positive, extra costs, ±20% parameter changes, and real ticks. This strategy passed all five:
- The rule was chosen on 2018–2024 data. On 2025–2026, unchanged, all 12 combinations of pair (USDJPY, EURJPY, GBPJPY) and holding time (30–120 minutes) were profitable (1-minute-bar tests, before the holiday calendar was added).
- Changing the holding time (48 / 60 / 72 minutes) and the stop (0.8 / 1.0 / 1.2 × ATR) kept all 9 variants profitable on real ticks, with profit factors from 1.48 to 1.56.
- Selling on every Tokyo business day instead of only gotobi days was much weaker (profit factor about 1.2 on USDJPY), and buying before the fix did not hold up in 2025–2026. That is why the EA trades only gotobi days and only sells.
- Eight of nine calendar years were positive on real ticks (above).
The edge is modest and one-sided. USDJPY is the recommended symbol. EURJPY was also profitable but has real-tick data only for 2025–2026 (+998 USD, profit factor 1.59, 143 trades with the spread filter off; with the default 5-pip filter 4 of those days were skipped on Admirals). AUDJPY and CADJPY were negative in my tests and are not recommended. Results depend on your broker's spread and execution in the Tokyo morning.
Please test the EA on a demo account with your own broker before trading real money.
Try the demo in 3 steps
- Strategy Tester → Gotobi Settlement EA, symbol USDJPY, any timeframe (M5 was used).
- Model: Every tick based on real ticks, period 2024–today, deposit 10,000, default inputs.
- Expect about 6 trades per month, all sells at 09:55 JST and closed an hour later. If your broker is not on GMT+2/+3 with US daylight saving, set the two "Strategy Tester only" inputs first.
FAQ
- No trade today — is it broken? Check the text on the chart: trades happen only on gotobi days (moved to the previous business day around weekends and Japanese holidays).
- My tester result is different from yours. Check the two broker-time inputs first: one hour off changes many trades. Then the spread.
- Can I run it on several yen pairs? Yes, one chart per pair with a different magic number, but USDJPY is the recommended one (see above).
- What happens after 2027? The official Japanese holiday list goes to 2027; for later years the EA calculates the holidays by the rules of the law and prints a notice. One-off holidays announced later would need an update, which I will publish.
User guide and set files
Guide with the gotobi calendar, broker time, tester settings and the set files: https://www.mql5.com/en/blogs/post/782990
Recommended use
- Symbol: USDJPY, any chart timeframe (the EA reads H1 data internally).
- Account: works from about 100 USD with a broker that offers 0.01 lot (in a 2025–2026 test with 100 USD, 130 of the 143 trade days were traded; the others were skipped by the 2% minimum-lot limit); 1,000 USD or more lets the risk setting work as intended.
- Run on a VPS or a computer that is on in the Tokyo morning.
Inputs
- Risk_Percent (0.5): risk per trade, percent of equity (0.05–3.0).
- Max_Spread_Pips (5.0): skip the trade if the spread at the fix is wider; applies to yen pairs; 0 = off.
- Hold_Minutes (60): minutes to hold after the 09:55 JST fix (15–240).
- Stop_ATR (1.0): stop loss as a multiple of ATR(24) on H1 (0.3–3.0).
- Use_JP_Holidays (true): skip Japanese holidays and move gotobi days to the previous business day.
- Tester_GMT_Offset / Tester_DST (2 / US): broker clock, used only in the Strategy Tester.
- Magic_Number, Trade_Comment: order identification.
Risk warning
Trading leveraged products carries a high risk of loss. Backtest results are simulations based on historical data and do not guarantee future results. Only trade with money you can afford to lose.
