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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        163 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X