PureBytes Links
Trading Reference Links
|
have a look at posts here over past couple of days, TJ answered
another query on MS Prev function. If you search the archives of
emails you will find this to be a common question, answered many times
On Thu, 10 Feb 2005 05:45:24 -0000, Hans <hansib@xxxxxxxxx> wrote:
>
>
> Thanks Graham,
>
> I really had a second goal: how to translate
>
> AM := If(Cum(1) = periods +1, ref(Close,-1) + constant * (CLOSE -
> ref(Close,-1)),Prev + constant * (CLOSE - PREV));
>
> because PREV function sounds like ref(AM,-1) but if i do it I get an
> initialization error.
>
> Hope to get help on this also.
>
> Hans
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> > 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@xxxx> 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/
>
>
> 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 --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/
|