Turner8tor
New member
I have an Addchartbubble that I want to show on the current or last active bar regardless of the time period viewed when a condition is true. I am running into struggles trying to use the barnumber() function to show only bar 676 in this example when viewing a lower aggregation period when the original condition is based on a higher time frame. Any help would be greatly appreciated.
def condition = five_minbuydip == 1 AND five_minbuydip[-1] == 0; # code to show bubbles only on the most recent 5 min aggregation
AddChartBubble(condition, ten_minEMA21, barnumber(), color.green, No);
def condition = five_minbuydip == 1 AND five_minbuydip[-1] == 0; # code to show bubbles only on the most recent 5 min aggregation
AddChartBubble(condition, ten_minEMA21, barnumber(), color.green, No);
Last edited by a moderator: