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 ZenCortexCLICK, Today, 04:58 AM
      0 responses
      5 views
      0 likes
      Last Post ZenCortexCLICK  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      172 responses
      2,281 views
      0 likes
      Last Post sidlercom80  
      Started by Irukandji, Yesterday, 02:53 AM
      2 responses
      18 views
      0 likes
      Last Post Irukandji  
      Started by adeelshahzad, Today, 03:54 AM
      0 responses
      8 views
      0 likes
      Last Post adeelshahzad  
      Started by Barry Milan, Yesterday, 10:35 PM
      3 responses
      13 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X