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

Re: [amibroker] SELECTIVE PLOTTING



PureBytes Links

Trading Reference Links

Hello,

IIF is a FUNCTION and functions evaluate all arguments always.
See:
http://www.amibroker.com/guide/a_mistakes.html


To answer your question, correct usage is:

value = IIF(  C > MA( C, 20 ), C - ATR(14 ), Null );
Plot( value, "C-ATR", colorRed );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: <das300@xxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, October 25, 2004 5:51 PM
Subject: [amibroker] SELECTIVE PLOTTING


> 
> 
> LEts say I have  a curve I want to plot like C- ATR() but I only want 
> to plot it if another condtion exists like C > MA (c,20)  how do I do 
> it?
> 
> I tried an IIf loop but then im stuck with what to do if the 
> condition ISNOT met ? 
> 
> eg- 
> IIF(cond true, PLOT , do not plot) ;
> 
> IIF ( condition met , PLOT( C-ATR(9) , otherwise - what can i place 
> here as I dont want to do anything !! )
> 
> regards
> maurice
> 
> 
> 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 
>


------------------------ 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/