How do I not have the plot line go all the way across the chart to the left but instead start the Line from the bar's high which it is plotting? In the screenshot below, the line should start at bar # 381 and travel to the right for example. Thanks!
Code:
def H5 = High(Period = AggregationPeriod.Five_min);
def L5 = Low(Period = AggregationPeriod.Five_min);
def O5 = Open(Period = AggregationPeriod.Five_min);
def C5 = Close(Period = AggregationPeriod.Five_min);
def bn = barnumber();
def FiveLongbar = if H5[1] < H5[2] then H5[1] else FiveLongbar[1];
def level = if isnan(close) then level[1] else FiveLongbar[1];
plot FiveLong = highestall(if !isnan(FiveLongbar) and isnan(FiveLongbar[-1]) then level else double.nan);
FiveLong.setpaintingStrategy(paintingStrategy.HORIZONTAL);
addchartbubble(if bn==highestall(bn-5) then FiveLongbar else double.nan, FiveLong,"5 Trigger",color.green);
addchartbubble(bn, low, bn, color.white);