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

[EquisMetaStock Group] Re: How many IF() functions can I nest in a custom indicator??



PureBytes Links

Trading Reference Links



As a postscript to the previous message, which really addressed AND
operators, you can also do OR operators, by using plus (+) in stead
of multiply (*).  Say you want 1 if the close is above 10 OR the
volume is above 1000, then do something like

( ( ( CLOSE > 10 ) + ( VOLUME > 1000 ) ) > 0 ) * 1

Getting complex, but still better than having to code a whole clutter
of IF statements.

Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://tsatsaeod.ferra4models.com
http://www.ferra4models.com





--- In equismetastock@xxxxxxxxxxxxxxx, "Mike Sloane" <mfsloane@xxxx>
wrote:
> I am sure someone out there knows the answer off the top of their head.
>  
> How many IF() functions can I nest in a custom indicator??
>  
> Thanks in advance,
> Mike Sloane








------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

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

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

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