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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      599 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      344 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      558 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      557 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X