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 argusthome, Yesterday, 10:06 AM
      0 responses
      14 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      11 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      9 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      4 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      31 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X