"i" is a counter, a scalar variable.  It is used to index elements of the array 
variable "Color."  "i++" means "i=i+1", shorthand for how the array is 
incremented.  Review the users' guide, AFL, lexical elements.




________________________________
From: Ton Sieverding <[email protected]>
To: [email protected]
Sent: Thu, December 3, 2009 9:04:44 AM
Subject: Re: [amibroker] please read this formula and tell what it is?

  
What about :
 
color = iif(C>0,colorgreen, colorred) ;
 
Regards, Ton.

----- Original Message ----- 
>From: Joe Landry 
>To: amibro...@yahoogrou ps.com 
>Sent: Thursday, December 03, 2009 3:28 PM
>Subject: Re: [amibroker] please read this formula and tell what it is?
>
>  
>Is this a test?
>Joe 
>----- Original Message ----- 
>>From: learner 
>>To: amibro...@yahoogrou ps.com 
>>Sent: Thursday, December 03, 2009 8:12 AM
>>Subject: [amibroker] please read this formula and tell what it is?
>>
>>  
>>for( i = 0; i < BarCount; i++ ) 
>>{ 
>>  if( Close[ i ] > Open[ i ] ) // CORRECT
>>       Color[ i ] = colorGreen; 
>>  else
>>       Color[ i ] = colorRed; 
>>} 
>>
>>
>>
>>
>>
>>please read above formula and tell me what is i and i++
>>what it does exactly?
>>thankyou for support
>>

Reply via email to