TradingView
sherwind
May 5, 2018 5:13 AM

ZigZag HiLo 

British Pound/U.S. DollarFXCM

Description

Comments
ryany1819
Pine Script 4 complains line 36: zigzag = na with this error: "Value with NA type cannot be assigned to a variable that was defined without type keyword".
Figured out to modify it to this:

36| float zigzag = na

to get it passed.
Maddrix_club
@ryany1819, Thanks
june0119
does this repaint?
jasontaylor7
Well, it's something, but IMO this is not a legit zig zag indicator at all. It fails to have a minimum number of bars between swing high and swing low, so it could easily just draw lines from bar high to the next bar low. It's retarded IMO. If anyone has a real zig zag indicator with both # and # of bars please reply.
jasontaylor7
sharekingpro
Not working as expected.
chosen 0.9% but drawing lines for less also.
tendollarshipping
is it repainting/ redrawing
ngurahjedur
hi can you made hi low from how many close candle after highest/lowest candle?
Eddie_A
Hi, sherwind, Are you still coding?
ArsenSimao
Hello @sherwind,
Thank you so much for the wonderful work. Had been searching for such a indicator for long time
Just one request, is it possible show the levels of the Swing High Swing Low
Regards and Stay Blessed
More