AddChartBubble - Trying to hide certain Volume bubbles

X

XeoNoX

New member
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);


 
BenTen

BenTen

Administrative
Staff
VIP
Maybe something like if this then that else double.nan?
 
X

XeoNoX

New member
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);
 
X

XeoNoX

New member
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);
 
X

XeoNoX

New member
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.

 
X

XeoNoX

New member
i figured it out, its the distance up or down the 0 represents.

thanks again for the help
 

Similar threads

Top