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 bortz, 11-06-2023, 08:04 AM
      47 responses
      1,607 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      9 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      19 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      6 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      16 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X