Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Missing NinjaTrader Generated Script Section

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

    Missing NinjaTrader Generated Script Section

    I am not sure whether I should post here or in NT7. My current experience is with NT7B6 but I think I have seen similar behavior before with NT6.5 since my trace files logs have statements like

    "2009-12-26 01:30:40:299 No NS wrappers generated for Indicator !"

    Sometimes when I compile an indicator, NT does not generate the wrapper which appears as the "NinjaTrader generated .." section at the end. The indicator compiles correctly and I am able to use the indicator in a chart.

    However the offending indicatorit is not accessible to use in other Ninjascript files; Intellisense also does not seem to be showing details of that indicator.

    I tried restarting NT but that does not help. I am not sure what I am doing wrong here or how to force NT to recompile and generate the script.

    #2
    aviat72, were the indicators where you see this started with the indicator wizard to generate the underlying code 'grid'?

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      aviat72, were the indicators where you see this started with the indicator wizard to generate the underlying code 'grid'?
      Bertrand,

      I am not 100% sure since I use the SaveAs feature a lot. However, at least a few of them started with the Wizard.

      What would really help is a slightly more verbose error message (at least in the trace file).

      Cheers.

      Comment


        #4
        Thanks for the suggestion aviat72 - basically the 'NinjaScript generated' code section below the 'Properties' should be present and untouched.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Thanks for the suggestion aviat72 - basically the 'NinjaScript generated' code section below the 'Properties' should be present and untouched.
          Yes. That is what I would expect.

          But once the compiler starts behaving abnormally, a message helps to find workarounds. Clearly there is something in those specific scripts which is triggering a particular unexpected behavior in NT. Error messages in the trace can help isolate that particular offending piece of code.

          Comment


            #6
            Thanks for clarifying aviat72

            Comment


              #7
              Originally posted by NinjaTrader_Bertrand View Post
              Thanks for clarifying aviat72
              Bertrand I would be glad if you could clarify
              what we are expected to do when the
              'Ninjatrader generated code' section is not generated.
              Should we comment everything out until we see
              what is the code segment causing this behaviour?
              I have currently this problem.

              cbaer

              Comment


                #8
                cbaer, I would suggest you create a new indicator via the wizard and then copy the existing code into it and compile...is the 'NinjaScript generated code' section regenerated then?

                Comment


                  #9
                  NS Wrappers

                  Hi Bertrand/ cbaer

                  I get the same thing occasionally - no NS Wrappers generated - you need to use the Wizard and cut and paste - it's a bit tricky!

                  Comment


                    #10
                    one possible reasons could be, that you need to add that before the class (indicator or strategy:


                    // <summary>
                    /// my descript
                    /// </summary>
                    //[Description("some description)]
                    public class MyIndicator : Indicator {
                    ...

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    561 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    325 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
                    547 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