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 truepenny, Today, 03:59 AM
          2 responses
          11 views
          0 likes
          Last Post truepenny  
          Started by Mindset, Today, 06:19 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by alexstox, 10-16-2018, 03:29 PM
          13 responses
          357 views
          0 likes
          Last Post aligator  
          Started by truepenny, Today, 03:45 AM
          2 responses
          17 views
          0 likes
          Last Post truepenny  
          Started by dcriador, Today, 01:43 AM
          2 responses
          15 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X