[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] buy-and-hold statistics



PureBytes Links

Trading Reference Links

Thanks a lot Herman !

Werner


--- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen" 
<psytek@xxxx> wrote:
> when dealing with arrays:
> 
> Result =
> iif( Cond1, action1,
> iif( cond2, action2,
> iif( cond3, action3,
> defaultaction)));
> 
> or if dealing with numbers:
> 
> if( Cond1 )         Result = action1;
> else if (Cond2 )  Result = action2;
> else if Cond3)    Result = action3;
> else                  Result = defaultaction;
> 
> herman
>   -----Original Message-----
>   From: Werner [mailto:WKRAG@x...]
>   Sent: Wednesday, August 04, 2004 8:41 AM
>   To: amibroker@xxxxxxxxxxxxxxx
>   Subject: [amibroker] IIF statement
> 
> 
>   Good day,
> 
>   I am fumbling around with IIF statements. I understand the basic
>   concept and know how to use it.
> 
>   BUT what do I do if I want to check for SEVERAL conditions ?
> 
>   To simpliyfy things, let's assume just 3 conditions:
> 
>   If x is true, do action A
>   If y is true, do action B
>   If z is true, do action C
> 
>   Obviously a simple IIF statement can only handel 2 conditions.
> 
>   What if there are 3 or more ?
> 
>   Thank you,
> 
>   Werner
> 
> 
> 
> 
> 
>   Check AmiBroker web page at:
>   http://www.amibroker.com/
> 
>   Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> 
> 
>         Yahoo! Groups Sponsor
>               ADVERTISEMENT
> 
> 
> 
> 
> 
> --------------------------------------------------------------------
--------
> --
>   Yahoo! Groups Links
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
> 
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> 
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/