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

Notification

Icon
Error

Options
Go to last post Go to first unread
ninja007  
#1 Posted : Thursday, January 7, 2010 3:26:22 AM(UTC)
ninja007

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/7/2010(UTC)
Posts: 2

Has anybody the metastock code for this indicator ? There was an article in S&C Jan.2010 issue. Thanks for help
mstt  
#2 Posted : Thursday, January 7, 2010 5:27:46 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)

Preston Umrysh recently posted his interpretation of this indicator in the "equismetastock" Yahoo group. I'm sure he won't mind me reproducing the code here.

{Vortex Indicator}
{TAS&C Jan 2010}
{Written for Metastock by Preston Umrysh}
Period:= Input("Enter periods",1,100, 14);
VMP:=Sum(Abs( H-Ref(L,- 1)),period) ;
VMM:=Sum(Abs( L-Ref(H,- 1)),period) ;
STR:=Sum(ATR( 1),period) ;
VIP:=VMP/STR; VIP;
VIM:=VMM/STR; VIM;

Roy

ninja007  
#3 Posted : Friday, January 8, 2010 3:04:44 AM(UTC)
ninja007

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/7/2010(UTC)
Posts: 2

THANKS
Whippet  
#4 Posted : Wednesday, January 13, 2010 4:43:49 PM(UTC)
Whippet

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 1/13/2010(UTC)
Posts: 1

This is from Metastock technical support: We had submitted a Trader’s Tip for the Vortex Indicator but for some reason it was not included in the most recent issue of TASC. Here is the tip we submitted. 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: In the Tools menu, select Indicator Builder. Click New to open the Indicator Editor for a new indicator. Type the name “Vortex +”. Click in the larger window and paste or type in the formula. 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) Click Ok to close the Indicator Editor. Click New to open the Indicator Editor for a new indicator. Type the name “Vortex -”. Click in the larger window and paste or type in the formula. 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) Click Ok to close the Indicator Editor. Click Ok to close Indicator Builder The system test and instructions for creating it in MetaStock are: Select Tools > the Enhanced System Tester. Click New Enter a name, “Vortex System” Select the 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)) Set the Order Type to Stop Select the 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) Select the 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) Set the Order Type to Stop Select the 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) Select the 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) Set the Order Type to Stop Select the 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) Select the 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)) Set the Order Type to Stop Select the 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) Click OK to close the system editor.
pumrysh  
#5 Posted : Saturday, January 16, 2010 11:01:55 AM(UTC)
pumrysh

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/28/2004(UTC)
Posts: 110

Whippet, Thanks for posting the indicator and system. I also wanted to post another version which actually is faster than the one the authors in TASC came up with: {Vortex on Steroids} {Based on a Jan. 2010 TASC article} {From equismetastock@ yahoogroups} {By Preston Umrysh} Period:=Input("periods",1,100,14); ATRPd:= Input("ATR periods",1,100,1); VMP:=Abs(H-Ref(L,-1)); VMM:=Abs(L-Ref(H,-1)); STR:=ATR(ATRPd); VIP:=Wilders(VMP/STR,period);VIP; VIM:=Wilders(VMM/STR,period);VIM; The reason this indicator is faster is due to the difference in how the VMP and VMM calculations are handled. In the original version they are summed over the lookback period then divided by the sum of the ATR's. In the steroidal version above this calculation is preformed on a daily basis. Another trick is the use of a Wilder's moving average which is very similar to an exponential moving average at half the lookback periods. enjoy, Preston
Users browsing this topic
Guest (Hidden)
Similar Topics
Jan 2010 : The Vortex Indicator (2010)
by MS Support 1/26/2011 4:21:42 PM(UTC)
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.