def nan = Double.NaN;

#plot VAbove = if(close >= open, high, nan);

#plot VAbove = if(close >= open, 1, nan);

#plot VAbove = if(close >= open, high("MSFT"), nan);

plot VAbove = if(close >= open, volume("MSFT"), nan);

VAbove.SetPaintingStrategy(PaintingStrategy.VALUES_ABOVE);

#plot VBelow = if(close < open, low, nan);

#plot VBelow = if(close < open, 0, nan);

#plot VBelow = if(close < open, low("MSFT"), nan);

plot VBelow = if(close < open, volume("MSFT"), nan);

VBelow.SetPaintingStrategy(PaintingStrategy.VALUES_Below);

AddChartBubble(1, high, "Debug - " + "VAbove: " + VAbove + ", VBelow: " + VBelow);