Zig-Zag trader strategy
Forums › ProRealTime English forum › ProOrder support › Zig-Zag trader strategy
- This topic has 17 replies, 9 voices, and was last updated 3 years ago by fleglo.
-
-
05/11/2016 at 7:54 AM #6756
The Zig-Zag Trader strategy shows excellent results over 10 years but given the nature of the Zig-Zag indicator, I was wondering if it was viable as an automatic trader.
As you are no doubt aware, the direction and length of each Zig-Zag is not finally established until the beginning of the next leg. The question is whether this code is affected, as it is only looking at the direction of the leg not long after it is established.
1234567891011121314151617181920212223242526272829303132333435// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsZZST = ZigZag[1](totalPrice)c1 = ZZST > ZZST[1]IF c1 AND NOT LongOnMarket THENBUY 1 CONTRACT AT MARKETENDIF// Conditions to exit long positionsc2 = ZZST < ZZST[1]IF c2 THENSELL AT MARKETENDIF// Conditions to enter short positionsc3 = ZZST < ZZST[1]IF c3 AND NOT ShortOnMarket THENSELLSHORT 1 CONTRACT AT MARKETENDIF// Conditions to exit short positionsc4 = ZZST > ZZST[1]IF c4 THENEXITSHORT AT MARKETENDIF// Stops and targetsI would very much appreciate your feedback on the viability of this strategy.
05/11/2016 at 11:21 AM #678805/11/2016 at 12:05 PM #6792Hello Mike, unfortunately this strategy can’t work in real time.
ZigZag indicator are not supported into ProOrder because of its lookback needs to recalculate recent highs and lows to draw zigzag points and it’s not allowed in PRT. While it is great to avoid the so-called “repainting” indicators, it’s also something that sometimes missed in development needs.
So the embedded zigzag that is pre-calculated into the platform can’t be taken into real information in backtest. Sorry.
When you test a strategy with an equity curve so straight, there’s something wrong for sure!
1 user thanked author for this post.
05/12/2016 at 1:14 PM #687711/11/2016 at 12:05 AM #1636811/11/2016 at 12:25 AM #16369Dear @msblend,
Thank you for your query. I had never thought about stabilising the ZigZag. However, I went to https://www.prorealtime.com/en/indicator-library-open-496 and found the code for a stabilised version. Here is what the author wrote:
ZIGZAG TREND
ZigZag Trend
Binary indicator which adopts the Zigzag mechanism but as opposed to the above two indicators, it gives always valid signals about the direction of a trend and shows when that trend was confirmed.
It does not show peaks and troughs like Zigzag, but returns +1 for valid up trends and -1 for valid downtrends and it rejects all the invalid trends.
The real power of ZZT is that its signals are never revisable, so you can let the indicator provide valid signals for both the past and the present.1 user thanked author for this post.
11/12/2016 at 12:04 PM #16414Thanks Mike, but even if its informations are not “revisable”, the use of ZigZag indicator in its code make it useless for automatic trading purpose, ProOrder will reject the code.
To point highest high and lowest low, there are plenty of other indicators in the Library:
- original Bill Williams Fractals indicator for Prorelatime version 10.2
- Zig-zag indicator made of Fractals points for Prorealtime version 10.3
- Another version of the Zig-Zag indicator with 2 sets of zigzag points (PRT v10.3 only)
- pivot high/low indicator, almost like Fractals pivots..
11/12/2016 at 8:46 PM #16429Thanks @Nicolas. After much research, I find that the SuperTrend is an excellent indicator of trend as it takes account of ATR. I have also tested Pivot Hi/Lo but not as a trend indicator . I look forward to testing the other 3 you mention.
As always your assistance is much appreciated .
Cheers , Mike
05/23/2017 at 4:27 PM #36462Hi Nicholas,
is Multi Factals Indicator that you shared on library is the most similar indicator as ZigZag? I just realized ZigZag can’t be used on automatic trading & glad found this post. Attatched screenshot, Line in black is ZigZagpoints (30*pointsizes), Green line is MultiFactals. My strategy requires cleaner chart like ZigZag. Do we have other indicators ?
br,
CKW05/24/2017 at 8:12 AM #36488You could potentially get the same thing as the original ZigZag with this indicator: http://www.prorealcode.com/prorealtime-indicators/fractals-zigzag/ You could use Close instead of High/Low values to get the new fractals points. Also a conditional statement to know if the new detected fractal is 30*pointsizes away from the last one should help.
05/24/2017 at 9:35 AM #3649508/04/2017 at 12:43 PM #4247608/04/2017 at 1:17 PM #4247707/26/2018 at 3:32 PM #76824Ciao,
esiste un indicatore che sia simile allo ZigZag e che possa essere usato con proorder 10.3?
Ciao
07/26/2018 at 3:48 PM #76825ironshirow – please ONLY use English in the English speaking forum. If you want to communicate in Italian then please use the Italian forums and post a link to this topic. 🙂
Si prega di utilizzare SOLO l’inglese nel forum di lingua inglese. Se vuoi comunicare in italiano, per favore usa i forum italiani e pubblica un link a questo argomento. 🙂
-
AuthorPosts
Find exclusive trading pro-tools on