AddChartBubble - Trying to hide certain Volume bubbles

XeoNoX

Active member
VIP
I am stuck and have been trying for like 4 hours already and cant figure out how to hide the green "addchartbubbles" that are LESS THAN 1,500,000 in volume, but i would still like for the actual blue volume bar to show, i just want the green bubbles under 1.5 million to hide. Any help would be much appreciated.

this is the code i have so far.

Code:
declare lower;

plot over = volume;
over.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
over.SetLineWeight(3);
AddChartBubble(high == high, high, "" + over, Color.green, no);



 

XeoNoX

Active member
VIP
now i get a error message on the addchartbubble, im not even sure if i used double.nan right, i dont really know how or when to use the nan syntax. Any way you can help a bit?

Code:
declare lower;

plot over = volume;
over.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
over.SetLineWeight(3);
AddChartBubble(high == high, high, "" + over, if  over > 1500000 then Color.green else  double.nan, no);
 

XeoNoX

Active member
VIP
i even tried this and cant get it to work ... Anyone have any ideas what im doing wrong?

Code:
plot hvol = volume;
hvol.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
hvol.SetLineWeight(3);



AddChartBubble(yes, if  hvol  > 1500000 then "volume" + hvol  else "down", if hvol  < 1500000 then double.nan else color.green, no);
 

XeoNoX

Active member
VIP
thanks your a life saver it worked, total different way of thinking, lol, coding is so interesting, shows how people think.
Quick question though, can you explain what the 0, hvol parameter does.

 

Similar threads

Top