Japan Bank Holiday and Gotobi Library

Japan Bank Holiday and Gotobi Library answers the calendar questions of the yen market inside your own Expert Advisor, indicator or script: is today a Japanese bank holiday, is it a gotobi day, when is the next Tokyo fixing, and what time is it in Japan on your broker's server.

All rules are calculated, so there is no holiday table to update. For 1980-2027 the results match the Cabinet Office list of Japanese national holidays day by day. No DLL, no web requests, no files, no trading functions.

What it answers

  • Japanese national holidays, including substitute holidays and citizens' holidays, with the English name of each holiday.
  • Japanese bank holidays: Saturdays, Sundays, national holidays and December 31 - January 3. All other days are business days.
  • Gotobi days: the 5th, 10th, 15th, 20th, 25th and the last day of the month. When that day is a bank holiday, the gotobi moves to the previous business day.
  • The Tokyo fixing time: 09:55 Japan time.
  • Broker server time to Japan time and back. Japan has no summer time (JST = UTC+9).

Functions

  • JpIsBankHoliday(date) - true on Saturdays, Sundays, national holidays and December 31 - January 3.
  • JpIsBusinessDay(date) - true on Tokyo bank business days.
  • JpIsNationalHoliday(date) - true on national holidays, including substitute and citizens' holidays.
  • JpHolidayName(date) - the English name, for example "Marine Day", "Substitute Holiday" or "Bank Holiday"; an empty string on other days.
  • JpIsGotobi(date) - true on gotobi days.
  • JpGotobiDaysOfMonth(year, month, days[]) - all gotobi days of a month; returns the count.
  • JpNextGotobi(date) / JpPrevGotobi(date) - the first gotobi on or after the date / the last gotobi on or before the date.
  • JpTokyoFixing(date) - 09:55 Japan time of that day.
  • JpNowJst() - the current Japan time.
  • JpServerToJst(time) / JpJstToServer(time) - converts between server time and Japan time.
  • JpServerGmtOffsetSeconds() - the server's GMT offset in seconds (automatic: TimeTradeServer() - TimeGMT(), rounded to 15 minutes).
  • JpSetServerGmtOffset(seconds) - a fixed offset, for example 7200 for GMT+2.
  • JpSetServerTimeZone(seconds, rule) - the offset outside summer time and a summer time rule: 0 none, 1 US, 2 EU.
  • JpSetServerGmtOffsetAuto() - back to the automatic offset (default).
  • JpLibraryVersion() - the version, "1.00".

Date arguments are Japan time; any time of the day can be passed. Holiday and gotobi dates are returned as 00:00 Japan time.

How to use it

The Market installs the library as MQL5\Libraries\Market\Japan Bank Holiday and Gotobi Library.ex5. Paste this import block at the top of your program (or save it as MQL5\Include\JpMarketCalendar.mqh and include that file):

#import "Market\\Japan Bank Holiday and Gotobi Library.ex5"
string   JpLibraryVersion();
bool     JpIsNationalHoliday(datetime date_jst);
bool     JpIsBankHoliday(datetime date_jst);
bool     JpIsBusinessDay(datetime date_jst);
string   JpHolidayName(datetime date_jst);
bool     JpIsGotobi(datetime date_jst);
int      JpGotobiDaysOfMonth(int year, int month, datetime &out[]);
datetime JpNextGotobi(datetime from_jst);
datetime JpPrevGotobi(datetime from_jst);
datetime JpTokyoFixing(datetime date_jst);
int      JpServerGmtOffsetSeconds();
bool     JpSetServerGmtOffset(int seconds);
bool     JpSetServerTimeZone(int standard_offset_seconds, int dst_rule);
void     JpSetServerGmtOffsetAuto();
datetime JpServerToJst(datetime server_time);
datetime JpJstToServer(datetime jst);
datetime JpNowJst();
#import

Example for an Expert Advisor:

int OnInit()
  {
   // In the Strategy Tester TimeGMT() returns server time: set the offset yourself
   if(MQLInfoInteger(MQL_TESTER))
      JpSetServerTimeZone(2 * 3600, 1);        // GMT+2, +1 hour in US summer time
   return(INIT_SUCCEEDED);
  }

void OnTick()
  {
   datetime jst = JpNowJst();                  // Japan time now
   if(JpIsGotobi(jst))
      Comment("Gotobi - Tokyo fixing at ",
              TimeToString(JpJstToServer(JpTokyoFixing(jst))), " server time");
   else if(JpIsBankHoliday(jst))
      Comment("Japanese bank holiday ", JpHolidayName(jst));
   else
      Comment("Next gotobi: ", TimeToString(JpNextGotobi(jst), TIME_DATE));
  }

Rules used

  • Act on National Holidays as amended: fixed dates, Monday holidays (Coming of Age Day and Health and Sports Day from 2000, Marine Day and Respect for the Aged Day from 2003), Mountain Day from 2016, the Emperor's Birthday by era, and the moved days of 2020 and 2021.
  • Substitute holiday: when a national holiday falls on a Sunday, the next day that is not a national holiday is a holiday (from 2007; before that, only the next day).
  • Citizens' holiday: a day between two national holidays (from 1986), for example September 22, 2026.
  • One-off holidays: 1989-02-24, 1990-11-12, 1993-06-09, 2019-05-01 and 2019-10-22.
  • Equinox days: the standard approximation formula, valid for 1980-2099. It gives the official date in every year up to 2027 and agrees with an astronomical calculation in every year to 2099. The government announces each equinox day in February of the previous year.
  • Bank holidays: Saturdays, Sundays, national holidays and December 31 - January 3 (Banking Act; today's rule is applied to every year).
  • Gotobi: on a bank holiday the day moves to the previous business day of the same month. If the 5th would move into the previous month (for example in May 2027), that business day is already the previous month's month-end gotobi, so it is listed only there.

Things to know

  • Valid years: 1980-2099. Outside this range the functions return false, 0, an empty string or -1.
  • Strategy Tester: there TimeGMT() returns the server time, so the automatic offset is 0. Call JpSetServerGmtOffset() or JpSetServerTimeZone() in OnInit(), as in the example. When the automatic offset is used in the tester, the library writes one reminder to the tester journal.
  • The automatic offset needs a terminal that is synchronized with the trade server. Right after the terminal starts it can read 0 for a few seconds; it is read again on every call.
  • The automatic offset is the current offset. To convert past bars across a summer time change, set the server's rule with JpSetServerTimeZone().
  • Settings apply to the program that calls them: call them in OnInit() of each Expert Advisor or indicator.
  • JpGotobiDaysOfMonth() needs a dynamic array: datetime days[];
  • Results are cached per year; a repeated call within the same year takes about 0.01 microseconds.

Support

If anything is unclear, please send me a private message on MQL5.

Recommended products
Swiss VWAPsimple
Terence Gronowski
4.8 (5)
Swiss VWAPsimple Motivation Did not find free VWAP that works, the one that I found craseh. So I created a VWAP which calculates values only for the actual day. So computer resouces are not over stressed. What is VWAP, how is it used?  VWAP stands for Volume Weighed Average Price, it calculates the running sum of tick volume and the runnung sum of price times tickvolume. The division of these sums result in a weighed price (Sum P*V/Sum V). The calculation starts normally at midnight. The values
FREE
Simple Market Sessions Indicator The Simple Market Sessions Indicator helps traders visualise the current status of major forex market sessions: Asian, London, New York, and Sydney . It shows whether each market is Open , Active (High Volume) , or Closed directly on the chart. With customizable session times and a volume threshold, this tool helps traders monitor market session activity and volume strength, making it easier to identify periods of increased market activity and potential trading
FREE
Session Profiles
Basharat Umar Khan
Short Description Draws rolling Time-Price-Opportunity (TPO) and footprint volume profiles for the Asia, London, and New York sessions with POC/VAH/VAL levels, delta volume bias, order flow overlays, liquidity heatmaps, developing rolling lines, Naked POC (NPOC) tracking, Initial Balance breakouts, multi-session confluence zones, and automatic broker GMT-offset detection. Full Description Plots separate market-profile and volume-profile style histograms for the three major trading sessions (Asi
FREE
Smart FVG Stats
- Md Rashidul Hasan
5 (1)
The  Smart FVG Statistics Indicator  is a powerful MetaTrader 5 tool designed to automatically identify, track, and analyze Fair Value Gaps (FVGs) on your charts. Love it? Hate it? Let me know in a review! Feature requests and ideas for new tools are highly appreciated. :) Try "The AUDCAD Trader": https://www.mql5.com/en/market/product/151841 Key Features Advanced  Fair Value Gap  Detection Automatic Identification : Automatically scans for both bullish and bearish FVGs across specified histo
FREE
Basic Vwap
james mugendi
4 (1)
Simple Vwap with the daily, weekly and monthly VWAP is the abbreviation for   volume-weighted average price , which is a technical analysis tool that shows the ratio of an asset's price to its total trade volume. It provides traders and investors with a measure of the average price at which a stock is traded over a given period of time. How it's used Identify entry and exit points:   Traders can use VWAP to determine when to buy or sell an asset.   Understand price trends :  Traders can use V
FREE
Deviation Trend Profile Overview Deviation Trend Profile is a MetaTrader 5 chart indicator that combines three visual layers in a single chart window: a moving average with momentum-based coloring, deviation bands calculated from volatility, and a horizontal distribution profile drawn to the right of the current price. The indicator is an analytical tool. It does not open, modify or close trades, and it is not a complete trading system. It is designed to help the user observe trend direction, mo
FREE
INTRODUCING MML Data Bridge The demand for bridging external data and machine learning with trading platforms is higher than ever. MetaTrader 5 is a powerful environment for trading and back testing, but without a data bridge, MT5 is largely isolated from using any external data. MML Bridge is a developer tool that allows users to bridge external data into MT5 for back testing, live trading, and optimization. It's built for ease of use, providing users with a simple function API that drip-feeds
FREE
Turn your manual trades into fully automated profit machines! This powerful MT5 EA takes over the moment you open a position — no delays, no stress. It instantly places Stop Loss and Take Profit, activates customizable trailing, and locks in profits while protecting your capital Perfect for scalpers: Every trade is immediately secured, giving you the freedom to focus on sniping the best entries while the EA handles all the management work in the background. Auto SL/TP Full trailin
FREE
Easy Correlations Indicator The Easy Correlations Indicator is designed to help traders analyze the relationship between two correlated instruments. By monitoring the distance between their Relative Strength Index (RSI) values, the indicator highlights situations where one instrument has moved significantly further than the other. This creates potential trading opportunities: Sell the stronger instrument (overstretched RSI) Buy the weaker instrument (lagging RSI) Because the positions are opened
FREE
Quick Scale Trading Panel FREE Quick Scale Trading Panel FREE is a manual trading utility for MetaTrader 5 designed to simplify order execution and position sizing directly from the chart. The panel allows traders to open and manage trades using predefined lot multipliers, reducing the need for manual calculations during fast market conditions. Users can define a base lot size and execute trades using multiplier buttons (1x, 2x, 4x, 8x). This helps maintain consistent position sizing and improv
FREE
VWAP Indicator
LUC JACOBUS A VERHEECKE
4.11 (27)
Volume Weighted Average Price (VWAP) The volume weighted average price (VWAP) is a  trading   benchmark  used by traders that gives the average price a security has traded at throughout the day, based on both volume and price. It is important because it provides traders with insight into both the trend and value of a security. This indicator VWAP V2 is free and is the manual version of the extended Easy VWAP indicator (30 Euro), where the date and time properties are automatically entered. With
FREE
English VWAP Daily (Clean) is a simple and lightweight indicator that plots the classic Daily VWAP (Volume Weighted Average Price) directly on your MT5 chart. Features: Classic Daily VWAP calculation Supports real volume (if available) or tick volume Timezone offset option to match your broker’s server time Weekend merge option (merge Saturday/Sunday data into Friday) Clean version → no arrows, no alerts, only VWAP line VWAP is widely used by institutional traders to identify fair value, su
FREE
FibRetrace Zones Fibonacci Retracement Zones of the Latest Swing Leg FibRetrace Zones is the free visual companion to the FibRetrace Expert Advisor. It draws the Fibonacci retracement levels and highlights the pullback zone on the latest swing leg, so you can see where retracement entries line up before you trade. The zone is color-coded by direction: green for bullish setups, red for bearish setups. Works on any symbol and any timeframe. KEY FEATURES Automatic swing detection with adjustable lo
FREE
Market Profile 3 ForexArby com
Hussien Abdeltwab Hussien Ryad
4 (15)
Market Profile 3 MetaTrader 5 indicator  version 4.70— is a classic Market Profile implementation that can show the price density over time, outlining the most important price levels, value area, and control value of a given trading session. This indicator can be attached to timeframes between M1 and D1 and will show the Market Profile for daily, weekly, monthly, or even intraday sessions. Lower timeframes offer higher precision. Higher timeframes are recommended for better visibility. It is als
FREE
The Volume Weighted ATR indicator is a helpful tool for measuring market activity. It is based on the idea of the Volume-Weighted ATR. Combining these two elements helps identify potential turning points or breakout opportunities. The indicator for the classification of the activity of the market uses the moving average and its multiples. Accordingly, where the VWATR bar is located (relative to the moving average), it is labelled as ultra-low, low, average, high, very high or ultra high. The Vo
FREE
GOM Trade Manager
Wannapach Chinnaprapa
GOM Trade Manager helps you execute trades the way you want it. Works on all instruments Forex, Commodities, & Crypto. It helps you with lot calculations, spread addition and balance calculations so you can just focus on actual trading. For full automatic planned management, stackable triggers and spread widening protection >> check out GOM Trade Manager Pro . ------------------------------------------NOTABLE FEATURES------------------------------------------ You set everything based on bid
FREE
The Candle Countdown Timer for MetaTrader 4 (also available for MT5) is a vital indicator designed to help you manage your trading time effectively. It keeps you updated about market open and close times by displaying the remaining time before the current candle closes and a new one forms. This powerful tool enables you to make well-informed trading decisions. Key Features: Asia Range: Comes with an option to extend the range. Broker Time, New York, London Time: Displays the current broker time
FREE
Sweep Hunter Basic
Timo Mario Hoffmann
Sweep Hunter Basic is the simplified entry version of Sweep Hunter Pro for MetaTrader 5. It detects basic Buy-Side and Sell-Side Liquidity zones directly on the chart and marks simple sweep events. The Basic version is limited to 3 new zones per broker day and uses a reduced visual style. For the full version with dashboard, alerts, extended history, tooltips, advanced settings and unlimited zone workflow, visit Sweep Hunter Pro: https://www.mql5.com/de/market/product/177937?source=Site
FREE
MarketPro toolkit
Johannes Hermanus Cilliers
Start earning profits by copying All trades are sent by our successful Forex trader & are extremely profitable. You can earn profits by copying trades daily Trial Period included You'll also get access to extremely powerful trading education which is designed in a simple way for you to become a profitable trader, even if you have no trading experience. https://ec137gsj1wp5tp7dbjkdkxfr4x.hop.clickbank.net/?cbpage=vip
FREE
FVG Zone
Robby Suhendrawan
Fair Value Gap (FVG) Free Edition - Automated Smart Money Footprints In the ICT (Inner Circle Trader) and Smart Money Concepts (SMC) methodology, a Fair Value Gap (FVG)—also known as an Imbalance—occurs when the price moves with extreme momentum, leaving behind a void of liquidity. These unfilled gaps act as magnets for future price action, making them the most high-probability retracement and entry zones for professional traders. Pro Version Link: https://www.mql5.com/en/market/product/147695 S
FREE
A professional tool for trading - the divergence indicator between the RSI and the price, which allows you to receive a signal about a trend reversal in a timely manner or catch price pullback movements (depending on the settings). The indicator settings allow you to adjust the strength of the divergence due to the angle of the RSI peaks and the percentage change in price, which makes it possible to fine-tune the signal strength. The indicator code is optimized and is tested very quickly as par
FREE
Fair Value Gap Zone
Mattia Impicciatore
General Description The Fair Gap Value Indicator identifies and highlights “fair value gaps” on the MetaTrader 5 chart. A fair gap occurs when a price void forms between the low of one bar and the high of another, separated by an intermediate bar. The indicator draws colored rectangles (bullish and bearish) to emphasize these areas, providing clear visual support for price-action strategies. Key Features Bullish Gap Detection : highlights gaps between a bar’s low and the high of two bars prior w
FREE
Free BlueDigitsFx Utility + Ecosystem Access This free tool is part of the BlueDigitsFx trading infrastructure ecosystem. Get updates, workflow resources, product releases, and official ecosystem access through the BlueDigitsFx bot. Telegram Ecosystem Website MT4 Version BlueDigitsFx Open Trades MT5 — Real-Time Pip Monitor for Active Trade Management BlueDigitsFx Open Trades is a free MT5 utility that displays the total pip result from all open trades directly on your chart in real time. The
FREE
Time Candle with Sound Alert This indicator will be display the time left candle Features : 1. Multi Time Frames, Multi Pairs 2. Time Left 2. Position dynamic with Bid Price or Edge of Chart Screen 3. Font Size and Color 4. Display Current Spread, Maximum Spread and Minimum Spread Note: Maximum and Minimum Spread will be reset when you change TF Tested On MT5 Version 5 Build 5200 If you want the source code, just PM me
FREE
Violet Indicator  by Quant Atlas Creator:  https://www.quant-atlas.com/ Violet Indicator is a clean reversal focused trading tool designed to identify moments where price may be shifting away from an extended directional condition. The indicator uses a price derived trend framework to detect moments where market structure may be changing. When conditions align, it plots violet triangle signals directly on the chart. Both bullish and bearish signals use the same violet visual identity, giving the
FREE
Orange Indicator by Quant Atlas Creator:  https://www.quant-atlas.com/ Orange Indicator is a clean reversal focused indicator for MetaTrader 5, designed to highlight potential turning points directly on the chart using simple orange buy and sell markers. The indicator focuses on moments where price may be transitioning out of short term exhaustion and into a possible reaction phase. When a bullish setup appears, an orange upward triangle is displayed below the candle. When a bearish setup appear
FREE
Smart Trendline Detector Smart Trendline Detector is an automatic multi-timeframe trendline analysis indicator for MetaTrader 5 that detects and ranks rising support and falling resistance structures using market swing points. Instead of filling the chart with every possible trendline, the indicator evaluates qualifying structures and displays only a controlled number of the strongest candidates according to configurable ranking criteria. The result is a cleaner chart with relevant trendline str
FREE
Simple Trend Direction MT5
Khalaf Hamza Mohammad Yousef
This is a FREE Trend Direction Indicator for MetaTrader 5. Features: Identifies market trend direction Uses EMA 50 and EMA 200 Non-repainting logic Clear visual display Suitable for manual trading Free version includes: - Single timeframe - Trend direction only - No alerts If you need: Alerts Multi-timeframe version EA automation Custom modifications My Name is Khalaf Hamza , You can contact me for freelance work --> khalaf.hamza.hi@gmail.com
FREE
Volatility Distance Indicator  The Volatility Distance Indicator measures in real time the distance between current price and the moving averages you choose, expressed in points . Its purpose is to provide a clear, objective, and quantitative view of the market’s expansion relative to its equilibrium zones , allowing you to instantly assess whether price is in a phase of overextension, compression, or neutrality . Key Features: Point-based measurement: displays the exact distance between current
FREE
Donchian Pro
Paulo Henrique Faquineli Garcia
5 (3)
The Donchian Channel Channels are among the most popular tools of technical analysis, as they visually convey to the analyst the limits within which most price movement tends to occur. Channel users know that valuable information can be obtained at any time, whether prices are in the central region of a band or close to one of the border lines. One of the best known techniques to explore these concepts is Bollinger Bands. However, John Bollinger was not the only one to research the application
FREE
Buyers of this product also purchase
MT5 to Delta Exchange API Bridge EA Connector allows your expert advisor with mq5 file to integrate and communicate with Delta Exchange using API Keys You can place order, check balance and other order managements using Delta Exchange API - Place Limit, SL Limit and Take Profit Limit Orders - Place Market, SL-Market, TP-Market orders - Cancel Order - Query Orders - Change Leverage, margin - Get Position info and many more, details available at demo script Script Documentation 
ModernUI Library
Levi Dane Benjamin
ModernUI Library for MetaTrader 5 ModernUI is a chart-hosted user interface library for MetaTrader 5. It helps MQL5 developers build cleaner EA panels, dashboards, settings windows, forms, tables, dialogs, drawers and compact trade-style interfaces inside the MT5 chart environment. It is built for developers who want a more professional interface layer than scattered chart objects, while still keeping full control over their own EA, indicator or utility logic. Modern UI - User Guide   | EA Examp
WalkForwardOptimizer MT5
Stanislav Korotky
3.63 (8)
WalkForwardOptimizer library allows you to perform rolling and cluster walk-forward optimization of expert advisers (EA) in MetaTrader 5. To use the library include its header file WalkForwardOptimizer.mqh into your EA source code, add call provided functions as appropriate. Once the library is embedded into EA, you may start optimization according to the procedure described in the User guide . When it's finished, intermediate results are saved into a CSV file and some special global variables.
EX5 Signal Copier
Rajesh Kumar Nait
EX5 Signal Copier Library — Professional Trade Event Engine for MT Turn any Expert Advisor into a powerful trade copier, signal processor, or automation engine — without writing complex trade tracking logic. The EX5 Signal Copier Library is a high-performance, event-driven system that captures every trading activity in MetaTrader 5 and converts it into structured signals you can use to build: Trade copiers (MT5 → MT5 / MT5 → external) Risk management engines Analytics dashboards Custom execution
Native Websocket
Racheal Samson
5 (6)
An   easy to use, fast,  asynchronous   WebSocket library  for MQL5. It supports: ws://   and   wss://  (Secure "TLS" WebSocket) text   and   binary   data It handles: fragmented message  automatically (large data transfer) ping-pong   frames  automatically (keep-alive handshake) Benefits: No DLL required. No OpenSSL installation required. Up to 128 Web Socket Connections from a single program. Various Log Levels for error tracing Can be synchronized to MQL5 Virtual Hosting . Completely native t
This library will allow you to send your trades using your MT5 EA bot and its very easy to integrate on any EA which you can do yourself with the script code which is mentioned in documentation. This product allows trading operations via API For MEXC chart : Renting   Crypto Charting  for OHLC data or   Crypto Ticks with Order Book Depth  is optional - Supports MEXC API calls - Place Limit, SL Limit and Take Profit Limit Orders - Place Market, SL-Market, TP-Market orders - Modify Limit order - C
The library is dedicated to help manage your trades, calculate lot, trailing, partial close and other functions. Lot Calculation Mode 0: Fixed Lot. Mode 1: Martingale Lot (1,3,5,8,13) you can use it in different way calculate when loss=1 ,when profit=0. Mode 2: Multiplier Lot (1,2,4,8,16) you can use it in different way calculate when loss=1 ,when profit=0. Mode 3: Plus Lot (1,2,3,4,5) you can use it in different way calculate when loss=1 ,when profit=0. Mode 4: SL/Risk Lot calculate based on s
Friends, join us! Ask questions and connect with like-minded traders: MetaCOT Public Group MetaCOT Information Channel: news, CFTC reports, and signals: MetaCOT Channel Here’s to successful trading and new profitable signals for us all! Attention! Recently, certain countries have been blocking access to the cftc.gov website. As a result, users in these countries are giving the product low ratings. MetaCOT has always adhered to the highest quality standards and is in no way associated with th
This is a simplified and effective version of the library for walk forward analysis of trading experts. It collects data about the expert's trade during the optimization process in the MetaTrader tester and stores them in intermediate files in the "MQL5\Files" directory. Then it uses these files to automatically build a cluster walk forward report and rolling walk forward reports that refine it (all of them in one HTML file). Using the WalkForwardBuilder MT5 auxiliary script allows building othe
OrderBook History Library
Stanislav Korotky
3 (2)
Order Book, known also as Market Book, market depth, Level 2, - is a dynamically updated table with current volumes of orders to buy and to sell specific financial instument at price levels near Bid and Ask. MetaTrader 5 provides the means for receiving market book from your broker, but in real time only, without access to its history. The library OrderBook History Library reads market book state in the past from archive files, created by OrderBook Recorder . The library can be embedded into you
BitMEX Trading API
Romeu Bertho
5 (1)
Cryptocurrency analysis has never been easier with Crypto Charts for MetaTrader 5. Now, trading on BitMEX has never been easier with BitMEX Trading API for MetaTrader 5. BitMEX Trading API library was built to be as easy to use as possible. Just include the library into your Expert Advisor or Script, call the corresponding methods and start trading! Features Trade on BitMEX and BitMEX Testnet. Build and automate your strategies. Concern more with the trading strategy logic and less with the co
Teclado trader, é uma BIBLIOTECA que você pode chamar no OnChartEvent para abrir posição de compra/venda/zerar, os botões padrões são: V = venda C = compra Z = zerar posições a mercado S = zerar posições opostas e depois a mercado X = zerar posições opostas Além da função de teclado, é possível mostrar os estados do ExpertAdvisor usando o MagicId, com informação de: lucro mensal, semanal, diario, e posição aberta, para isto use o OnTick, ou qualquer outro evento (OnTimer / OnTrade / OnBookEven
Goliath Mt5
Nicolokondwani Biscaldi
Goliath MT5 - scalper fully automated Expert Advisor for medium-volatile forex markets P roperties: The Library trades 10 currency pairs (USDCHF, EURCHF, EURGBP, AUDUSD, USDCAD, GBPUSD, EURUSD, NZDUSD, CADCHF, EURAUD, EURCAD, AUDJPY) The Library does not use martingale The Library sets a fixed stop loss and take profit for all orders The Library only trades a user input volume The Library can be installed on any currency pair and any timeframe Recommendations: Before using on a real account, t
Binance Library
Hadil Mutaqin SE
5 (1)
The library is used to develop automatic trading on Binance Spot Market from MT5 platform. Support all order types: Limit, Market, StopLimit and StopMarket Support Testnet mode Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header   file and EA sample   https://drive.google.com/uc?export=download&id=1kjUX7Hyy02EiwTLgVi8qdaCNvNzazjln Copy Binance.mqh to folder \MQL5\Include Copy  BinanceEA-Sample.mq5 to folder \MQL5\Experts 3. Allow WebRequest from MT5
Gold plucking machine   Gold plucking machine is an Expert Advisor designed specifically for trading gold. The operation is based on opening orders using the Fast and Slow lines indicator, thus the EA works according to the "Trend Follow" strategy, which means following the trend. Use grid strategy to place orders without stop loss operation, so please make sure the account has sufficient funds. magic number      -  is a special number that the EA assigns to its orders. Lot Multiplier        - 
The library is used to develop automatic trading on Binance Futures Market from MT5 platform. Support Binance Futures USD-M and COIN-M Support Testnet mode Support all order types: Limit, Market, StopLimit, StopMarket, StopLoss and TakeProfit Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header file and EA sample https://drive.google.com/uc?export=download&id=17fWrZFeMZoSvH9-2iv4WDJhcyxG2eW17 Copy BinanceFutures.mqh to folder \MQL5\Include Copy  Bina
MT4/5通用交易库(  一份代码通用4和5 ) #ifdef __MQL5__      #define KOD_TICKET ulong      #define KOD_MAGIC   long #else        #define KOD_TICKET long      #define KOD_MAGIC   int #endif class ODLIST; #import "K Trade Lib Pro 5.ex5"       //祝有个美好开始,运行首行加入    void StartGood() ;    //简单开单    long OrderOpen( int type, double volume, int magic, string symbol= "" , string comment= "" , double opprice= 0 , double sl= 0 , double tp= 0 , int expiration= 0 , bool slsetmode= false , bool tpsetmode= false );    //复杂开单
Binance Library MetaTrader 5 connects your Expert Advisors, indicators, and scripts to Binance.com and Binance.US directly from MetaTrader 5. It is a developer library for building custom Binance integrations inside MT5, not a standalone trading robot or copier. The library helps you add Binance instruments to Market Watch, read symbol specifications, load current and historical market data, check wallet balances, manage orders, and track open positions. It supports Spot, USD-M futures, and COI
1. What is this The MT5 system comes with very few optimization results. Sometimes we need to study more results. This library allows you to output more results during backtest optimization. It also supports printing more strategy results in a single backtest. 2. Product Features The results of the optimized output are quite numerous. CustomMax can be customized. The output is in the Common folder. It is automatically named according to the name of the EA, and the name of the same EA will be au
T5L Library is necessary to use the EAs from TSU Investimentos, IAtrader and others. It contains all the functions framework needed to Expert Advisors working properly.  ツ - The Expert Advisors from  TSU Investimentos does not work without this library,  the T5L library can have updates during the year - At this Library you will find several funcionalities like order sends, buy and sell, trigger entry points check, candlestick analyses, supply and demmand marking and lines, and much more. 
AO Core
Andrey Dik
3.67 (3)
AO Core is the core of the optimization algorithm, it is a library built on the author's HMA (hybrid metaheuristic algorithm) algorithm. Pay attention to the MT5 Optimization Booster product , which makes it very easy to manage the regular MT5 optimizer . An example of using AO Core is described in the article: https://www.mql5.com/ru/articles/14183 https://www.mql5.com/en/blogs/post/756510 This hybrid algorithm is based on a genetic algorithm and contains the best qualities and properties of p
EA Toolkit
Esteban Thevenon
EA Toolkit is a library that allows any developer to quickly and easily program Advisor experts. It includes many functions and enumerations such as trailing stop, lot, stop loss management, market trading authorisations, price table updates, trading conditions and many more. Installation + Documentation : You will find all the information to install this library and the documentation of its functions on this GitHub : https://github.com/Venon282/Expert-Advisor-Toolkit WARNING : The installation
GetFFEvents MT5 I tester capability
Hans Alexander Nolawon Djurberg
Want to get all events like Previous/Forecast/Actual values for each news to analyze/predict it? By this simple library you can do it easily,Just import/integrate the library into your system,then get all possible values for each news   Even In Strategy Tester   . Note: Please add the address " https://www.forexfactory.com/ " of news feed at your MT5 tab > Tools > Options > Expert Advisors > Check Allow web request for listed URL. Since the WebRequest() function can't be called from indicator ba
A Simple Moving Average (SMA) is a statistical indicator used in time series analysis. This indicator represents the arithmetic mean of a sequence of values over a specific period of time. SMA is used to smooth short-term fluctuations in data, helping to highlight the overall trend or direction of changes. This aids analysts and traders in better understanding the general dynamics of the time series and identifying potential trends or changes in direction.  More information you can find in Wiki 
This library will allow you to manage trades using any of your EA and its very easy to integrate on any EA which you can do yourself with the script code which is mentioned in description and also demo examples on video which shows the complete process. This product allows trading operations via API For chart : Renting Crypto Charting for OHLC data or Crypto Ticks with Order Book Depth is optional If your EA is HFT and operations on seconds chart, You may be interested in converting charts to se
Hello everyone! I am a professional MQL programmer , Making EAs, Indicators and Trading Tools for my clients all over the world. I build 3-7 programs every week but I seldomly sell any ready-made Robots. Because I am fastidious and good strategy is so few...  this EA is the only one so far I think its good enough to be published here.  As we all know, the Ichimoku indicator has become world popular for decades, but still, only few people knows the right way of using it, and if we check the clo
Applying these methods, I managed to arrive at a nuanced conclusion that is crucial to understanding the importance of unique strategies in contemporary trading. Although the neural network advisor showed impressive efficiency in the initial stages, it proved to be highly unstable in the long run. Various factors such as market fluctuations, trend changes, external events, etc. cause its operation to be chaotic and eventually lead to instability. With these experiences, I accepted the challenge
Introducing "TG Risk Service Manager" — your comprehensive toolkit for swift and precise risk management and lot size calculations in the dynamic world of trading. Designed to streamline development processes and enhance trading strategies, this indispensable library equips developers with essential tools for optimizing risk assessment and trade profitability. Metatrader4 Version |  All Products  |  Contact   Key Features: Efficient Lot Size Calculation : Harness the power of precise lot size c
Introducing "TG Trade Service Manager" — your all-in-one solution for seamless trade management in both MQL4 and MQL5 environments. With a focus on speed, reliability, and convenience, this powerful library simplifies the complexities of trade execution and management, empowering developers with a single interface for enhanced efficiency. Metatrader4 Version   |   All Products   |   Contact   Key Features: Unified Interface : TG Trade Service Manager" provides a unified interface for   MQL4   an
OpenAI Library MT5
VitalDefender Inc.
The following library is proposed as a means of being able to use the OpenAI API directly on the metatrader, in the simplest way possible. For more on the library's capabilities, read the following article: https://www.mql5.com/en/blogs/post/756098 The files needed to use the library can be found here: Manual IMPORTANT: To use the EA you must add the following URL to allow you to access the OpenAI API as shown in the attached images In order to use the library, you must include the following Hea
More from author
Smart Data Export Indicator writes clean market data from MetaTrader 5 to CSV or JSON Lines - with exactly the columns you choose, a data card that explains every column, and a paste-ready snapshot for ChatGPT, Claude or any other AI assistant. It replaces my free SmartDataExportEa and is rebuilt as an indicator: it runs on the same chart as your Expert Advisor, and it never trades. No DLL, no web requests. What it writes Data file (CSV with comma or semicolon, or JSON Lines): one row per closed
FREE
Gotobi Day and Tokyo Fixing Marker is a free indicator that marks the Japanese gotobi days, the Tokyo fixing time and Japanese bank holidays on your MetaTrader 5 chart, and shows the next gotobi days in a small panel. Gotobi days are the 5th, 10th, 15th, 20th and 25th of each month and the last day of the month. When one of these days falls on a weekend or a Japanese bank holiday, it moves to the previous Tokyo business day. Many Japanese companies settle payments on these days, and the Tokyo fi
FREE
Smart Data Export Indicator MT4 writes clean market data from MetaTrader 4 to CSV or JSON Lines - with exactly the columns you choose and a data card that explains every column, ready for Python, Excel or an AI assistant such as ChatGPT or Claude. It replaces my free SmartDataExportEa for MetaTrader 4 and is rebuilt as an indicator: it runs on the same chart as your Expert Advisor, and it never trades. No DLL, no web requests. A MetaTrader 5 version is available separately. What it writes Data f
FREE
Gotobi Day and Tokyo Fixing Marker MT4 is a free indicator that marks the Japanese gotobi days, the Tokyo fixing time and Japanese bank holidays on your MetaTrader 4 chart, and shows the next gotobi days in a small panel. Gotobi days are the 5th, 10th, 15th, 20th and 25th of each month and the last day of the month. When one of these days falls on a weekend or a Japanese bank holiday, it moves to the previous Tokyo business day. Many Japanese companies settle payments on these days, and the Toky
FREE
Japan Bank Holiday and Gotobi Library MT4 answers the calendar questions of the yen market inside your own Expert Advisor, indicator or script: is today a Japanese bank holiday, is it a gotobi day, when is the next Tokyo fixing, and what time is it in Japan on your broker's server. All rules are calculated, so there is no holiday table to update. For 1980-2027 the results match the Cabinet Office list of Japanese national holidays day by day. No DLL, no web requests, no files, no trading functio
FREE
Nakane USDJPY Gotobi trades one well-known pattern of the Tokyo market. On gotobi days (Japanese settlement days: the 5th, 10th, 15th, 20th, 25th and the last business day of the month), USDJPY has tended to rise into the Tokyo fixing at 9:55 JST and to give part of it back afterwards. The EA buys at 07:30 JST, closes at the fixing, then sells until 10:30 JST. It trades only on those mornings. No grid, no martingale, no averaging. One position at a time, and every trade has a stop-loss. No exter
Ikioi Bitcoin Momentum follows multi-week momentum on BTCUSD. Once a day it checks two simple facts: is the price higher than two weeks ago, and higher than eight weeks ago? When both are true, it buys and holds. When they disagree, it closes and stays out. It uses no price levels, no indicators to optimise and no predictions, only the direction of the 2-week and 8-week moves. No grid, no martingale, no averaging. One position at a time, an initial stop-loss on every trade and a trailing stop. N
Expert Advisor Live Audit answers the question every EA user asks sooner or later: is my Expert Advisor broken, just unlucky, or eaten by costs? It reads the trade history of this account, groups it by magic number and shows, for each EA, its real edge, how it compares with its backtest, and what execution really cost. It is an indicator: it never opens, modifies or closes a trade. No DLL, no web requests, no external services. What you see Overview : every EA on the account with trades, win rat
Seasonality and Session Lab shows how this symbol behaves by hour, weekday, day of month, month and special days (gotobi, month end, first Friday) - and which of those patterns survive an honest statistical test. Most seasonal "edges" are noise: compare 168 weekday-hour cells and about eight of them will look significant by pure chance. This indicator corrects for that, checks both halves of the period and subtracts the cost. What it shows with confidence is the volatility and spread profile of
News Impact Statistics measures how much the market really moves on each economic release - on this symbol, with your broker's prices - and shows the usual move of the next releases before they happen. It uses the economic calendar built into MetaTrader 5 and the price history in your terminal. No web requests, no DLL, no external calendar feed. Indicator only: it never trades. What you see Ranking : every high-importance release for the symbol's currencies over the last years, sorted by the med
Time ZeroShot EA
Mikoto Hamazono
A real AI runs inside this EA. Time ZeroShot EA trades the USDJPY gotobi Tokyo fixing on about 6 mornings a month (up to 2 trades each) and holds a BTCUSD long for days to weeks when its multi-week momentum agrees. The panel always shows the date and time of the next trade. The AI is Granite TTM-R2, a time-series model open-sourced by IBM Research (from a NeurIPS 2024 paper, pre-trained on about 700 million samples), built into the EA. At every gotobi trade it re-reads the last 512 hourly bars a
Namiyomi Zero Shot Range forecasts how far price may move in the next 1, 4 and 24 hours — the expected high-low range — with a zero-shot time-series AI that runs inside MetaTrader 5. It does not forecast the direction. What you see Now — the expected high-low range for the next 1, 4 and 24 hours (in pips on 5- and 3-digit quotes; in price for BTCUSD), and how today's 4-hour forecast compares with the median of the 4-hour forecasts made at this hour on the last 20 days: Calm, Normal or Wild. Lot
Filter:
No reviews
Reply to review