Download MetaTrader 5

We have Seconds,Minute,Hour,Day,Month,Year function. Will you try to use Week function if MetaTrader provide it?

To add comments, please log in or register
Rizal Dwi Satria
333
Rizal Dwi Satria  
  • 60%
    (21)
  • 31%
    (11)
  • 9%
    (3)
Total voters: 31
Biantoro Kunarto
18394
Biantoro Kunarto  

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


To add comments, please log in or register