We have Seconds,Minute,Hour,Day,Month,Year function. Will you try to use Week function if MetaTrader provide it?
- Account Connection - Accounts - MetaTrader 5 for Android
- Account Connection - Accounts - MetaTrader 5 for iPhone
- Subscribe to a trade signal straight from MetaTrader 5
Both MT4 & MT5 have some function to calculate week. What do you mean with week function?
For MT4, you can use DayOfWeek() or TimeDayOfWeek() function
For MT5, you can use MqlDateTime structure. In this data structure, there is day_of_week