Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjascript editor compiling stops Draw.TextFixed updates

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

    Ninjascript editor compiling stops Draw.TextFixed updates

    Hi, I've been having an issue relating to the effect compiling has on Draw.TextFixed across any active indicators or strategies using it.

    This occurs every time I run compile in the ninjascript editor, even without any code changes anywhere. If after compiling, I double-click any drawing object on any chart, and press 'OK' in the 'Drawing Objects' UI, suddenly any indicator or strategy on that chart that uses Draw.TextFixed will no longer update its text until it's disabled and re-enabled (or with an indicator, will also fix when 'visible' is disabled and re-enabled). Can most easily be tested using the base 'Tick Counter' indicator, which will stop updating its text.

    This happens with or without any changes to the drawing object, just opening the UI and pressing OK any time after compiling has happened will have this effect every time.

    I'm at a loss for how to fix this, and it's very frustrating having to disable and re-enable all of my strategies and indicators that rely on updating text with Draw.TextFixed every time I compile code changes. I manually manage drawing objects constantly during live market hours, so every compile means I have to do this.

    I'm hoping I can get some help or insight about it. Thanks for reading

    #2
    Hello xepher101,

    Do you see this happen with a normal Draw.Text object in a clean new workspace?

    Comment


      #3
      Today I found I could test this while markets are closed using market replay, as the same issue occurs there too.

      Yes, in a new workspace, with only the NinjaScript Editor and one chart (ES 2000 tick), the same thing was still occurring with Draw.Text as well. I tested it by running a strategy that updated a text object using Draw.Text on every update. The position and text of the object stops updating as soon as I press OK in the drawing object UI after compiling.​

      Comment


        #4
        Hello xepher101,

        Can you share a script that produces the problem along with the steps you used to see the problem?

        Comment


          #5
          Sure, here it is.

          New workspace.
          Only NinjaScript Editor and one chart (ES 2000 tick).
          Add and enable the test strategy.
          Compile (F5) in the NinjaScript Editor.
          Double-click any drawing object on the chart (add one, or just use the text object added from the strategy).
          Press OK in the Drawing Objects UI.
          At this point, the text and position of the text objects will stop updating.​
          Attached Files

          Comment


            #6
            Hello xepher101,

            Thank you for providing that, I will test this on my end and report any problems to development.

            Comment


              #7
              Sounds good, I'll wait to hear an update on it.

              Comment


                #8
                Hello

                This item is being tracked with the id NT-17450, if a change is made it will be listed in the change log.

                Comment


                  #9
                  Alright, I'll keep an eye out for it. Thank you

                  Comment


                    #10
                    xepher101 Have you tried Reload NinjaScript (F5) on each chart with indicators after recompiling? I've seen something similar to your issue and this seems effective in overcoming it. Same with Strategies, I expect; but I only run AddOns, and they too should be restarted.

                    Thanks.
                    Multi-Dimensional Managed Trading
                    jeronymite
                    NinjaTrader Ecosystem Vendor - Mizpah Software

                    Comment


                      #11
                      Originally posted by jeronymite View Post
                      xepher101 Have you tried Reload NinjaScript (F5) on each chart with indicators after recompiling? I've seen something similar to your issue and this seems effective in overcoming it. Same with Strategies, I expect; but I only run AddOns, and they too should be restarted.

                      Thanks.
                      Thanks for this, it does work as a temporary solution.

                      I still have to do it in several different tabs and it resets my active settings in each strategy, but it's much better than manually re-enabling everything.

                      There's also the slight pause while the scripts reload which may be a non issue, it just makes me slightly nervous to be reloading several times during high volatility periods when my strategies depend on high accuracy and consistency of bars based on ticks. I'll have to test this during higher volatility, but I think for the most part ninjatrader does a good job of keeping everything synced even during reload pauses.

                      I'll still hope to see a fix in a future update, but this helps me a lot for now. Thanks again

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by argusthome, 03-08-2026, 10:06 AM
                      0 responses
                      65 views
                      0 likes
                      Last Post argusthome  
                      Started by NabilKhattabi, 03-06-2026, 11:18 AM
                      0 responses
                      41 views
                      0 likes
                      Last Post NabilKhattabi  
                      Started by Deep42, 03-06-2026, 12:28 AM
                      0 responses
                      23 views
                      0 likes
                      Last Post Deep42
                      by Deep42
                       
                      Started by TheRealMorford, 03-05-2026, 06:15 PM
                      0 responses
                      26 views
                      0 likes
                      Last Post TheRealMorford  
                      Started by Mindset, 02-28-2026, 06:16 AM
                      0 responses
                      52 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Working...
                      X