Hello, I was wondering if you could help me move the bubbles to the right in this code. I can't seem to figure it out. i use it to plot the highs and lows of the last 3 days.
input timeFrame = {default DAY};
input timeFrame2 = {default DAY};
input timeFrame3 = {default DAY};
input ShowChartBubbles = yes;
input showValuesInBubbles = yes;
input showlines= yes;
def nan = Double.NaN;
plot DH1 = If(GetAggregationPeriod() <= AggregationPeriod.day, high(period = timeFrame)[2], Double.NaN);
plot DL1 = If(GetAggregationPeriod() <= AggregationPeriod.day, low(period = timeFrame)[2], Double.NaN);
plot DH2 = If(GetAggregationPeriod() <= AggregationPeriod.day, high(period = timeFrame2)[3], Double.NaN);
plot DL2= If(GetAggregationPeriod() <= AggregationPeriod.day, low(period = timeFrame2)[3], Double.NaN);
plot DH3 = If(GetAggregationPeriod() <= AggregationPeriod.day, high(period = timeFrame3)[4], Double.NaN);
plot DL3 = If(GetAggregationPeriod() <= AggregationPeriod.day, low(period = timeFrame3)[4], Double.NaN);
DH1.SetHiding(!ShowLines);
DH1.SetDefaultColor (Color.YELLOW);
DH1.SetPaintingStrategy(PaintingStrategy.DASHES);
DL1.SetHiding(!ShowLines);
DL1.SetDefaultColor(Color.YELLOW);
DL1.SetPaintingStrategy(PaintingStrategy.DASHES);
DH2.SetHiding(!ShowLines);
DH2.SetDefaultColor (Color.YELLOW);
DH2.SetPaintingStrategy(PaintingStrategy.DASHES);
DL2.SetHiding(!ShowLines);
DL2.SetDefaultColor(Color.YELLOW);
DL2.SetPaintingStrategy(PaintingStrategy.DASHES);
DH3.SetHiding(!ShowLines);
DH3.SetDefaultColor (Color.YELLOW);
DH3.SetPaintingStrategy(PaintingStrategy.DASHES);
DL3.SetHiding(!ShowLines);
DL3.SetDefaultColor(Color.YELLOW);
DL3.SetPaintingStrategy(PaintingStrategy.DASHES);
AddChartBubble(ShowChartBubbles, if IsNaN(DH1[1]) and !IsNaN(DH1) then DH1 else NAN, if showValuesInBubbles then "H $" + DH1 else "H", Color.Yellow, yes);
AddChartBubble(ShowChartBubbles, if IsNaN(DL1[1]) and !IsNaN(DL1) then DL1 else NAN, if showValuesInBubbles then "L $" + DL1 else "L", Color.Yellow, yes);
AddChartBubble(ShowChartBubbles, if IsNaN(DH2[1]) and !IsNaN(DH2) then DH2 else NAN, if showValuesInBubbles then "H $" + DH2 else "H", Color.Yellow, yes);
AddChartBubble(ShowChartBubbles, if IsNaN(DL2[1]) and !IsNaN(DL2) then DL2 else NAN, if showValuesInBubbles then "L $" + DL2 else "L", Color.Yellow, yes);
AddChartBubble(ShowChartBubbles, if IsNaN(DH3[1]) and !IsNaN(DH3) then DH3 else NAN, if showValuesInBubbles then "H $" + DH3 else "H", Color.Yellow, yes);
AddChartBubble(ShowChartBubbles, if IsNaN(DL3[1]) and !IsNaN(DL3) then DL3 else NAN, if showValuesInBubbles then "L $" + DL3 else "L", Color.Yellow, yes);