How i can determine one bar(candle) in what day of week open or close ?

 

hi


how i can determine one bar(candle) in what day of week open or close ?


Please Help Me

 
navid:

hi


how i can determine one bar(candle) in what day of week open or close ?


Please Help Me

You can probably use this:

int day_of_week = TimeDayOfWeek(iTime(Symbol(), PERIOD_H1, 1));


 
robofx.org:

You can probably use this:

int day_of_week = TimeDayOfWeek(iTime(Symbol(), PERIOD_H1, 1));

You have to make sure your history is ok. If local history is empty (not loaded), function returns 0.

Refer to MQL documentaion of these functions. Regards!

Reason: