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?
    JesseNinjaTrader Customer Service

    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?
        JesseNinjaTrader Customer Service

        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.
            JesseNinjaTrader Customer Service

            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.

                JesseNinjaTrader Customer Service

                Comment


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

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by HiddenPhilosopher, 05-22-2020, 01:09 AM
                  27 responses
                  2,720 views
                  0 likes
                  Last Post Trader17  
                  Started by ETFVoyageur, Today, 10:34 AM
                  6 responses
                  18 views
                  0 likes
                  Last Post ETFVoyageur  
                  Started by KNalley, 01-24-2020, 10:33 AM
                  9 responses
                  964 views
                  0 likes
                  Last Post Trader17  
                  Started by Austiner87, Today, 11:19 AM
                  5 responses
                  13 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by rodriguesdanny, 05-15-2024, 12:06 PM
                  9 responses
                  35 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Working...
                  X