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:21:42 PM(UTC)
MS Support

Rank: Advanced Member

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

Thanks: 85 times
Was thanked: 154 time(s) in 150 post(s)

The article “The Vortex Indicator” introduces a new indicator and a suggested trading method.

Both can be added to MetaStock with the formulas listed below.

I split the indicator into two separate formulas to make it easier to color them correctly. To enter these indicators into MetaStock:

  1. Tools menu, select New to open the Indicator Editor for a new indicator.
  2. tp:= Input("time periods",1,100,14);

    Sum(Abs(H-Ref(L,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp)

    1. Ok to close the Indicator Editor.
    1. New to open the Indicator Editor for a new indicator.
    2. tp:= Input("time periods",1,100,14);

      Sum(Abs(L-Ref(H,-1)),tp)/

      Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp)

      1. Ok to close the Indicator Editor.
      2. Ok to close Indicator Builder

    3. Tools > the New
    4. Buy Order tab and enter the following formula.

    tp:= 14;

    vip:=Sum(Abs(H-Ref(L,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    vim:=Sum(Abs(L-Ref(H,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    bset:=cross(vip,vim);

    cross(h,valuewhen(1,bset,h))

    1. Order Type to Limit or Stop Price and enter the following formula:

    tp:= 14;

    vip:=Sum(Abs(H-Ref(L,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    vim:=Sum(Abs(L-Ref(H,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    bset:=cross(vip,vim);

    valuewhen(1,bset,h)

    1. Sell Order tab and enter the following formula.

    tp:= 14;

    vip:=Sum(Abs(H-Ref(L,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    vim:=Sum(Abs(L-Ref(H,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    sset:=cross(vim,vip);

    cross(valuewhen(1,sset,L),L)

    1. Order Type to Limit or Stop Price and enter the following formula

    tp:= 14;

    vip:=Sum(Abs(H-Ref(L,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    vim:=Sum(Abs(L-Ref(H,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    sset:=cross(vim,vip);

    valuewhen(1,sset,L)

    1. Sell Short Order tab and enter the following formula.

    tp:= 14;

    vip:=Sum(Abs(H-Ref(L,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    vim:=Sum(Abs(L-Ref(H,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    sset:=cross(vim,vip);

    cross(valuewhen(1,sset,L),L)

    1. Order Type to Limit or Stop Price and enter the following formula:

    tp:= 14;

    vip:=Sum(Abs(H-Ref(L,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    vim:=Sum(Abs(L-Ref(H,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    sset:=cross(vim,vip);

    valuewhen(1,sset,L)

    1. Buy to Cover Order tab and enter the following formula.

    tp:= 14;

    vip:=Sum(Abs(H-Ref(L,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    vim:=Sum(Abs(L-Ref(H,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    bset:=cross(vip,vim);

    cross(h,valuewhen(1,bset,h))

    1. Order Type to Limit or Stop Price and enter the following formula

    tp:= 14;

    vip:=Sum(Abs(H-Ref(L,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    vim:=Sum(Abs(L-Ref(H,-1)),tp)/

    Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);

    bset:=cross(vip,vim);

    valuewhen(1,bset,h)

    1. OK to close the system editor.


    William Golson
    MetaStock Support

Users browsing this topic
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.