I want to ask please about drawing independent from dataseries.
When I have in the indicator COBC = false and when condition is true the indicator should plot on price panel a diamond above the high and in panel 2 with volume indicator and in panel3 with MACD histogram the backcolor in a certain color.
Both drawings are done when condition is true and independent from close of bar? Or will the backcoloring be somehow related to the volumebar or histogram?
And the 2nd question in this concern is please that my diamond is plotted so often (I understand the logic with COBC=false, that every time condition is true it plots the same distance from the high) But I thought I can remove the diamond before the new one is plotted with
RemoveDrawObject("Max");
DrawDiamond("Max" + CurrentBar, false, 0, High[0] + 10 * TickSize, Color.Magenta);
But it looks like the attached screenshot.
Thank you
Tony
Comment