PINE LIBRARY

ZigLib

7447
Library "ZigLib"
Calculate the points for ZigZag++.
You can use custom data and resolution for your ZigZag++.

Sample Usage



zigzag(_low, _high, depth, deviation, backstep)
Get current zigzag points and direction
  Parameters:
    _low (float)
    _high (float)
    depth (int)
    deviation (int)
    backstep (int)
Returns direction, chart point 1 and chart point 2


Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.