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 lightsun47, Today, 03:51 PM
          0 responses
          5 views
          0 likes
          Last Post lightsun47  
          Started by 00nevest, Today, 02:27 PM
          1 response
          10 views
          0 likes
          Last Post 00nevest  
          Started by futtrader, 04-21-2024, 01:50 AM
          4 responses
          46 views
          0 likes
          Last Post futtrader  
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          14 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          10 views
          0 likes
          Last Post port119
          by port119
           
          Working...
          X