View Single Post
  #6 (permalink)  
Old 07-13-2006, 07:14 PM
elihayun's Avatar
elihayun elihayun is offline
Senior Member
 
Join Date: Jan 2006
Posts: 388
elihayun is on a distinguished road
Quote:
Originally Posted by jhernandez
In this part of the code:

PHP Code:
   int dow TimeDayOfWeek(iTime(NULLPERIOD_D10));
   
int dow1 TimeDayOfWeek(iTime(NULLPERIOD_D11));

   
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.
Reply With Quote