Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

iForexSessions - indicator for MetaTrader 5

Views:
4071
Rating:
(7)
Published:
2024.03.26 01:52
Updated:
2024.04.18 04:00
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Forex Sessions indicator

Highlights the Forex Market Sessions

The indicator assumes local "wall clock" trading hours of 8:00 AM - 5:00 PM in each Forex market, except in Sydney it is 7:00 AM - 4:00 PM or 9:00 AM - 6:00 PM.

Features:

Draw colored rectangles for the forex market sessions (Sydney, Tokyo, London, New York).

Accurate session times on Forex pairs and gold charts (Forex pairs trading starts at 17:00 NY. Gold starts an hour later).

The indicator respects the GMT offset + daylight savings for the broker's server, and also for the time zones.

The indicator's time calculations are performed using TimeZoneInfo library 

Additional broker's clock (in the left lower corner) with some useful information:

- server time

- broker GMT offset

- Time remaining till weekend (so you can close open trades or skip opening new ones before weekend).

- The status of time synchronization of the local computer. A hint to check https://time.is/ if pc time is not synchronized.


Moving the mouse pointer on a chart bar while the 'Ctrl' key is pressed: the bar number and time (and corresponding times in major Forex markets) will be written to the chart window for debugging.

 

Input parameters:





Bonus Feature: Moving the mouse pointer on a chart bar while the 'Ctrl' key is pressed

the bar number # and its time (and corresponding times in major Forex markets) will be written to the chart window for debugging.

Then, to delete the debug info from the chart, just click the mouse anywhere on the chart (without pressing the 'Ctrl' key).


Other market session indicators:

Market_Sessions

i-Sessions

Trading Sessions Open - Close

Forex market sessions identification


All of the above indicators (and nearly all other indicators on the codebase) use hardcoded fixed offsets for time zones and they do not consider the DST on the broker's server or time zones. Simply, this is inaccurate because the session times do change during the year, either due to 1) the broker switches its time zone to DST or 2) one or more of the major forex markets change its time zone's DST.



    NOTICE: The indicator was confirmed to work on the following list of brokers (having different trading schedules, GMT offsets and summer DST schedules):

    1. Admirals Markets
    2. FxPro
    3. RannForex
    4. EXNESS
    5. FXOpen
    6. IC Markets
    7. Octa Markets
    8. Tickmill
    9. XM Global

    The indicator should also work correctly on other brokers.


    Slope Entry Points Slope Entry Points

    Indicator based on basic slope moving average and cloud around. Indicator shows two types of signals: prepearing - dot and entry - arrow.

    Determine Broker's Daylight (DST) schedule Determine Broker's Daylight (DST) schedule

    Script to determine whether your Broker follows the US, UK or AU daylight (DST) schedule.

    Second Bars Second Bars

    The indicator draws an arbitrary second time frame on the chart.

    Harmonic Moving Average Harmonic Moving Average

    MQL5 version of harmonic moving average