Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Paul H.NinjaTrader Customer Service

    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 futtrader, 04-21-2024, 01:50 AM
      4 responses
      41 views
      0 likes
      Last Post futtrader  
      Started by Option Whisperer, Today, 09:55 AM
      1 response
      12 views
      0 likes
      Last Post bltdavid  
      Started by port119, Today, 02:43 PM
      0 responses
      8 views
      0 likes
      Last Post port119
      by port119
       
      Started by Philippe56140, Today, 02:35 PM
      0 responses
      7 views
      0 likes
      Last Post Philippe56140  
      Started by 00nevest, Today, 02:27 PM
      0 responses
      7 views
      0 likes
      Last Post 00nevest  
      Working...
      X