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 : Friday, June 10, 2011 1:39:23 PM(UTC)
MS Support

Rank: Advanced Member

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

Thanks: 85 times
Was thanked: 154 time(s) in 150 post(s)
Walid Khalil And David Steckler’s article, “Entering the Price Zone,” offers new indicator and suggests some rules for trading it.

To create a system test:

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

R := If( C > Ref( C, -1 ), C, -C );

CP := Mov(R, 14, E );

TC := Mov(C, 14, E );

PZO := 100 * ( CP / TC );

retrace := If( Cross( 40, PZO), 1,

If( PREV = 1 AND Cross( PZO, 0), 2, PREV ) );

C > Mov(C, 60, E) AND ADX( 14 ) > 18 AND

( Cross( PZO, -40 ) OR

(retrace = 2 AND Cross( PZO, 20 ) ) )

  1. Sell Order tab and enter the following formula.

R := If( C > Ref( C, -1 ), C, -C );

CP := Mov(R, 14, E );

TC := Mov(C, 14, E );

PZO := 100 * ( CP / TC );

( PZO < 0 AND C < Mov( C, 60, E ) ) OR

( Ref( PZO > 60, -1 ) AND PZO < Ref( PZO, -1 ) )

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

R := If( C > Ref( C, -1 ), C, -C );

CP := Mov(R, 14, E );

TC := Mov(C, 14, E );

PZO := 100 * ( CP / TC );

retrace := If( Cross( PZO, -40 ), 1,

If( PREV = 1 AND Cross( 0, PZO ), 2, PREV ) );

C < Mov(C, 60, E) AND ADX( 14 ) > 18 AND

( Cross( 40, PZO ) OR

(retrace = 2 AND Cross( -20, PZO ) ) )

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

R := If( C > Ref( C, -1 ), C, -C );

CP := Mov(R, 14, E );

TC := Mov(C, 14, E );

PZO := 100 * ( CP / TC );

( PZO > 0 AND C > Mov( C, 60, E ) ) OR

( Ref( PZO < -60, -1 ) AND PZO > Ref( PZO, -1 ) )

  1. OK to close the system editor.

mstt  
#2 Posted : Tuesday, June 14, 2011 3:55:24 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)
Here are alternative Buy Order and Sell Short Order formulas for the PZO system posted by MS Support. It returns identical results to the original code but does so without the use of PREV, allowing for significantly faster system test execution. {Buy Order window} R:=If(C>Ref(C,-1),C,-C); CP:=Mov(R,14,E); TC:=Mov(C,14,E); PZO:=100*(CP/TC); P1:=Cross(40,PZO); P2:=Cross(PZO,0); I:=Cum(IsDefined(P1+P2))=1; Retrace:=If(Cum(P1>=1),1+(BarsSince(I+P1)>=BarsSince(I+P2)),0); C>Mov(C,60,E) AND ADX(14)>18 AND (Cross(PZO,-40) OR (retrace=2 AND Cross(PZO,20))); {Sell Short Order window} R:=If(C>Ref(C,-1),C,-C); CP:=Mov(R,14,E); TC:=Mov(C,14,E); PZO:=100*(CP/TC); P1:=Cross(PZO,-40); P2:=Cross(0,PZO); I:=Cum(IsDefined(P1+P2))=1; Retrace:=If(Cum(P1>=1),1+(BarsSince(I+P1)>=BarsSince(I+P2)),0); Mov(C,60,E)>C AND ADX(14)>18 AND (Cross(40,PZO) OR (Retrace=2 AND Cross(-20,PZO))); Roy www.metastocktips.co.nz
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.