I am attempting to plot chart bubbles to the right of opening range breakout values but the bubbles plot over the last bar on the chart. The formula I am using is:
Input ShowBubble = yes;
Input BarsInFuture = 3;
Def bif = BarsInFuture;
def SR = showBubble and !IsNaN(close) and IsNaN(close [-1] ) && HighestAll(BarNumber());
AddChartBubble(SR, R1, “Buy:” + R1, Color.UPTICK, yes);
AddChartBubble(SR, Settlement, “Open:” + Settlement, Color.YELLOW, no);
AddChartBubble(SR, S1, “Sell:” + S1, Color.DOWNTICK, no);
When I try to apply code to advance the bubble to bars in the future, bubble will not display. This is the code I have trying to get to work:
Input ShowBubble = yes;
Input ShowBubble = yes;
input BarsInFuture = 3;
def bif = BarsInFuture;
def x = isNaN(close[bif]) and !isNaN(close[bif+1]);
def vert = R1[bif+1];
AddChartBubble(ShowBubble and x, vert, “Buy:” + R1, color.UPTICK, yes);
Any help with setting the bubbles to the right of the last price bar would be greatly appreciated.
Input ShowBubble = yes;
Input BarsInFuture = 3;
Def bif = BarsInFuture;
def SR = showBubble and !IsNaN(close) and IsNaN(close [-1] ) && HighestAll(BarNumber());
AddChartBubble(SR, R1, “Buy:” + R1, Color.UPTICK, yes);
AddChartBubble(SR, Settlement, “Open:” + Settlement, Color.YELLOW, no);
AddChartBubble(SR, S1, “Sell:” + S1, Color.DOWNTICK, no);
When I try to apply code to advance the bubble to bars in the future, bubble will not display. This is the code I have trying to get to work:
Input ShowBubble = yes;
Input ShowBubble = yes;
input BarsInFuture = 3;
def bif = BarsInFuture;
def x = isNaN(close[bif]) and !isNaN(close[bif+1]);
def vert = R1[bif+1];
AddChartBubble(ShowBubble and x, vert, “Buy:” + R1, color.UPTICK, yes);
Any help with setting the bubbles to the right of the last price bar would be greatly appreciated.