Tradingviews documentation didn't bring me further. I am struggling to use the ZigZag Library. I have found a even better library, I would like to apply.
How do I access the last and previous last high and low values?
This is what I tried yet:
import niquedegraaff/Absolute_ZigZag_Lib/10 as pivotLib
latestHigh = pivotLib.getLastHigh(pivotLib)
prevHigh = pivotLib.getHigh(pivotLib, 2)
latestLow = pivotLib.getLastLow(pivotLib)
prevLow = pivotLib.getLow(pivotLib, 2)
instead of pivotLib for 'this' I also tried 'close' and 'pivotLib.Pivot' etc.