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

[amibroker] Re: BUG- LOSING FUNCTION and thanks Tom for SELECTIVE PLOTTING



PureBytes Links

Trading Reference Links


thanks Tomasz,
DID u read the post about LOADING AFLS ?

When u load an AFL (say G.AFL) it replaces whatever function you were 
in (say you just worked on "aa " in indicator builder) . IF you then 
press "apply " after modifying the loaded G.afl function it will over 
write "aa". IF you havent saved "aa" as an AFL you loose it.

Am I performing an incorrect procedure. 
In other words what should I do prior to loading an AFL to work on ? 
Must I create a blank Indicator every time ?

Regards
MAurice





--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> 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@xxxx>
> 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/