Guarda come scaricare robot di trading gratuitamente
Ci trovi su Twitter!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Librerie

GotobiDays - include file to find Gotobi days (Japanese payment dates) - libreria per MetaTrader 5

Cesar De Los Reyes Sanchez
Cesar De Los Reyes Sanchez
🚀 NEW: CUSTOM EAs, INDICATORS AND TOOLS BUILT TO YOUR RULES.
Visualizzazioni:
88
Pubblicato:
Aggiornato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

Gotobi days in November 2026In 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

  • bool IsGotobiDay(datetime t, const datetime &holidays[]) - true if the date of t is a Gotobi day.
  • datetime NextGotobiDay(datetime from, const datetime &holidays[]) - first Gotobi day on or after the date of from (0 if none is found in the next 70 days).
  • int GotobiDaysOfMonth(datetime t, const datetime &holidays[], datetime &out[]) - fills out[] with the Gotobi days of the month of t and returns how many there are.
  • GotobiAdjust , GotobiIsBusinessDay , GotobiIsHoliday , GotobiLastDayOfMonth and GotobiDateOnly - helper 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 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 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) 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.

MACD Signals MACD Signals

Indicator edition for new platform.