Can I control the z-order of added shapes

Custom indicators, trading strategies, data export and recording and more...
rickbarlow
Posts: 43
Joined: Mon Feb 08, 2021 5:37 pm
Been thanked: 1 time

Can I control the z-order of added shapes

Post by rickbarlow » Tue Nov 09, 2021 10:37 pm

I want to be able to draw lines and shapes on the screen and be able to control which of the shapes are on top vs. which are below. I am using addShape call, but I don't see a way to control which shape is visible. For instance, if I want to draw a line across the screen, and also want other shapes to be put on the screen but have them ON TOP of the line, I cannot figure out how to do it, when I cannot guarantee the time order in which I put each shape on the screen.

Any ideas on how to configure as needed?
 

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: Can I control the z-order of added shapes

Post by Svyatoslav » Fri Nov 12, 2021 9:04 am

Hi. Right now you can't really control that, as far as I remember. Adding such functionality is a valid feature request.

Post Reply