Skip to main content
Research resultMT5 v1.02

AIMS Gotobi EA

Research and execution software for MetaTrader 5 that trades the gotobi round trip on USDJPY: long from 03:00 Tokyo into the 09:55 fix, then short until 12:00 Tokyo, on gotobi days from Tuesday to Friday.

Evidence

Edge-lab test · hypothesis 64 · scored 2026-11-04

Pass

Gotobi days: the 5th, 10th, 15th, 20th, 25th and last day of each month; when Tokyo is shut, the Tokyo business day before, from the Tokyo Stock Exchange's calendar. Tuesday to Friday only: Monday's 03:00 Tokyo is before the week's open. Long USDJPY from the first minute at or after 03:00 Tokyo to the first at or after 09:55, then short from there to the first minute at or after 12:00 Tokyo. One value a day: the two legs' log returns after costs, summed, over USDJPY's daily volatility.

Against random round trips with the same side and times. Value a day is in a day’s volatility, after the broker’s spread and commission.
Scored onDaysValue a daytRandom runs beaten
Main marketUSDJPY, OANDA, 2016-01 to 2026-09577+0.0954.77100%
Second feedUSDJPY, HistData, 2016 to 2025-03463+0.10394.63No random control
Holdout, scored onceEURJPY GBPJPY CHFJPY NZDJPY, OANDA, 2004-05 to 2026-091259+0.04783.37100%
Full lab test →

Research, not a black box

You get the rules, our default settings and our test. Check them before you rely on them.

  1. Reproduce it. Run our test with the same settings in your own tester.
  2. Optimise it. Change the dates, symbols and costs. Watch for curve-fitting.
  3. Forward-test it. Run it on a demo account first.
  4. Decide. Going live is your decision.

A backtest is a historical simulation, not a live result. Read the Risk Disclosure and the Terms.

Type
Expert Advisor
Category
Calendar flow
Platforms
MT5
Language
MQL5
Repaints
No — clock and calendar only
Gotobi DaysTokyo 09:55 FixUSDJPYRound TripEdge Lab Tested

What Gotobi EA does

On gotobi days, the 5th, 10th, 15th, 20th, 25th and last day of the month, Japanese importers settle dollar bills. Banks buy those dollars into the Tokyo fix at 09:55, and the demand stops once the fix is set. AIMS Gotobi EA trades both halves of that flow on USDJPY.

Long into the fix

Buys USDJPY at 03:00 Tokyo on a gotobi day and closes at the 09:55 fix, while the importers’ dollar demand is still being filled.

Short after the fix

Sells at 09:55, never before the fix, and closes at 12:00 Tokyo, as the price gives back what the demand pushed up.

Tested in the edge lab first

The rule was scored in our lab on ten years of recorded USDJPY quotes at Pepperstone’s own spread, against random round trips, with a holdout of four yen crosses scored once. The EA was built after it passed, and the tester runs below check that it trades that rule.

How to trade Gotobi EA

  1. Attach to USDJPY

    Attach the EA to a USDJPY M5 chart on MetaTrader 5. On another symbol it prints a warning and still loads.

  2. Set the Server Clock

    Set InpServerNyPlus to your broker’s server offset from New York time. Pepperstone runs New York plus 7 hours.

  3. Choose the Exposure

    InpExposure sets the position’s value as a multiple of equity. The default is 1.0, one times equity.

  4. Let It Run

    The EA opens and closes both legs by the Tokyo clock. A leg it misses by more than InpLateMinutes is not chased.

Setups and chart grammar

Times are Tokyo time, which has no daylight saving. 03:00 Tokyo is 18:00 UTC the calendar day before.

SetupContextWhat the EA seesGoal
Gotobi dayThe 5th, 10th, 15th, 20th, 25th or last day of the monthA weekend or Tokyo exchange closure moves it to the business day beforeTraded Tuesday to Friday; a Monday gotobi is skipped
Long leg03:00 Tokyo on a gotobi dayMarket buyClosed at the 09:55 fix
Short leg09:55 Tokyo, never before the fixMarket sellClosed at 12:00 Tokyo
Late guardA leg not opened on timeMore than InpLateMinutes after its open timeSkipped for that day
LONG

03:00 to 09:55 Tokyo, into the fix.

SHORT

09:55 to 12:00 Tokyo, after the fix.

FLAT

Not a gotobi day, a Monday, or outside the legs.

Settings

InputTypeDefaultWhat it does
InpMagicInteger505001Identifies this EA’s trades.
InpExposureFloat1.0Position value as a multiple of equity.
InpServerNyPlusInteger7Broker server time is New York time plus this many hours.
InpLateMinutesInteger5No entry later than this many minutes after a leg opens.
InpLongHour / InpLongMinuteInteger3 / 0Long opens, Tokyo time.
InpFixHour / InpFixMinuteInteger9 / 55Long closes at the Tokyo fix.
InpShortHour / InpShortMinuteInteger9 / 55Short opens, Tokyo time. Never before the fix.
InpFlatHour / InpFlatMinuteInteger12 / 0Short closes, Tokyo time.
InpHolidaysString(empty)Extra Tokyo closures, yyyy.mm.dd, comma separated, on top of the computed exchange calendar.

Frequently asked questions

No. It is a research result: the rule, our test of it and the EA that trades it, published as they stand. The EA runs on our demo account, and only demo months that match the lab’s test would make it a product claim.

All EAs →

A flow you can check.

AIMS Gotobi EA is published as research: the rule, the lab’s test and the tester runs, for you to reproduce and forward-test on demo.