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

[amibroker] Re: PERRY KAUFMAN Adaptive M A



PureBytes Links

Trading Reference Links

 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/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/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/