THIS CODE IS BASED FROM THE MT4 ZIGZAG INDICATOR
THE ZIGZAG SETTINGS FOR THE MAIN ONE ON TRADINGVIEW DO NOT WORK THE SAME AS MT4
I HOPE U LOVE IT
I have had tons of experience on the ZIGZAG indicator and thought this might help someone.
Enjoy this code. Zigzag is a good indicator in many ways and people underestimate it because of its repainting
ZigZag Based on price oscilation.
added pattern recognition, also added recognition of head and shoulders and contracting/expanding triangles to previous list of patterns :p
Use Alt Timeframe: enables optional timeframes, use higher timeframes to reduce noise.
Timeframe: said Alt Timeframe.
Show Patterns: toggles Pattern Recognition on.
Renko based zigzag:
mode: can be Traditional or ATR .
modeValue: can be whole number if you use ATR mode, or floating point number in case of Traditional mode.
showOverlay: displays basis Renko overlay.
This is just experimenal zigzag
The zigzag % is adaptation of Ricardo santos old Zigzag %
the pivot are from pine script manual
So it try to cross them together
I think it need much work
but as i idea i put it for anypne who is interested
Making lines is great in technical analysis since it can highlights principal movements and make the analysis of the price easier when using certain methodologies (Elliott Waves, patterns).
However most of the indicators making lines (Zig-Zag, simple linear regression) are non causal (repaint), this is the challenge i tried to overcome, making an...
- Best to have it in dark mode
- It would be great with Volume, StochRSI and MACD
1. MA/EMA Cross
2. Dual Bollinger Band
5. Swing High/Low
- Please let me know if you found a better way of implementing ZigZag.
This indicator constructs dynamic high/low price range levels, based on 3 point fractals. Trend lines are drawn (zigzag style) at fractal points when trend direction is clearly established.
This is a lagging indicator: fractals lag by one bar and trend lines can lag by many bars. However, its strength lays in objectively defining historic price action: e.g....