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

ZOrderType Documentation Error

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

    ZOrderType Documentation Error

    I believe there is an error in the NT8 documentation for ZOrderType.

    The documentation shows setting ZOrderType in State == State.SetDefaults. Setting it here does nothing.

    When I set ZOrderType in State == State.Configure instead, it works as expected.

    Also, in the NT8 editor, the Intelliprompt list box does not appear for DrawingToolZOrder.
    The Trading Mantis
    NinjaTrader Ecosystem Vendor - The Trading Mantis

    #2
    Hello gregschr,

    Items that are set in State.SetDefaults only take affect when first adding the script.

    May I confirm you have removed the instance of the script and re-added this each time it is changed? (Reloading the script would not cause default settings to take affect)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      I am not sure how to remove an instance of a Drawing Tool script. I was thinking that removing the Drawing Tool from the Chart would do that, but evidently not, so I tried exiting NinjaTrader this time after the changes.

      On restarting NinjaTrader, ZOrderType then worked correctly in State == State.SetDefaults.

      Thanks,
      Greg
      The Trading Mantis
      NinjaTrader Ecosystem Vendor - The Trading Mantis

      Comment


        #4
        Hello Greg,

        From my understanding the ZOrderType would affect how drawing tools are loaded as the workspace is loaded. (This does not set the actual ZOrder number of the drawing tool as the drawing object is drawn)



        This would mean the workspace would need to be closed and re-opened.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thanks Chelsea, closing the workspace is certainly quicker than shutting down NinjaTrader.

          Just an FYI,
          Code:
          ZOrderType = DrawingToolZOrder.AlwaysDrawnFirst
          draws the tool instances Behind the bars.

          Code:
          ZOrderType = DrawingToolZOrder.AlwaysDrawnLast
          draws the tool instances Above the bars.
          The Trading Mantis
          NinjaTrader Ecosystem Vendor - The Trading Mantis

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by kaywai, 09-01-2023, 08:44 PM
          5 responses
          601 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
          19 views
          0 likes
          Last Post Pattontje  
          Started by flybuzz, 04-21-2024, 04:07 PM
          17 responses
          230 views
          0 likes
          Last Post TradingLoss  
          Started by agclub, 04-21-2024, 08:57 PM
          3 responses
          17 views
          0 likes
          Last Post TradingLoss  
          Working...
          X