Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing object level

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Drawing object level

    Hi,
    There is a way to bring a drawing object the front in the UI by holding down the shift key and scrolling the mouse wheel. How can I accomplish the same thing in code?
    ZOrder = -1 seems to do nothing.
    Thanks ... Ed

    #2
    Hello Ed,

    Thanks for your post.

    As was originally discussed in http://www.ninjatrader.com/support/f...t=45252&page=2
    " for now you can add the unsupported ZOrder = -1 call to your indicators scripts that would move the study behind the price bars (as done in our VolumeZones)."

    and also here: http://www.ninjatrader.com/support/f...ghlight=zorder

    I confirm that ZOrder = -1 needs to be put in the initialize section, Like this:

    Code:
    protected override void Initialize()
    {
    ZOrder = -1;   
    }
    Please let me know if I can be of further assistance.

    Comment


      #3
      Originally posted by edstaffin View Post
      Hi,
      There is a way to bring a drawing object the front in the UI by holding down the shift key and scrolling the mouse wheel. How can I accomplish the same thing in code?
      ZOrder = -1 seems to do nothing.
      Thanks ... Ed
      A ZOrder of -1 will take your indicator objects to the back. To bring them to the front, you need to use a ZOrder that is higher that that of the bars. Just use a pretty high number.

      What you want to be on top must have the highest ZOrder number.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      173 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      90 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      129 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      208 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      186 views
      0 likes
      Last Post CarlTrading  
      Working...
      X