Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Open in Strategy Analyzer Tab

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

    Open in Strategy Analyzer Tab

    Hello, I am facing a similar issue to the bug linked below. When I run a backtest on a list of instruments then right click a row and select open in strategy analyzer tab. It opens the new tab but not set to the current strategy and settings but a random strategy. This started occuring recently and I can not figure out how to get it back to what it was. I have completely removed ninjatrader from my system and reinstalled and I am still facing the same issue. Any help would be appreciated.



    #2
    Hello proptradingshop,

    Do you see this happen also with the SampleMACrossOver strategy? If so can you provide the specific sequence of steps you used? I will be happy to provide a bug report, I just need to make sure I am re creating the issue the same way that you are.

    Comment


      #3
      NinjaTrader_Jesse, I think you may have found the issue, it does not behave this way for SampleMACrossOver...my strategy is using a custom base class that inherits from Strategy. Is there anyway to fix this bug as this really hinders the workflow for backtesting and reviewing individual backtests.

      Comment


        #4
        Hello proptradingshop,

        Are you certain it relates to the custom inheritance? I would likely suggest to do some testing to see if the inheritance specifically is the reason or not. While we cannot support custom inheritance we can put in bug reports if the problem stems from something else which is supported. I would suggest making a new empty strategy and test inheriting from your custom base to see if that happens also with that strategy to confirm that.

        Comment


          #5
          NinjaTrader_Jesse

          Thank you for the support, it is definitely because of my custom strategy base class which is really unfortunate. I tried creating a simple base class that inherits from strategy then have the @SampleMACrossOver strategy inherit from the custom base class (no code in the class just simple inheritance) and when I run the SampleMACrossOver backtest in the analyzer and select a row to open in new tab it fails to open the SampleMACrossOver as the selected strategy which is really unfortunate. Do you have any examples of simple inheritance where I can reference where this is not happening? This small bug would make the platform unusable unfortunately.

          EDIT: I take back everything I said, I have found the culprit. It is related to my custom base strategy which inherits from the NT Strategy class (CustomStrategyBase : Strategy) then my strategies inherit from my CustomStrategyBase. There is nothing inherently wrong with my code or base class however if you have public class variables in your base class then the behavior I was experiencing will happen. I had to switch my class variables inside my base class to protected. (Or you can make them private with accessor methods). Hope this helps for future debugging.
          Last edited by proptradingshop; 04-22-2024, 05:51 PM. Reason: Found a solution.

          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