Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Derived strategies do not appear as available strategies

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

    Derived strategies do not appear as available strategies

    Hello,

    I've imported my strategies from NT7 to NT8.
    But, only the strategies inherits directly from Strategy e.g.
    public class StrategyX : Strategy
    appear as an available strategy
    but any other strategy that inherits from it (e.g. public class StrategyY : StrategyX)
    does not.
    (and they do appear as available strategies in NT7)
    has anyone encountered that?
    how can I solve this issue?

    #2
    Hello liorsham,

    Thanks for your post.

    Can you clarify if you have converted the code for Ninjatrader 8 ? http://ninjatrader.com/support/helpG...ng_changes.htm

    Comment


      #3
      Yes,
      I've used the following tool:



      Also, there are no compilation errors.. + the strategies inherit directly from Strategy do appear in the available strategies.
      are there any specific methods/members I should verify exist in my strategies?

      Comment


        #4
        Hello liorsham,

        Thanks for your reply.

        Please post or send in an example strategy with the inherited strategy that displays the issue. If you wish to send it in, please send to Platformsupport[at]Ninjatrader[dot]com with Atten: Paul and " Derived strategies do not appear as available strategies" in the subject line.

        Alternatively, you may want to review your code according to the code breaking changes previously listed to ensure compliance through the conversion process you employed.
        Last edited by NinjaTrader_PaulH; 11-05-2015, 08:58 AM.

        Comment


          #5
          ok - After debugging it I found the problem, it has nothing to do with derived strategies:
          OnStateChange threw an exception (for some reason Instrument is null at first, which doesn't happen in NT7).
          Thanks anyway, thread can be closed/deleted
          .
          suggestion: if the errors on the log file ("Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.") appeared on the NinjaScript output window it would have been easier for me to find this problem.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          669 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          378 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          111 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          575 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          580 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X