Indicators: Forex_Market_Hours_GMT_v4.0 - page 2

 

hi I have MT5 3042


i get all those errors when compiling

'HashMap.mqh'    HashMap.mqh    1    1
'IMap.mqh'    IMap.mqh    1    1
'ICollection.mqh'    ICollection.mqh    1    1
'IEqualityComparer.mqh'    IEqualityComparer.mqh    1    1
'DefaultEqualityComparer.mqh'    DefaultEqualityComparer.mqh    1    1
'EqualFunction.mqh'    EqualFunction.mqh    1    1
'IEqualityComparable.mqh'    IEqualityComparable.mqh    1    1
'HashFunction.mqh'    HashFunction.mqh    1    1
'IComparable.mqh'    IComparable.mqh    1    1
'CompareFunction.mqh'    CompareFunction.mqh    1    1
'HashSet.mqh'    HashSet.mqh    1    1
'ISet.mqh'    ISet.mqh    1    1
'PrimeGenerator.mqh'    PrimeGenerator.mqh    1    1
'event_id' is not a member of 'MqlCalendarValue' type    Forex_Market_Hours_GMT_v4.0.mq5    519    38
'[' - parameter conversion not allowed    Forex_Market_Hours_GMT_v4.0.mq5    519    34
'time' is not a member of 'MqlCalendarValue' type    Forex_Market_Hours_GMT_v4.0.mq5    524    39
'Add' - no one of the overloads can be applied to the function call    Forex_Market_Hours_GMT_v4.0.mq5    524    25
could be one of 4 function(s)    Forex_Market_Hours_GMT_v4.0.mq5    524    25
   bool CHashMap<datetime,ENUM_CALENDAR_EVENT_IMPORTANCE>::Add(CKeyValuePair<datetime,ENUM_CALENDAR_EVENT_IMPORTANCE>*)    HashMap.mqh    93    22
   bool CHashMap<datetime,ENUM_CALENDAR_EVENT_IMPORTANCE>::Add(datetime,ENUM_CALENDAR_EVENT_IMPORTANCE)    HashMap.mqh    94    22
   bool IMap<datetime,ENUM_CALENDAR_EVENT_IMPORTANCE>::Add(datetime,ENUM_CALENDAR_EVENT_IMPORTANCE)    IMap.mqh    17    14
   bool ICollection<CKeyValuePair<datetime,ENUM_CALENDAR_EVENT_IMPORTANCE>*>::Add(CKeyValuePair<datetime,ENUM_CALENDAR_EVENT_IMPORTANCE>*)    ICollection.mqh    14    14
'time' is not a member of 'MqlCalendarValue' type    Forex_Market_Hours_GMT_v4.0.mq5    527    46
'TryGetValue' - no one of the overloads can be applied to the function call    Forex_Market_Hours_GMT_v4.0.mq5    527    24
could be one of 2 function(s)    Forex_Market_Hours_GMT_v4.0.mq5    527    24
   bool CHashMap<datetime,ENUM_CALENDAR_EVENT_IMPORTANCE>::TryGetValue(datetime,ENUM_CALENDAR_EVENT_IMPORTANCE&)    HashMap.mqh    110    22
   bool IMap<datetime,ENUM_CALENDAR_EVENT_IMPORTANCE>::TryGetValue(datetime,ENUM_CALENDAR_EVENT_IMPORTANCE&)    IMap.mqh    22    14
'time' is not a member of 'MqlCalendarValue' type    Forex_Market_Hours_GMT_v4.0.mq5    530    46
'TrySetValue' - no one of the overloads can be applied to the function call    Forex_Market_Hours_GMT_v4.0.mq5    530    24
could be one of 2 function(s)    Forex_Market_Hours_GMT_v4.0.mq5    530    24
   bool CHashMap<datetime,ENUM_CALENDAR_EVENT_IMPORTANCE>::TrySetValue(datetime,ENUM_CALENDAR_EVENT_IMPORTANCE)    HashMap.mqh    111    22
   bool IMap<datetime,ENUM_CALENDAR_EVENT_IMPORTANCE>::TrySetValue(datetime,ENUM_CALENDAR_EVENT_IMPORTANCE)    IMap.mqh    23    14
'event_id' is not a member of 'MqlCalendarValue' type    Forex_Market_Hours_GMT_v4.0.mq5    533    75
'(string)' - invalid cast operation    Forex_Market_Hours_GMT_v4.0.mq5    533    57
'time' is not a member of 'MqlCalendarValue' type    Forex_Market_Hours_GMT_v4.0.mq5    536    46
'[' - parameter conversion not allowed    Forex_Market_Hours_GMT_v4.0.mq5    536    42
'time' is not a member of 'MqlCalendarValue' type    Forex_Market_Hours_GMT_v4.0.mq5    554    45
'[' - parameter conversion not allowed    Forex_Market_Hours_GMT_v4.0.mq5    554    41
'event_id' is not a member of 'MqlCalendarValue' type    Forex_Market_Hours_GMT_v4.0.mq5    563    32
'[' - objects are passed by reference only    Forex_Market_Hours_GMT_v4.0.mq5    563    28
16 errors, 0 warnings        17    1

 
How do you set the DST setting? do we need to set it or is there a way to config it once and let it go?
 
Alireza Khodakarami #:
How do you set the DST setting? do we need to set it or is there a way to config it once and let it go?

Yes you can set DST in the settings window shown upon adding the indicator to a price chart.

You choose the DST according to the location of your trading (broker) server. 

 
Hello, are you sure about TOKYO time? According to "https://www.markethours.net/forex-market-hours" it should start 1 hour earlier (GMT+1+DST); i.e. Start 01:00 END 10:00.
Forex Market Hours (2023) Best Times to Trade Forex
  • www.markethours.net
Uncover The Best & Worst Trading Hours. With Timezone Converter & Updated Bank holidays.