PureBytes Links
Trading Reference Links
|
What did you intend the P to be
Direction=P-Ref(P,-periods);
Do you mean Close ? In which case use C, or put a line at the beginning
P=C;
Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: traderix2003 [mailto:d.adam@xxxxxxxxxx]
Sent: Sunday, 3 August 2003 10:52 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: PERRY KAUFMAN Adaptive M A
Hi, Graham, Thank you.
I get now AFL Error: "Variable "p" used without having been
initialized"
Some idea??
Regards.
Daniel
--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx>
wrote:
> Needs the styles Plot(AMA(P,Constant),"KAMA",colorRed,styleline);
> Plot(C,"C",colorBlack,stylecandle);
>
> Cheers,
> Graham
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia
>
>
> -----Original Message-----
> From: traderix2003 [mailto:d.adam@x...]
> Sent: Sunday, 3 August 2003 8:04 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] PERRY KAUFMAN Adaptive M A
>
>
> Hello,
> I try to write the formula for KAMA(Perry Kaufman Adaptive Moving
> Average):
>
>
> Periods = Param("Time Periods",10,1,1000,1); Direction=P-Ref(P,-
periods);
> Volatility=Sum(abs(P-Ref(P,-1)),periods);
> Volatility=IIf(Volatility>0,Volatility,0.00001);
> ER=abs(Direction/Volatility);
> FastSC=2/(2+1);
> SlowSC=2/(30+1);
> SSC=ER* (FastSC-SlowSC)+SlowSC;
> Constant=SSC^2;
> Plot(AMA(P,Constant),"KAMA",colorRed);
> Plot(C,"C",colorBlack);
>
> It seems I forgot something. Could you help me? Thanks a lot
>
> Daniel
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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/
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sO0ANB/LIdGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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/
|