Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Scripts

Market Hours Label - is the symbol open now and when it closes - script pour MetaTrader 5

Eduardo Cumplido
Eduardo Cumplido
5 (9)
Je suis ingénieur chimiste et conseiller financier certifié EFA (European Financial Advisor), avec une expérience en gestion de portefeuille, marchés financiers et programmation MQL depuis 2010. Au fil des années, j'ai associé développement logiciel, analyse quantitative et évaluation de stratégies
Vues:
130
Note:
(1)
Publié:
Mise à jour:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Sometimes I need the trading time of a specific symbol in my broker. The script reads the trade sessions that the broker gives for the chart symbol and writes on the chart if it is open or closed now, and how much time is left. Every broker has different hours for gold, indices and crypto, and the daily break is not at the same time everywhere, so I prefer to see it on the chart and not open the specification window each time.

What it shows:

  • OPEN or CLOSED for the symbol of the chart
  • the time left to the close, or to the next open when it is closed
  • the sessions of today, in server time
  • the server time

Inputs:

  • corner, X and Y offset, font size and colors of the label
  • show or hide the sessions of today
  • alert some minutes before the close (0 = off), and also push notification if you want

Notes:

  • It uses the session table of the broker. Holidays are not in that table, so on a holiday the label can say OPEN when the market is closed.
  • If a session ends at 24:00 and the next day starts at 00:00, it counts as one session, so the time to the close is the real one.
  • All the times are server time.
  • Display only, it never opens or closes trades.

How to use:

  1. Copy MarketHoursLabel.mq5 to the MQL5\Scripts folder and compile it.
  2. Drag it on the chart of the symbol you want.
Market hours label

Spread By Hour - average and max spread per hour, live spread vs usual Spread By Hour - average and max spread per hour, live spread vs usual

Average and maximum spread for each server hour from bar history, live spread vs the usual spread of this hour, and the spread cost of 1 lot.

Heikin Ashi Candles Drawn as a Chart Overlay Heikin Ashi Candles Drawn as a Chart Overlay

Heikin Ashi candles drawn as an overlay directly on the price chart, with optional hiding of the original candles (restored when the indicator is removed) and an on-chart label showing the trend, its strength and the run length.

Trend Strength Meter Using ADX in a Compact Dashboard Trend Strength Meter Using ADX in a Compact Dashboard

A compact on-chart dashboard that shows the trend strength of up to four timeframes using the ADX: value, strength bar, strength class and +DI/-DI direction, plus a summary row with the average ADX and the agreement of the directions.

Building a Confluence Signal Engine in MQL5: Leading Triggers, Confirmation Filters and a Live Dashboard Building a Confluence Signal Engine in MQL5: Leading Triggers, Confirmation Filters and a Live Dashboard

Free source code included: a DST-aware Market Sessions + PVSRA vector-candle indicator, 5 preset files and a printable confluence cheat sheet.