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

SeparateZOrder and Chart Levels

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

    SeparateZOrder and Chart Levels

    Guys, as far as I can tell, setting SeparateZOrder to false for all IDrawObjects does not change the number of levels shown on chart. That is, if an indicator puts up 1500 draw objects, using a method like

    foreach (IDrawObject draw in DrawObjects)
    {
    draw.SeparateZOrder = false;
    }

    has no effect on the chart's number of ZOrder levels. (Highlight an indicator, press the shift key, roll the mouse wheel and the number will still be >1500.) The above command may prevent separate ZOrders from applying to each draw-object within the indicator, but since the number of levels doesn't change in the display, there would still be 1500+ to scroll through in order to manually set the ZOrder for this or another indicator.

    If SeparateZOrder = false for all IDrawObjects, is there a way to reduce the number of levels shown on chart?

    Thanks for your help!

    Light

    #2
    Hello Light,

    Thank you for your post.

    There is no method to reduce the Z Order level count. The SeparateZOrder bool declares if the drawing objects will be set to the same Z Order as the NinjaScript but this does not mean there are fewer levels. Each object on the chart (Plot, Drawing Object, Data Series, etc.) have a Z Order level.

    Comment


      #3
      Reduce Indicator Levels if SeparateZorder = false

      Thanks Patrick. Could this be included as a development request? That is, if SeparateZOrder=false for a given IDrawObject, could the level that would be assigned to that object be removed from the chart level count?

      This would accurately reflect the true count, since that object would no longer hold its own level, and it would make the levels manageable when using indicators that draw a significant number of IDrawObjects. Our clients commonly have to deal with hundreds of levels, almost all of which are meaningless (SeparateZOrder=false). This makes adjusting the ZOrder manually (Shift + mouse wheel) a frustrating task.

      Thank you again for your help!

      Light

      Comment


        #4
        Hello Light,

        I will forward this request to our development team.

        Comment


          #5
          Thanks Patrick! I hope it goes well...

          Comment


            #6
            Hello Light,

            Thank you for your suggestion on how we can improve our product. It has been inserted into our tracking system with the unique ID # 2445.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by alifarahani, Today, 09:40 AM
            2 responses
            12 views
            0 likes
            Last Post alifarahani  
            Started by junkone, Today, 11:37 AM
            3 responses
            15 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by pickmyonlineclass, Today, 12:23 PM
            0 responses
            1 view
            0 likes
            Last Post pickmyonlineclass  
            Started by frankthearm, Yesterday, 09:08 AM
            12 responses
            44 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by quantismo, 04-17-2024, 05:13 PM
            5 responses
            35 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X