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

[amibroker] PERRY KAUFMAN Adaptive M A



PureBytes Links

Trading Reference Links

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


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