i is element of array; i++ is counter for "for" statement.  Loop goes thru all 
values.  Better, in my opinion, is iff as defined below.

--- In [email protected], "Ton Sieverding" <ton.sieverd...@...> wrote:
>
> What about :
> 
> color = iif(C>0,colorgreen,colorred);
> 
> Regards, Ton.
> 
>   ----- Original Message ----- 
>   From: Joe Landry 
>   To: [email protected] 
>   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: [email protected] 
>     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