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

Re: [amibroker] Re: Call Indicator



PureBytes Links

Trading Reference Links

Anthony,

No it will not work.
#include is pre-processor command. It means that files are included
BEFORE real parsing/execution stage.
What's more they are included once and then result is cached.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Anthony Faragasso" <ajf1111@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, October 28, 2002 12:37 PM
Subject: Re: [amibroker] Re: Call Indicator


> Keith,
> 
> Would the #include function work for this.
> 
> IIf(Day<(Z+2),#include "C:\Program
> Files\AmiBroker\AFL\NH_Di_STO_FAST_K.afl";
> 
> Just a suggestion.
> 
> Anthony
> 
> Keith Newhouse wrote:
> 
> > Below are three formulae that comprise the DiNapoli Stochastic in
> > Metastock code. Each is set up as a custom indicator You can see
> > that the code Fml("NH_Di_STO_FAST_K") calls the indicator of that
> > name into another indicator. How can we do the same with AB?
> >
> > Formula Name : NH_Di_STO_FAST_K
> > ( (C - LLV(L,8))/ (HHV(H,8) - LLV(L,8) ) )* 100
> >
> > Formula Name : NH_Di_STO_FAST_D
> > Day:=Cum(1)+1;
> > Z:=3;
> > MV:=(1/Z);
> > If(Day<(Z+2),Fml("NH_Di_STO_FAST_K"),
> > If(day=(Z+2),Mov(Fml("NH_Di_STO_FAST_K"),
> > LastValue(Z),S),PREV+(MV*(Fml("NH_Di_STO_FAST_K")-PREV))))
> >
> > Formula Name : NH_Di_STO
> > Day:=Cum(1)+1;
> > Z:=3;
> > MV:=(1/Z);
> > If(Day<(Z+2),Fml("NH_Di_STO_FAST_D"),
> > If(day=(Z+2),Mov(Fml("NH_Di_STO_FAST_D"),
> > LastValue(Z),S),PREV+(MV*(Fml("NH_Di_STO_FAST_D")-PREV))))
> >
> >
> >
> >
> >
> > Yahoo! Groups Sponsor
> ADVERTISEMENT
> 
> 
> >
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> >
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> 
> 
> 
> 
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
>