Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Suppress NinjaScript generated code

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

    Suppress NinjaScript generated code

    I have a file with few classes defined inside the namespace NinjaTrader.NinjaScript.Indicators. They are not indicators, just a library of tiny classes.
    My problem is that it generates at the bottom the NinjaScript generated code that gives me compiling errors. I need to suppress the automatic generation of "NinjaScript generated code" for some specific cs file. Is it possible? In some cases it creates me a lot of unnecessary work.
    Thank you!
    Gio​
    Last edited by giogio1; 10-01-2024, 02:08 AM.

    #2
    Hello Gio,

    If the file is not an indicator and no classes in the file inherit from the Indicator class, I would not expect the autogenerated code to appear.

    That said, you would need to use a 3rd party editor and keep the NinjaScript Editor closed to prevent the autogenerated code from appearing.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Is there something in particular that triggers the auto-generated code to actually generate? I'm having an issue with one indicator where the auto-generated code doesn't generate.

      Thank you!

      Comment


        #4
        Hello neoikon,

        If the script inherits from Indicator and a compile is triggered in the NinjaScript Editor with the script open or the script is saved, this will cause the auto generated code to appear.

        The autogenerated code allows the indicator to work with different hosts such as the market analyzer, as a symbiote to a strategy, the superdom, etc, and creates overload signatures for the public properties.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X