Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaTrader should not add generated code for abstract classes

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

    NinjaTrader should not add generated code for abstract classes

    In NT8, NT is adding the indicator generated code to the end of files that contain abstract classes.

    This was not done in NT7.

    The attached code is a basic example.

    When the generated code is added, the code will not compile because it is trying to create an instance of the abstract class.

    We have a library of indicators that uses this mechanism, and can currently not be converted from 7 to 8.

    Can NinjaTrader 8 either recognize that a class is abstract and not generate the code?

    Another alternative is to allow us to somehow mark the class in the source so that the NinjaTrader generated code is not be added.

    Any insights here?

    #2
    Originally posted by TapeReader View Post
    In NT8, NT is adding the indicator generated code to the end of files that contain abstract classes.

    This was not done in NT7.

    The attached code is a basic example.

    When the generated code is added, the code will not compile because it is trying to create an instance of the abstract class.

    We have a library of indicators that uses this mechanism, and can currently not be converted from 7 to 8.

    Can NinjaTrader 8 either recognize that a class is abstract and not generate the code?

    Another alternative is to allow us to somehow mark the class in the source so that the NinjaTrader generated code is not be added.

    Any insights here?
    Put abstract classes in the physical AddOns folder.

    ref: http://ninjatrader.com/support/forum...ad.php?t=76774

    Comment


      #3
      Hello TapeReader,

      As koganam suggested, you can use the Add Ons. Please take a look at the link koganam provided for a thread on this item: http://ninjatrader.com/support/forum...ad.php?t=76774

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      24 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      25 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      30 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      18 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      27 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X