Quote:
|
Originally Posted by jhernandez
In this part of the code:
PHP Code:
int dow = TimeDayOfWeek(iTime(NULL, PERIOD_D1, 0));
int dow1 = TimeDayOfWeek(iTime(NULL, PERIOD_D1, 1));
int sh = 1;
if ((HaveSunday) && (dow == 1))
sh = 2; // skip sunday
If its Monday, you skip Sundays data by going back 2 days.... doesnt' that put you on Saturday then? Or does Metatrader skip Saturday as well... Should we be going back 3 days, to Friday's data?
Thanks
Juan
|
No, its two days of trading not calendar days. Look at the chart and u won't find Saturday at all.