Libraries: TimeManagement
Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий
Советники: Three Point Arbitrage
fxsaber, 2018.01.20 09:58
int DayOfWeek( void ) { MqlDateTime sTime = {0}; TimeToStruct(TimeCurrent(), sTime); return(sTime.day_of_week); }
This code is designed for MT4.
For MT5 you can try this code:
MqlDateTime currentTime; TimeCurrent(currentTime); int day_week=currentTime.day_of_week;
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? :)
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.
TimeManagement:
The header file contains functions and input variables for a time management.
Author: Alexey Lopatin