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 usazencort, Today, 01:16 AM
              0 responses
              1 view
              0 likes
              Last Post usazencort  
              Started by kaywai, 09-01-2023, 08:44 PM
              5 responses
              603 views
              0 likes
              Last Post NinjaTrader_Jason  
              Started by xiinteractive, 04-09-2024, 08:08 AM
              6 responses
              22 views
              0 likes
              Last Post xiinteractive  
              Started by Pattontje, Yesterday, 02:10 PM
              2 responses
              21 views
              0 likes
              Last Post Pattontje  
              Started by flybuzz, 04-21-2024, 04:07 PM
              17 responses
              230 views
              0 likes
              Last Post TradingLoss  
              Working...
              X