Problem with
It's not constant, what makes you think it is ?
This line is useless as is :
StringFormat("FridayOrWeekend %s dow=%d",TimeToString(history_data[0].time),xbar.day_of_week);
It's not constant, what makes you think it is ?
This line is useless as is :
StringFormat("FridayOrWeekend %s dow=%d",TimeToString(history_data[0].time),xbar.day_of_week);
You agree to website policy and terms of use
Hello,
i want to check day of week using TimeToStruct within OnTick, when new bar occurs.
The problem: Day of week is constant.
TimeToStruct on latest completed bar fetched with CopyRates, returns no error an also the bar date
is changing.
This problem occurs only with GBPUSD and not with US30 for instance. Historical data are bad but when the history_data[0] is correct, which is the case
and TimeToStruct is not failing, why is the xbar.day_of_week constant ?
Thank you for help