24h-worker :
In MQL4 I could write:
MqlDateTime ttt;
actualDay = ttt.day_of_week; // MQL5 returns 0
In MQL5 this functioned:
MqlDateTime ttt;
TimeToStruct(TimeCurrent(),ttt);
myDay = ttt.day_of_week;
You could also make a function that does it the old way.
Use the following include file:
Files:
mt4datetime.mqh
2 kb

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
In MQL4 I could write:
MqlDateTime ttt;
actualDay = ttt.day_of_week; // MQL5 returns 0
In MQL5 this functioned:
MqlDateTime ttt;
TimeToStruct(TimeCurrent(),ttt);
myDay = ttt.day_of_week;