Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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'?
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        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
            BertrandNinjaTrader Customer Service

            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?
                BertrandNinjaTrader Customer Service

                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 Aviram Y, Today, 05:29 AM
                    0 responses
                    2 views
                    0 likes
                    Last Post Aviram Y  
                    Started by quantismo, 04-17-2024, 05:13 PM
                    3 responses
                    25 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Started by ScottWalsh, 04-16-2024, 04:29 PM
                    7 responses
                    34 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Started by cls71, Today, 04:45 AM
                    0 responses
                    6 views
                    0 likes
                    Last Post cls71
                    by cls71
                     
                    Started by mjairg, 07-20-2023, 11:57 PM
                    3 responses
                    217 views
                    1 like
                    Last Post PaulMohn  
                    Working...
                    X