Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Missing NinjaTrader Generated Script Section

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

  • ttodua
    replied
    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 {
    ...

    Leave a comment:


  • Mindset
    replied
    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!

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    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?

    Leave a comment:


  • cbaer
    replied
    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

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    Thanks for clarifying aviat72

    Leave a comment:


  • aviat72
    replied
    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.

    Leave a comment:


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

    Leave a comment:


  • aviat72
    replied
    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.

    Leave a comment:


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

    Leave a comment:


  • aviat72
    started a topic Missing NinjaTrader Generated Script Section

    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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by CarlTrading, 03-31-2026, 09:41 PM
1 response
152 views
1 like
Last Post NinjaTrader_ChelseaB  
Started by CarlTrading, 04-01-2026, 02:41 AM
0 responses
89 views
1 like
Last Post CarlTrading  
Started by CaptainJack, 03-31-2026, 11:44 PM
0 responses
131 views
2 likes
Last Post CaptainJack  
Started by CarlTrading, 03-30-2026, 11:51 AM
0 responses
127 views
1 like
Last Post CarlTrading  
Started by CarlTrading, 03-30-2026, 11:48 AM
0 responses
107 views
0 likes
Last Post CarlTrading  
Working...
X