James:

Pls try

If (Lastvalue(newHigh)
{
do this
}

  ----- Original Message ----- 
  From: jamesmarkharmon 
  To: [email protected] 
  Sent: Friday, October 26, 2007 1:25 AM
  Subject: [amibroker] Simple If statement question


  newHigh = IIf(H > Ref(H,-i),1,0);

  if(newHigh == 1)
  {
  //do this
  }

  I had a question on how If statements should be done like this without
  getting the array error.



   

Reply via email to