in Search

Seeking dynamic moving average formula

Last post 09-27-2008, 11:17 by pumrysh. 3 replies.
Sort Posts: Previous Next
  •  09-16-2008, 10:28 27886

    Seeking dynamic moving average formula

    Read the ARSI Metastock formula in this months magazine (Stocks and Commodities..), and the formula box said to download (DYNAMIC MOVING AVERAGE DLL FILE)  from the forum.  I can't find it. Help...
  •  09-16-2008, 16:52 27890 in reply to 27886

    Re: Seeking dynamic moving average formula

    I believe the author was referring to the forum.dll.
    Click on the Files button in this forum or go to the following link to find the file.
    http://forum.equis.com/files/3018/programming_files/entry19695.aspx

    Trader Joe
  •  09-17-2008, 23:35 27902 in reply to 27890

    Re: Seeking dynamic moving average formula

    For those without TASC, would it be possible to reproduce the formula for ARSI (Metastock is the only software for which code is not given in TASC's Traders' Tips)?

    Thanks.

  •  09-27-2008, 11:17 27932 in reply to 27902

    Re: Seeking dynamic moving average formula

    Here are two versions.

    The first is one interpreted from the Traders Tips Amibroker version of
    the indicator. 

    The second is the sidebar version which may be available for online download from the magazine's  site. The magazine is somewhat notorious for being slow to make it available.

    You should note that if you compare the 14 ARSI to a 7 RSI you will see little difference.

    Preston


    {ARSI}
    {Asymetrical RSI formula}
    {TASC OCT 2008 Vervoort}
    {Amibroker Version 1.coded for Metastock}
    {constant period version (looks into the future)}
    Period:= Input("ARSI Period",1,100,14);
    Chg:=C-Ref(C,-1);
    UpCount:=Sum(Chg >= 0,Period);
    DnCount:=Period - UpCount;
    UpMove:=Mov(Max(Chg,0),LastValue(UpCount)*2-1,E);
    DnMove:=Mov(Max(-Chg,0),LastValue(DnCount)*2-1,E);
    RS:=UpMove/DnMove;
    ARSI:=100-(100/(1+RS));
    ARSI;

     

    {RSI Asymetrical}
    {TASC OCT 2008 Vervoort}
    {ARSI Metastock formula}
    {requires Equis Forum DLL available at }
    {Eguis Metastock Yahoo Group or the Equis Forum}
    Period:= Input("ARSI Time Period ",1,100,14);
    UpCount:=Sum(If(ROC(C,1,$) >= 0,1,0),Period);
    DnCount:=Period - UpCount;
    UpMove:=ExtFml("Forum.MOV",If(ROC(C,1,$)>=0,ROC(C,1,$),0),UpCount*2-1,e);
    DnMove:=ExtFml("Forum.MOV",If(ROC(C,1,$)<0,Abs(ROC(C,1,$)),0),DnCount*2-1,e);
    RS:=UpMove/(DnMove + 0.0001);
    100-(100/(1+RS));



    equismetastock@yahoogroups.com
View as RSS news feed in XML