Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analizer - Reload Input Parameters

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

    Strategy Analizer - Reload Input Parameters

    Hi!

    Im getting struggled migrating ninascript from NT7 to NT8.
    I create some input parameters to set them and i was testing on strategy analizer.
    I changed groupNames and order for some of them but no changes were reflected on parameters pannel
    Was more incredible when I decided to delete the strategy from ninjascript editor and strategy analizer stills offered the strategy to execute it!
    I do not understand what is wrong, if is my strategy, if there is a backup of my strategy somewhere and is reading this one instead of the new one with modifications..
    Many thanks for any help!

    Regards

    Alex


    #2
    Hello reyes11,

    When you made those changes did you compile the strategy and then re select it in the analyzer? If you had it selected already you would need to select a different strategy and then re select it to see the updates.

    Regarding the deleted strategy, please try compiling any script and then close and re open the analyzer window to check if it still exists.

    Comment


      #3
      Hi Jesse!,

      Thanks you for the fast answer.

      When you made those changes did you compile the strategy and then re select it in the analyzer?

      Yes, I compile it, no errors were shown (some warnings thats all).
      I tried even closing ninjatrader platform and restart it but keeps the same with same parameters, groupnames, order...

      Regarding the deleted strategy, please try compiling any script and then close and re open the analyzer window to check if it still exists.

      It still appears. I show you:

      My strategy is named RPalo1MBCK, it is not within the existing strategies:

      Click image for larger version

Name:	image.png
Views:	127
Size:	14.6 KB
ID:	1266845

      and in strategy analizer:

      Click image for larger version

Name:	image.png
Views:	111
Size:	20.1 KB
ID:	1266846

      In addition if you notice is not appearing my other strategy RPalo1M and it compiled fine,,
      Very strange behaviour..

      Alex​​

      Comment


        #4
        Hello reyes11,

        Based on this information it looks like you have a naming issue. You likely have the RPalo1mbck strategy inside the file RPalo1m. To make sure the names match right click on the RPalo1m strategy and select rename and give it a new unique name. After doing that you should see that strategy in the list for the analyzer and also edit it using the NinjaScript editor. The script you were editing likely had a different name as well which would be a reason why the parameters were not updating.

        The strategies dropdown list uses the Name = " "; string inside the strategies SetDefaults, the NinjaScript editor uses the strategies file name. Your strategy has a total of 3 names, the Class name, the File name and the Name = "" strring. Those should all normally match.

        Comment


          #5
          Hi Jesse!

          Wow you find the clue!

          Click image for larger version  Name:	image.png Views:	0 Size:	20.3 KB ID:	1266852

          The reason was that I build RPalo1M from RPalo1MBCK and it was trasferred the name of the strategy too and I did not notice it..

          RPalo1M code was like:

          Click image for larger version  Name:	image.png Views:	0 Size:	7.8 KB ID:	1266854
          I set the corresponding name (RPalo1M) and now all work fine...

          What a trouble and what an easy solution!!
          Really many many thanks!!!!
          10 stars to you!
          Have a nice day

          Alex​​
          Last edited by reyes11; 08-30-2023, 04:23 PM.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          50 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          126 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          69 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X