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
    Paul H.NinjaTrader Customer Service

    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.
        Paul H.NinjaTrader Customer Service

        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 Brevo, Today, 01:45 AM
          0 responses
          3 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Started by aussugardefender, Today, 01:07 AM
          0 responses
          3 views
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          239 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          384 views
          1 like
          Last Post Gavini
          by Gavini
           
          Started by oviejo, Today, 12:28 AM
          0 responses
          6 views
          0 likes
          Last Post oviejo
          by oviejo
           
          Working...
          X