I saw this chart in the internet, and I tried to replicate it. I use a function like this:
PlotShapes( iif(BuyZone, shapeSquare, iif(ShortZone, shapeSquare, 0)), iif(BuyZone, colorGreen, iif(ShortZone, colorRed, 0)), 0, LLV(L, lastvalue(LastVisibleValue(barindex())) - FirstVisibleValue(barindex())), 8);
It worked as long as I have all the bars clustered together, but as I expand the bars, the visible bars on the screen become less, and I see the spaces between the square shapes, which I don't want. Please help me find a way. On the other hand, perhaps I shouldn't be using the PlotShapes function but to try and use some sort of Low-level graphics function instead.