I'm not sure what I'm doing wrong but my bubbles are not showing. Can someone please assist thanks.
Code:
declare lower;
input price = close;
def "4%Model" = reference ZigZagPercent(price,10)."ZZ%";
#plot t= "4%Model"*.002;
plot t= "4%Model";
t.SetDefaultColor(GetColor(8));
t.EnableApproximation();
input length = 200;
input length1 = 10;
input displace = 0;
input showBreakoutSignals = no;
#plot AvgExp = ExpAverage(price[-displace], length);
#plot AvgExp1 = ExpAverage(price[-displace], length1);
input displace1 = -5;
input length2 = 16;
plot LowerBand = Lowest(low[-displace1 + 1], length2);
LowerBand.SetDefaultColor(color.yellow);
plot UpperBand = Highest(high[-displace1 + 1], length2);
UpperBand.SetDefaultColor(Color.cyan);
AddChartBubble(t crosses upperband, upperband, "SE", Color.red, no);
AddChartBubble(t crosses lowerBand, lowerband, "LE", Color.green, yes);