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

Z order of price markers

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

    Z order of price markers

    i've adapted the Volume indicator and added an average volume line along with a max and min - but i can't figure out how to change the z-order of the price markers so that the average line's price marker is always on top ?
    shouldn't i just have to define that plot first ?

    what does determine price marker z-order when there are multiple plots in a single indicator with its own panel ?

    thanks,
    w

    #2
    Hello stafe,

    Thank you for your post.

    Unfortunately, Z-Order cannot be set within the code. The Z-Order is determined by the first object drawn to the last, with the most recent object drawn taking Z-Order level 1.

    For information on the Z-Order please visit the following link: http://www.ninjatrader.com/support/h...ng_a_chart.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      not sure what you mean "determined by the first object drawn to the last, with the most recent object drawn taking Z-Order level 1"
      can you give me an example ?
      --- i've got volume bars and 3 lines on one indicator - do you mean that whichever object is updated last is on top ?
      --- or are the volume bars and all three lines part of the same object ?
      --- these are all in one indicator in its own lower panel -- not on the price panel...
      Last edited by stafe; 06-16-2014, 12:23 PM.

      Comment


        #4
        Hello Stafe,

        Thank you for your response.

        Manually drawn objects will have the most recent object on top with the level 1 of Z-Order. The drawing objects from the script will draw on the same Z-Order level, but with the first drawn object on top. Unfortunately, there is no method to control the Z-Order on drawing objects from the script.

        Comment


          #5
          still a little fuzzy on what is considered an "object" - don't really have any C or C# structure theory

          would each plot definition in an indicator on panel 2 be considered an object (in this case 5 plots) ?

          or would the whole indicator in panel 2 with it's 5 separate plots be considered 1 object ?

          Comment


            #6
            Hello stafe,

            Thank you for your response.

            By 'object' I meant the drawing objects and not plots. However, plots are also added to the same Z-Order. So 5 plots are all on the same Z-Order level.

            Comment


              #7
              somehow we got off onto Plot(s) z-order
              the question was about Price Marker z-order in post #1
              got the answer from someone else...
              http://ninjatrader.com/support/forum/showthread.php?t=66841

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Balage0922, Today, 07:38 AM
              0 responses
              1 view
              0 likes
              Last Post Balage0922  
              Started by JoMoon2024, Today, 06:56 AM
              0 responses
              6 views
              0 likes
              Last Post JoMoon2024  
              Started by Haiasi, 04-25-2024, 06:53 PM
              2 responses
              19 views
              0 likes
              Last Post Massinisa  
              Started by Creamers, Today, 05:32 AM
              0 responses
              6 views
              0 likes
              Last Post Creamers  
              Started by Segwin, 05-07-2018, 02:15 PM
              12 responses
              1,786 views
              0 likes
              Last Post Leafcutter  
              Working...
              X