IF-condition not being validated
- 2019.09.23
- www.mql5.com
Hi Guys...
I'm new to MQL so please go easy :-)
Here's the thing - I writing a session-checker based on the open and close times and displaying it on the chart. Should be a walk in the park - right? For some reason it is not picking up the London session, but Frankfurt is fine.
A push into the right direction will be much appreciated. The Code below:
Thanks in advance.
Martin
What are the inputs ?
Please see below:
string descriptionLondon, descriptionFrankfurt, descriptionNewYork, descriptionChicago, descriptionTokyo, descriptionHongKong, descriptionSydney, descriptionWellington; string strOpenLondon = "08:00", strCloseLondon = "16:55", strOpenFrankfurt = "07:00", strCloseFrankfurt = "15:55", strOpenNewYork = "13:00", strCloseNewYork = "21:55", strOpenChicago = "14:00", strCloseChicago = "22:55", strOpenTokyo = "00:00", strCloseTokyo = "08:55", strOpenHongKong = "01:00", strCloseHongKong = "09:55", strOpenSydney = "22:00", strCloseSydney = "06:55", strOpenWellington = "22:00", strCloseWellington = "05:55"; void OnTick() {
Sorry for not adding it with the original post.
Please see below:
Sorry for not adding it with the original post.
dtCloseLondon = StringToTime(strOpenLondon)
We'll slap me with a wet fish!
Sometimes you just need another pair of eyes.
Thanks a mil Alain!
Hi Guys...
I'm new to MQL so please go easy :-)
Here's the thing - I writing a session-checker based on the open and close times and displaying it on the chart. Should be a walk in the park - right? For some reason it is not picking up the London session, but Frankfurt is fine.
A push into the right direction will be much appreciated. The Code below:
Thanks in advance.
Martin