PureBytes Links
Trading Reference Links
|
AMA - from the help screen
fast = 2/(2+1);
slow = 2/(30+1);
dir=abs(close-ref(close,-10));
vol=sum(abs(close-ref(close,-1)),10);
ER=dir/vol;
sc =( ER*(fast-slow)+slow)^2;
AMAx = ama( close, sc );
On Thu, 10 Feb 2005 04:57:23 -0000, Hans <hansib@xxxxxxxxx> wrote:
>
>
> Hello,
>
> anyone can pls help me to translate this metastock formula:
>
> Periods := Input("Time Periods",1,1000, 10);
> Direction := CLOSE - Ref(Close,-periods);
> Volatility := Sum(Abs(ROC(CLOSE,1,$)),periods);
> ER := Abs(Direction/Volatility);
> FastSC := 2/(2 + 1);
> SlowSC := 2/(30 + 1);
> SSC := ER * (FastSC - SlowSC) + SlowSC;
> Constant := Pwr(SSC,2);
> AMA := If(Cum(1) = periods +1, ref(Close,-1) + constant * (CLOSE -
> ref(Close,-1)),Prev + constant * (CLOSE - PREV));
> AMA
>
> many thanks,
> Hans
>
>
> 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
>
>
>
>
>
--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/
|