MethodKit Gotobi Fix
- Uzmanlar
- Sürüm: 1.0
- Etkinleştirmeler: 5
This Expert Advisor implements a well-known, public trading method and is offered for reference. It does not promise profit. Trading decisions and risk are yours. Past results do not guarantee future results. It is sold as a one-off tool, with no individual advice, signals, or set-up service.
## Short description
On gotobi business days in Tokyo, opens at a set time and closes at the 09:55 JST fix, with a stop always attached.
Time-based (Tokyo gotobi / 09:55 JST fix). Default stop / exit: ATR(H1, 14) x 1.5 (no take-profit by default; exit at 09:55 JST).
Designed for USDJPY on the M5 or M15 chart, around the Tokyo 09:55 JST bank fixing convention. It can be attached to any symbol and timeframe the broker offers. These are the conditions the method is built around, not a performance claim.
## How it works
Gotobi calendar days are the 5th, 10th, 15th, 20th, 25th and 30th, and the last calendar day of the month. If that date falls on a Saturday, Sunday, or a Japanese national holiday (including substitute holidays and Citizens' Holiday), the EA treats the previous Tokyo business day as the gotobi business day.
Japanese holidays are modelled with the usual fixed dates, Happy Monday dates, equinox approximation (National Astronomical Observatory-style formula for 1980-2099), substitute holidays (振替休日) and Citizens' Holiday (国民の休日), plus the one-off 2019 accession and 2020-2021 Olympic date moves. Cabinet announcements can differ in rare years; this is a calendar model, not official legal text. You can turn holiday handling off in the inputs.
On a gotobi business day the EA opens at a set Tokyo time (default 08:00 JST, side selectable) during a short entry window, and closes at the 09:55 JST fix (adjustable). The stop loss is ATR(H1, 14) x a multiplier (default 1.5). There is no grid, averaging down, or martingale.
In the Strategy Tester only, the EA may place one observation trade on the first Tokyo business day of the test, using the same time window, stop loss and risk rules, so that testers and automated validation can observe an order. Every later tester trade follows the gotobi calendar. Live charts never place this observation trade. The stop, lot size, position limit and daily loss stop are unchanged.
Shared risk controls: a stop loss is always attached; lot size is a fixed lot or a percentage of equity (hard cap 5%) plus a maximum-lot cap; maximum open positions (default 1); a daily loss stop; a spread filter; a magic number; broker GMT offset and DST inputs for time-of-day logic. No grid, no averaging down, no martingale.
## Input parameters
| Input | Default | Meaning |
|---|---|---|
| `InpGotobiSide` / Side | Buy | Buy or sell. The side is fixed; it does not flip with the market. |
| `InpEntryMinJST` / Entry time, minutes after 00:00 JST | 480 (08:00) | Start of the entry window in JST. |
| `InpEntryWindow` / Entry window (minutes) | 30 | How long after the entry time a new position may be opened. |
| `InpExitMinJST` / Exit time, minutes after 00:00 JST | 595 (09:55) | The Tokyo fix time, when the position is closed. |
| `InpGotobiSLATR` / SL = ATR(H1,14) x this | 1.5 | Stop distance in ATR units (with a further ATR fallback if needed). |
| `InpUseJPHolidays` / Skip Japanese public holidays | true | If true, gotobi dates that fall on a Japanese holiday move to the previous Tokyo business day. |
| `InpMagic` / Magic number | per EA (non-zero) | Identifies this EA's orders. Keep unique if several EAs share an account. |
| `InpOrderComment` / Order comment | empty = EA name | Text stored with the order. Leave empty to use the EA name. |
| `InpSignalTF` / Signal timeframe | current chart | Timeframe used for signals. Current chart = the chart you attach the EA to. |
| `InpLotMode` / Lot mode | Fixed lot | Fixed lot, or a percentage of equity at risk (uses the stop distance). Risk % is hard-capped at 5%. |
| `InpFixedLot` / Fixed lot | 0.01 | Used when lot mode is Fixed lot. Raised to the broker minimum if smaller. |
| `InpRiskPercent` / Risk per trade, % of equity | 1.0 | Used when lot mode is % of equity. Hard cap 5%. If the computed lot is below the broker minimum, the trade is skipped. |
| `InpMaxLot` / Maximum lot cap | 1.00 | Hard cap on lot size in either lot mode. |
| `InpSLMode` / Stop-loss mode | see each EA | ATR x multiplier, fixed points, or the method's own level (falls back to ATR). A stop is always set. There is no mode without a stop loss. |
| `InpATRPeriod` / ATR period | 14 | Period of the ATR used for the stop and optional trailing stop. |
| `InpSLATRMult` / SL = ATR x this | see each EA | Used in ATR mode, and as a fallback if the method's own level cannot be used. |
| `InpSLPoints` / SL distance in points | 300 | Used when stop-loss mode is fixed points. |
| `InpTPRatio` / Take-profit = SL distance x this | see each EA (0 = none) | 0 means no take-profit order; the method's exit rule still applies. |
| `InpTrailATRMult` / ATR trailing stop x | 0 (off) | Optional trailing stop. 0 = off. |
| `InpDirections` / Allowed directions | Both | Both, long only, or short only. |
| `InpMaxPositions` / Max open positions | 1 | Maximum open positions for this EA on this symbol. |
| `InpDailyLossPct` / Daily loss stop, % of day-start balance | 3.0 | When equity has fallen by this percentage of the day's starting balance, no new entries are placed until the next server day. 0 = off. |
| `InpDailyLossClose` / Close positions when the daily stop hits | true | If true, this EA's positions on this symbol are closed when the daily loss stop is reached. |
| `InpMaxSpreadPts` / Max spread in points | 0 (off) | Skip a new entry if the spread is wider than this. 0 = off. |
| `InpMaxSpreadSLPct` / Max spread as % of SL distance | 20.0 | Skip a new entry if the spread is a larger fraction of the stop distance than this. 0 = off. |
| `InpCloseOpposite` / Close opposite position on a new signal | true | If a signal in the other direction appears, close the current position first. |
| `InpServerGMT` / Broker server GMT offset (standard time, hours) | 2 | Standard-time offset of the broker server from GMT/UTC. Required for session and time-of-day logic. |
| `InpServerDST` / Broker server DST rule | US DST | None, US DST, or EU DST. Typical GMT+2/+3 servers use US DST. |
| `InpFridayClose` / Close positions on Friday | false | Optional flat-on-Friday rule. |
| `InpFridayCloseUTC` / Friday close hour (UTC) | 20 | Used only when Friday close is enabled. |
## Important
This software does not predict markets and is not investment advice.
Trading leveraged products (FX, CFDs and similar) carries a high risk of loss. You can lose more than you expect, including, in some cases, more than your deposit.
That includes backtests and any forward or demo results.
Please test in the Strategy Tester and on a demo account, and confirm the broker's GMT offset, before any live use. Support is limited to installation questions and bug fixes.
Nothing in this description is a solicitation to buy or sell any financial instrument.
## Installation
Copy the compiled `.ex5` (MT5) or `.ex4` (MT4) into the Experts folder, attach it to a chart, set the broker GMT offset, and allow algorithmic trading. See the user manual for the full input list.
Product name as submitted (draft, Latin characters only): **MethodKit Gotobi Fix**
