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 jxs_xrj, 01-12-2020, 09:49 AM
              6 responses
              3,290 views
              1 like
              Last Post jgualdronc  
              Started by Touch-Ups, Today, 10:36 AM
              0 responses
              9 views
              0 likes
              Last Post Touch-Ups  
              Started by geddyisodin, 04-25-2024, 05:20 AM
              11 responses
              62 views
              0 likes
              Last Post halgo_boulder  
              Started by Option Whisperer, Today, 09:55 AM
              0 responses
              8 views
              0 likes
              Last Post Option Whisperer  
              Started by halgo_boulder, 04-20-2024, 08:44 AM
              2 responses
              25 views
              0 likes
              Last Post halgo_boulder  
              Working...
              X