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 realblubb, Today, 09:28 AM
      0 responses
      2 views
      0 likes
      Last Post realblubb  
      Started by AaronKoRn, Yesterday, 09:49 PM
      1 response
      18 views
      0 likes
      Last Post Rikazkhan007  
      Started by ageeholdings, Today, 07:43 AM
      0 responses
      12 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Working...
      X