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 kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      28 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      17 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      26 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      24 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      139 views
      0 likes
      Last Post SalmaTrader  
      Working...
      X