mq4 how to know the next day comes

 

I want to know when the time changed to next day.


I think I can use Hour()=0, but

If (Hour()==0)Alert("Next day comes!");

But I guess when doing backtest, it is skipped this code when I don't use every-tick mode.


Any good idea?

 
Cromo: I think I can use Hour()=0
  1. If your broker's timezone isn't NY+7, then the first bar after the weekend will not be hour zero.

  2. Please help with one trade per day code - Day Trading - Expert Advisors and Automated Trading - MQL5 programming forum #3.2 2020.11.11

 
William Roeder:
  1. If your broker's timezone isn't NY+7, then the first bar after the weekend will not be hour zero.

  2. Please help with one trade per day code - Day Trading - Expert Advisors and Automated Trading - MQL5 programming forum #3.2 2020.11.11

Hi, Roeder

I have never known this!



If your broker's timezone isn't NY+7, then the first bar after the weekend will not be hour zero.

Time zone
Time zone
  • 2020.11.13
  • www.mql5.com
What time zome does MQL5 show? as in im looking through signal trading history, what time zone is this showing please. im in UK...
Reason: