I put this script together using TOS patterns. My question, is it possible to remove all previous bubbles being displayed and only show the most current bubble. Thank you
input bubble_ht_offset = 0.0006;
def IsUp = close > open;
def IsDown = close < open;
def IsDoji = IsDoji();
def avgRange = 0.05 * Average(high - low, 20);
def Mbar =
((Sum(IsUp, 1)[1] >= 0)) and
((Sum(IsUp, 1)[0] >= 0)) and
Lowest(low[1], 1) <= Lowest(low[0], 1) and
Highest(high[1], 1) >= Highest(high[0], 1);
AddChartBubble(MBar [-1], (low * (1 - bubble_ht_offset)), "MB", Color.Yellow, no);
input bubble_ht_offset = 0.0006;
def IsUp = close > open;
def IsDown = close < open;
def IsDoji = IsDoji();
def avgRange = 0.05 * Average(high - low, 20);
def Mbar =
((Sum(IsUp, 1)[1] >= 0)) and
((Sum(IsUp, 1)[0] >= 0)) and
Lowest(low[1], 1) <= Lowest(low[0], 1) and
Highest(high[1], 1) >= Highest(high[0], 1);
AddChartBubble(MBar [-1], (low * (1 - bubble_ht_offset)), "MB", Color.Yellow, no);