Draw and Delete a rectangle
-
Hello,
I want to do this:
- Only when the last closed bar crosses above the MA 60 I will draw a green rectangle in the right corner.
- Only when the last closed bar crosses below the MA 60 I will draw a red rectangle in the right corner.
- If no cross (the last bar is just below or above the MA 60), delete all visible rectangles.
I can draw the colored rectangles when the last bar crossed the MA. But how can I delete them? Delete objects by type or just delete objects will not work. Maybe I forgot something or I did it wrong. Can anybody help me with the structure?
Thanks!
-
Here you can find some solutions:
https://fxdreema.com/forum/topic/7416/cannot-delete-object
https://fxdreema.com/forum/topic/4457/draw-and-delete-specific-chart-objects