I have a simple zigzag indicator. rather than the bar number, I would like to have the number of bars since the last high/low
Code:
def zz = reference ZigZagHighLow(close, close, 5,0, 0, 0);
plot zzp=zz;
zzp.EnableApproximation();
def barNumber = barNumber();
AddChartBubble(zz, close, barNumber);