For Loop

 

Why is this for loop not working its worked in the past?  Please let me know.

 

Thank You

Ray

rminardi1@verizon.net 

 

LT=iLow(NULL,PERIOD_M15,0);
 
HT=iHigh(NULL,PERIOD_M15,0);


//Hi and Low for last 2 days
for (Bars1=1 ; Bars1>=707;)
{

Bars1=Bars1+1;

if (iHigh(NULL,PERIOD_M15,Bars1) > HT)
{

HT=iHigh(NULL,PERIOD_M15,Bars1);

HT1 =HT -(50*Point);

}

if (iLow(NULL,PERIOD_M15,Bars1) < LT)
{

LT=iLow(NULL,PERIOD_M15,Bars1);

LT1=LT +(50*Point);

}

}  

 
Raymond1:

Why is this for loop not working its worked in the past?  Please let me know.

 

Thank You

Ray

rminardi1@xxxxxxxx

 

You may want to remove your email address,  this is a public Forum open to all including all the SPAMMERS on the planet.
 
for (Bars1=1 ; Bars1>=707;)
   {
   Bars1=Bars1+1;
   Print(Bars1);
   }
 its worked in the past?     ????