Hi Pete,
I have this code, I am getting bubble on each dot instead of just one bubble. How can I resove it?
and I use this study on 15 min TF so can the bubble be moved forward automatically after the completion of four 15 min candles? If its possible I want to apply your soultion to some other studies as well.
input aggregationPeriod = AggregationPeriod.DAY;
def highValue = high(period = aggregationPeriod)[1];
def lowValue = low(period = aggregationPeriod)[1];
def closeValue = close(period = aggregationPeriod)[1];
def range = highValue – lowValue;
plot DailyBankMathHigh = if GetDay() == GetLASTDay() then closeValue + ((range) * .75)else Double.NaN;
plot DailyBankMathLow = if GetDay() == GetLastDay() then closeValue – ((range) * .75) else Double.NaN;
AddLabel(yes, Concat(“DailyBMH : “, DailyBankMathHigh ), Color.ORANGE);
AddLabel(yes, Concat(“DailyBML : “, DailyBankMathLow ), Color.GREEN);
AddChartBubble(YES,DailyBankMathLow, Concat(“DBML: “, DailyBankMathLow), Color.GREEN, yes);
AddChartBubble(YES,DailyBankMathHIGH, Concat(“DBMH: “, DailyBankMathHIGH), Color.ORANGE);
Like this:
Like Loading...