Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Wow: NT strategy analyzer completely broken

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

    Wow: NT strategy analyzer completely broken

    I have written 3 test strategies - one (s1) has been tested and works OK, one (s2) - compiled, not tested yet, one (s3) - developed today by copying some code from s1 (I did fix code as to class name, etc.).
    When I tried to compile s3 - got several strange errors referring to s2 (error code CS1518). Now, if I try to compile ANY strategy (including your samples, like SampleMACrossOver), I get exactly the same set of errors (below) - all referring to s2!
    I tried exiting strategy analyzer - does not help.
    I tried exiting NT - does not help.
    VERY discouraging to see NT completely BROKEN!


    NinjaScript File,Error,Code,Line,Column,
    Strategy\Strategy2.cs,Expected class, delegate, enum, interface, or struct,CS1518 - click for info,90,16,
    Strategy\Strategy2.cs,Expected class, delegate, enum, interface, or struct,CS1518 - click for info,98,16,
    Strategy\Strategy2.cs,Expected class, delegate, enum, interface, or struct,CS1518 - click for info,106,16,
    Strategy\Strategy2.cs,Expected class, delegate, enum, interface, or struct,CS1518 - click for info,114,16,
    Strategy\Strategy2.cs,Type or namespace definition, or end-of-file expected,CS1022 - click for info,121,1,

    #2
    Hello MarkZ,

    If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader always compiles all indicators and strategies - not just one. This is done to give you the highest runtime performance possible.

    It looks like inside of "Strategy2.cs" there is some programming errors. You may double click on each line and try to see if you can see what is going as it will take you to the Script and the line of the issue. From there you have the option to comment out offending code sections, remove the complete indicator or debug it to be able to compile again.

    We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip on our forums - http://www.ninjatrader.com/support/f...ead.php?t=4678

    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      First, I'm compiling a STRATEGY, not an indicator! So, are you saying that when I compile my strategy - it compiles ALL OTHER strategies? This seems absurd to me - and differs from any other IDE that I've ever seen in 20 years. But thanks for letting me know - at least there is no mystery then.

      Comment


        #4
        Hello MarkZ,

        Yes, that is correct. Our Development team is taking that into consideration for our next major release of NinjaTrader.

        Let us know if we can be of further assistance.
        JCNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_JC View Post
          Hello MarkZ,

          Yes, that is correct. Our Development team is taking that into consideration for our next major release of NinjaTrader.

          Let us know if we can be of further assistance.
          I encountered a similar problem when compiling my strategies and upon searching for a solution I came across this thread. Has the issue been addressed by the development team in the latest release?

          Comment


            #6
            Hello mbesha,

            Thank you for your note.

            This change (compiling one script at a time instead of all scripts), if implemented, will not be implemented in NinjaTrader 7 but may or may not be implemented in a future major version of NinjaTrader.

            In the meantime, I am happy to assist you in resolving the error.

            May I have a screenshot of the error with the Error column fully expanded so that I may read the entire error message?

            To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window.
            Then go to Start--> Accessories--> Paint, and press CRTL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
            We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip on our forums -http://www.ninjatrader.com/support/f...ead.php?t=4678
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            633 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            567 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X