Unisciti alla nostra fan page
- Visualizzazioni:
- 7705
- Valutazioni:
- Pubblicato:
- 2024.03.26 01:52
- Aggiornato:
- 2024.04.18 04:00
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
Forex Sessions indicator
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:
![](https://c.mql5.com/18/154/Screenshot_2024-03-27_203826.png)
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:
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):
- Admirals Markets
- FxPro
- RannForex
- EXNESS
- FXOpen
- IC Markets
- Octa Markets
- Tickmill
- XM Global
The indicator should also work correctly on other brokers.
![Slope Entry Points](https://c.mql5.com/i/code/indicator.png)
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](https://c.mql5.com/i/code/script.png)
Script to determine whether your Broker follows the US, UK or AU daylight (DST) schedule.
![Second Bars](https://c.mql5.com/i/code/indicator.png)
The indicator draws an arbitrary second time frame on the chart.
![Harmonic Moving Average](https://c.mql5.com/i/code/indicator.png)
MQL5 version of harmonic moving average