BigAl:
has anyone found a easy way to check when the day changes. On MT4 I used the simple code attached. Is there an equally simple way to do it in MT5 please.
has anyone found a easy way to check when the day changes. On MT4 I used the simple code attached. Is there an equally simple way to do it in MT5 please.
You could do something like this . . .
MqlDateTime StrucNow; TimeToStruct(TimeCurrent(), StrucNow); if (StrucNow.day_of_year != OldDayOfYear) { OldDayOfYear = StrucNow.day_of_year; }
just the ticket. thanks

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
if (DayOfYear() != OldDayOfYear) { OldDayOfYear = DayOfYear();