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
Attach to USDJPY
Attach the EA to a USDJPY M5 chart on MetaTrader 5. On another symbol it prints a warning and still loads.
Set the Server Clock
Set InpServerNyPlus to your broker’s server offset from New York time. Pepperstone runs New York plus 7 hours.
Choose the Exposure
InpExposure sets the position’s value as a multiple of equity. The default is 1.0, one times equity.
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.
| Setup | Context | What the EA sees | Goal |
|---|---|---|---|
| Gotobi day | The 5th, 10th, 15th, 20th, 25th or last day of the month | A weekend or Tokyo exchange closure moves it to the business day before | Traded Tuesday to Friday; a Monday gotobi is skipped |
| Long leg | 03:00 Tokyo on a gotobi day | Market buy | Closed at the 09:55 fix |
| Short leg | 09:55 Tokyo, never before the fix | Market sell | Closed at 12:00 Tokyo |
| Late guard | A leg not opened on time | More than InpLateMinutes after its open time | Skipped for that day |
03:00 to 09:55 Tokyo, into the fix.
09:55 to 12:00 Tokyo, after the fix.
Not a gotobi day, a Monday, or outside the legs.
Settings
| Input | Type | Default | What it does |
|---|---|---|---|
| InpMagic | Integer | 505001 | Identifies this EA’s trades. |
| InpExposure | Float | 1.0 | Position value as a multiple of equity. |
| InpServerNyPlus | Integer | 7 | Broker server time is New York time plus this many hours. |
| InpLateMinutes | Integer | 5 | No entry later than this many minutes after a leg opens. |
| InpLongHour / InpLongMinute | Integer | 3 / 0 | Long opens, Tokyo time. |
| InpFixHour / InpFixMinute | Integer | 9 / 55 | Long closes at the Tokyo fix. |
| InpShortHour / InpShortMinute | Integer | 9 / 55 | Short opens, Tokyo time. Never before the fix. |
| InpFlatHour / InpFlatMinute | Integer | 12 / 0 | Short closes, Tokyo time. |
| InpHolidays | String | (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.



