Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий
Советники: Three Point Arbitrage
fxsaber, 2018.01.20 09:58
int DayOfWeek( void ) { MqlDateTime sTime = {0}; TimeToStruct(TimeCurrent(), sTime); return(sTime.day_of_week); }
fxsaber:
This code is designed for MT4.
For MT5 you can try this code:
MqlDateTime currentTime; TimeCurrent(currentTime); int day_week=currentTime.day_of_week;
Alexey Lopatin:
This code is designed for MT4.
For MT5 you can try this code:
Can you point me to more detailed solution like the one in the library for MT4, with the whole code, includes and etc, I don`t have a lot of experience with mql5? :)
Kiril Vasilev:
Can you point me to more detailed solution like the one in the library for MT4, with the whole code, includes and etc, I don`t have a lot of experience with mql5? :)
In the attached file code for MT5.
Files:
TimeMangement.mqh
4 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
TimeManagement:
The header file contains functions and input variables for a time management.
Author: Alexey Lopatin