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
Indicateurs

Session Range and Spread - indicateur pour MetaTrader 5

Vues:
753
Note:
(1)
Publié:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Session Range and Spread marks the three main trading sessions on the chart. For every day it draws a box from the session's highest high to its lowest low and writes the session range on the box. A small panel in the chart corner shows the current spread and which sessions are open right now.

The session boxes show where Asia, London and New York traded, how wide each session was, and where the current session sits compared to earlier ones. Many traders use the Asia range as a reference for London breakouts, or compare today's range with previous days to judge volatility. The indicator only draws objects. It does not trade and gives no buy or sell signals.

Session boxes on XAUUSD M15

XAUUSD M15: ranges shown in price units

How it works

  • Session times are entered in UTC. On a live chart the broker's UTC offset is detected automatically from the difference between server time and GMT. You can also set the offset by hand.
  • Sessions that cross midnight, for example 22:00-06:00, are supported.
  • The range is shown in pips for 3/5-digit forex pairs and in price units for metals, indices and other symbols. You can force price, points or pips.
  • The session that is still running is updated on every tick and marked with *.
  • London labels are placed above the box and Asia/New York labels below it, so overlapping sessions stay readable.
  • Boxes are drawn on H1 and lower timeframes. On higher timeframes only the panel is shown.
  • All objects are removed when the indicator is removed from the chart.

Session boxes on EURUSD H1

EURUSD H1: ranges shown in pips

Input parameters

Input Default Description
Show Asia / London / New York session true Draw that session
Asia start / end 00:00 / 09:00 Session time in UTC, HH:MM
London start / end 07:00 / 16:00 Session time in UTC, HH:MM
New York start / end 12:00 / 21:00 Session time in UTC, HH:MM
Asia / London / New York color light blue / green / orange Box color
Broker UTC offset in hours -99 -99 = automatic, otherwise -12..14
Range units in labels Auto Auto, Price, Points or Pips
Calendar days to draw 10 1..365
Fill boxes true Filled or outline boxes
Show session range labels true Range label on each box
Show spread / open-sessions panel true Panel on or off
Panel corner Right upper Panel position
Label and panel text color Dim gray Text color; use a light color on dark charts
Font size 9 Label and panel font size

Notes

  • The default times are winter (GMT) hours. During daylight saving time, move London and New York one hour earlier if you want the exact local opening times.
  • In the Strategy Tester the broker offset cannot be detected, so it is set to 0. Enter the offset of your broker manually there.
  • The default colors are for a white chart. On a dark chart, choose darker box colors and a light text color.
  • The spread in the panel is the symbol's current spread in points, as reported by the terminal.
Daily Loss Guard Daily Loss Guard

Closes all trades when your daily loss reaches your limit.

Supply Demand Zones Supply Demand Zones

Supply and demand zones for Gold (XAUUSD), EURUSD and any symbol: zones from swing highs and lows sized by ATR, fresh or tested, merged, broken ones removed, alerts and 5 buffers for EAs. Open source code.

Currency Exposure and Leverage Monitor Currency Exposure and Leverage Monitor

Splits all open positions into currencies and shows the net exposure per currency in account money, the effective leverage of the account and how much a 1% currency move would change your equity.

Daily P/L by Magic Number - per-EA profit table for today, week and month Daily P/L by Magic Number - per-EA profit table for today, week and month

On-chart table that shows how much each Expert Advisor (magic number) made or lost today, this week and this month, with closed and floating profit, number of closed trades today and the intraday drawdown. Manual trades (magic 0) get their own row and a TOTAL row sums the whole account. MT5 only shows one account-wide balance, so when several EAs trade together you cannot see which one is carrying the day or bleeding. Give your magic numbers readable names ("1001=Breakout;1002=Grid"), choose the corner and theme, and decide whether floating profit is included. Read-only: it never opens, modifies or closes a trade, and it works in the Strategy Tester too (it reads the tester's own deals), so you can try it before using it on a demo or live account. No DLLs, no web requests.