Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript Editor Bug

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

    NinjaScript Editor Bug

    Hello,

    There is an strategy that has a field label that is persistent. I have removed the label from the ninjascript editor, added back with a new label name. Compiled. The label does not change.

    I've deleted the strategy, created a blank strategy with the same name and copy pasted the source. It shows up with the old label name, even though the properties show the new name.

    I have deleted custom.dll and the copy of that dll. Recompiled. Same old label.

    If I save as a new strategy with a different strategy name, the new label is shown.

    This is really annoying.

    Many Thanks, Caesar.

    #2
    Hello Skechers,

    Are you referring to the Name = "" inside the strategy?

    If you make changes to scripts OnStateChange or their public properties you need to re apply the script after recompiling. If you just do a F5 reload or re enable a strategy it wont have the code changes.

    Comment


      #3
      No, it was the AddPlot name. I can't reproduce it now ... oh well.

      Comment


        #4
        Hello Jesse,

        It's definitely a bug. I can repro it by creating a new strategy with a new different name, copy and paste from the one with the bug.

        I delete the one with the bug, and compile the new strategy. The AddPlot rename works.

        If I save the strategy with the same name that had the bug, the bug reoccurs.

        There is a cache somewhere that needs to be deleted.

        I haven't reinstalled from scratch and restoring the strategy.

        I have reinstalled and it looks like the bug is not reproducing so far.

        Many Thanks, Caesar.
        Last edited by Skechers; 10-09-2022, 03:15 PM.

        Comment


          #5
          Hello Skechers,

          Unfortunately the details provided don't help to understand the problem or what you were seeing happen.

          If you are making changes to AddPlot compiling is one step of the process to see that change, to visibly see that change in the user interface you need to remove and re apply the script. If you are doing a F5 reload then it won't update by doing that. Changing default properties or items like plot names/public properties are not reflected for F5 reloads.

          If you otherwise are doing something which is having an unexpected outcome we would need the exact details of what steps you followed and what code was used. We otherwise won't be able to explain what is happening without knowing all of the details surrounding the use case.


          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          62 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          134 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X