Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetZOrder() ?

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

    SetZOrder() ?

    I would like my indicator to be below all other objects on the chart, what is the correct syntax for this?

    #2
    Hello funk101,

    Thank you for writing in.

    Please take a look at the help guide for SetZOrder(): http://ninjatrader.com/support/helpG...?setzorder.htm

    A value of -1 would set the indicator behind the other objects on the chart.

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Yes, I tried that and it does not do it. I put it in State.Default, *and State.Active*. Again, doesn't make a change
      Last edited by funk101; 04-27-2016, 09:34 AM.

      Comment


        #4
        Hello funk101,

        I'm looking further why using SetZOrder() is not producing the desired outcome.

        As a workaround, in State.Configure, you can directly assign the indicator's ZOrder property:
        Code:
        else if (State == State.Configure)
        {
             ZOrder = -1;
        }
        You'll want to be aware, however, of the Z-Ordering of the default chart objects: http://ninjatrader.com/support/helpG...?setzorder.htm

        Also, be aware that there can be conflicts if two indicators are using the same ZOrder set from ZOrder.
        Last edited by NinjaTrader_ZacharyG; 04-27-2016, 11:32 AM.
        Zachary G.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by funk101 View Post
          Yes, I tried that and it does not do it. I put it in State.Default, *and State.Active*. Again, doesn't make a change
          I believe that there is a bug report about that failure already. Try using the ZOrder assignment instead. I do it in State.SetDefaults.

          ref: http://ninjatrader.com/support/forum...ight=setzorder

          Comment


            #6
            Ok cool, thanks, this works for me:

            Code:
            if (State == State.Configure)
                ZOrder = -1;

            Comment


              #7
              Hello funk101,

              I just wanted to update that this has been reported as a bug to development and has been assigned a tracking number of NTEIGHT-9772.

              Please, let us know if we may be of further assistance.
              Zachary G.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by pmachiraju, 11-01-2023, 04:46 AM
              8 responses
              147 views
              0 likes
              Last Post rehmans
              by rehmans
               
              Started by mattbsea, Today, 05:44 PM
              0 responses
              5 views
              0 likes
              Last Post mattbsea  
              Started by RideMe, 04-07-2024, 04:54 PM
              6 responses
              33 views
              0 likes
              Last Post RideMe
              by RideMe
               
              Started by tkaboris, Today, 05:13 PM
              0 responses
              5 views
              0 likes
              Last Post tkaboris  
              Started by GussJ, 03-04-2020, 03:11 PM
              16 responses
              3,282 views
              0 likes
              Last Post Leafcutter  
              Working...
              X