SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Metastock 6.0 for Window -- Ignore unavailable to you. Want to Upgrade?


To: gbr who wrote (2558)1/1/1999 9:20:00 AM
From: John Hunt  Respond to of 4056
 
Hi gary,

Thanks ... Glad you liked it.

Just remember to use the zigzag to confirm / time another indicator as the last 'zag' can vary depending on the %change of the last day.

:-))

John




To: gbr who wrote (2558)1/1/1999 10:33:00 AM
From: John Hunt  Read Replies (1) | Respond to of 4056
 
SLIGHTLY IMPROVED ZIGZAG TEST

Hi Gary,

Here is a small improvement to the zigzag test in that, by requiring that Stochastics be above or below 50 for entry, there are slightly fewer unprofitable trades and thus a higher win/loss ratio. It takes a little longer to run.

ENTER LONG

(Zig(C, opt1, %) > Ref(Zig(C, opt1, %),-1) AND
Ref(Zig(C, opt1, %),-1) < Ref(Zig(C, opt1, %),-2)
AND Stoch(10,2) <= 50)

CLOSE LONG

(Zig(C, opt1, %) < Ref(Zig(C, opt1, %),-1) AND
Ref(Zig(C, opt1, %),-1) > Ref(Zig(C, opt1, %),-2) AND
Stoch(10,2) > 50)

OR

(L < 0.99*(ValueWhen(1,Zig(C, opt1, %) > Ref(Zig(C, opt1, %),-1) AND
Ref(Zig(C, opt1, %),-1) < Ref(Zig(C, opt1, %),-2) AND
Stoch(10,2) <= 50 , L)))

ENTER SHORT

(Zig(C, opt1, %) < Ref(Zig(C, opt1, %),-1) AND
Ref(Zig(C, opt1, %),-1) > Ref(Zig(C, opt1, %),-2) AND
Stoch(10,2) > 50)

CLOSE SHORT

(Zig(C, opt1, %) > Ref(Zig(C, opt1, %),-1) AND
Ref(Zig(C, opt1, %),-1) < Ref(Zig(C, opt1, %),-2) AND
Stoch(10,2) <= 50)

OR

(H > 1.01*(ValueWhen(1, Zig(C, opt1, %) < Ref(Zig(C, opt1, %),-1) AND
Ref(Zig(C, opt1, %),-1) > Ref(Zig(C, opt1, %),-2) AND
Stoch(10,2) > 50 , H)))

Opt 1 is 2 to 10, steps 0.1

Notes:

- Testing each stock with the zigzag takes only 15-25 seconds

- The 'ValueWhen' function in the closing formulae above serves as a stop loss to exit when the low is 1% less than the low on the signal entry day (longs) or the high is 1% higher than the high on the signal entry day (shorts).

- I do not set any other stops.

- Only use the zigzag test to confirm / time another indicator as the last 'zag' can vary depending on the %change of the last day

John