Draw Shape on condition
-
If the condition is true draw a Green rectangle, if it is not true, draw a red rectangle on the graph. This condition can vary several times during the same bar, but this does not happen in the graph (only repainted once), even changing the Repaint parameters in the draw shape block.
It seemed simple, I tried several possibilities but none repainted several times in the same bar.
Could you please help me?
-
I feel that you want to control the same object, to change its color multiple times. Try this:https://fxdreema.com/shared/CGpYT0LSb
What I changed here is that I use name for the object. Without this, each block creates and controls its own object.