In Japan many companies settle payments on the so-called Gotobi days: the 5th, 10th, 15th, 20th and 25th of the month and the last day of the month. When one of these dates falls on a weekend or on a bank holiday, the payment moves back to the previous business day. Traders who look at JPY pairs around the Tokyo fixing often want a calendar for these dates, and this include file provides it.
The file has no inputs and no dependencies. It does not use trading functions, DLLs or web requests, and it can be used in indicators, scripts and Expert Advisors. The purpose of the file is date calculation only; any use in trading is the decision and the risk of the user.
Functions
The holidays[] array is a list of dates (time of day is ignored) that the program must skip, for example the Japanese bank holidays. The file does not contain any holiday table, so pass an empty array if you only want to skip weekends.
Example
#include "GotobiDays.mqh"
void OnStart()
{
datetime holidays[]; // empty: weekends only
datetime next = NextGotobiDay(TimeCurrent(), holidays);
Print("Next Gotobi day: ", TimeToString(next, TIME_DATE));
} The figure shows November 2026 as calculated by IsGotobiDay() : the 5th, 10th, 20th, 25th and 30th (last day) are Gotobi days, and the 15th, which is a Sunday, moves back to Friday the 13th.
The attached script GotobiDaysDemo.mq5 prints the Gotobi days of the current month and the next Gotobi day, runs a small self test with fixed dates and accepts an optional list of holidays in the format YYYY.MM.DD separated by semicolons. Dates are handled as calendar dates of the time you pass in (for example server time), with no time zone conversion.
GSLP Active Research EA for Gold
Free MT5 research EA with three closed-bar entry models, ATR stops, fixed-R targets and a tester cost ledger. Version 2.31 uses the chart symbol and timeframe. Historical research: XAUUSD M5. Educational source; published tests were loss-making.
Round Number Reaction Map: Touch, Reject or Break at 00 and 50 Levels
Tracks every touch of a round "00" or "50" level and keeps a running scorecard of how often price rejects versus breaks through — then maps that history onto the levels nearest to current price.
Account Recorder - balance, equity and day drawdown to CSV every minute (service)
A service that writes your balance, equity, floating result, margin and the drawdown from today's highest recorded equity to a CSV file every minute. Runs without a chart and never trades.
Export Closed Trades to CSV with a summary per magic number
Saves the closed trades of your MT5 account history to a CSV file, one row per trade, plus a second file with totals for each magic number.