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

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

    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.


          JesseNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,605 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          8 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          18 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          4 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          13 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X