logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
MS Support  
#1 Posted : Wednesday, January 26, 2011 4:30:13 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)

Max Gardner’s article, “Trading Indexes with the Hull Moving Average” describes the Hull Moving Average and a system using it.

You can add the average to MetaStock with these steps:

  1. Tools menu, select New to open the Indicator Editor for a new indicator.
  2. hmap := input("Moving Average Periods",1, 200, 20);

    Mov((2*Mov(C,hmap/2,W))-Mov(C,hmap,W), LastValue(Sqrt(hmap)),W)

    1. Ok to close the Indicator Editor.

    The system test formulas require MetaStock 10.0 or later.

    1. Tools > the New
    2. Buy Order tab and enter the following formula.

    hmap:= 4; { Hull Moving Average time periods }

    hma:= Mov((2*Mov(C,hmap/2,W))-Mov(C,hmap,W), LastValue(Sqrt(hmap)),W);

    el:=C > Mov(C,50,S) AND

    ROC(hma,1,$) > 0 AND

    RSI(hma,9) < 50 AND

    C > Ref(C, -59);

    xl:= RSI(hma,9) > 90;

    trade:= If(PREV<=0, If( el, C, 0),

    If((C-PREV)/PREV < -0.05, -1,

    If((C-PREV)/PREV > 0.15, -2,

    If(xl, -3, PREV))));

    Cross(trade >0, 0.5)

    1. Sell Order tab and enter the following formula.

    hmap:= 4; { Hull Moving Average time periods }

    hma:= Mov((2*Mov(C,hmap/2,W))-Mov(C,hmap,W), LastValue(Sqrt(hmap)),W);

    el:=C > Mov(C,50,S) AND

    ROC(hma,1,$) > 0 AND

    RSI(hma,9) < 50 AND

    C > Ref(C, -59);

    xl:= RSI(hma,9) > 90;

    trade:= If(PREV<=0, If( el, C, 0),

    If((C-PREV)/PREV < -0.05, -1,

    If((C-PREV)/PREV > 0.15, -2,

    If(xl, -3, PREV))));

    trade <0

    1. OK to close the system editor.

Back to top
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.