• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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'?
    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 faisamtrader, Today, 10:31 AM
                    1 response
                    9 views
                    0 likes
                    Last Post NinjaTrader_Tyler  
                    Started by ChazJ, Today, 09:48 AM
                    1 response
                    3 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by maxie, Today, 10:01 AM
                    1 response
                    6 views
                    0 likes
                    Last Post NinjaTrader_Melissa  
                    Started by Bionian, Today, 09:36 AM
                    1 response
                    4 views
                    0 likes
                    Last Post NinjaTrader_PaulH  
                    Started by tomd, Today, 09:48 AM
                    1 response
                    12 views
                    0 likes
                    Last Post NinjaTrader_Ariana  
                    Working...
                    X