Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting Compiler Errors for things that aren't even open

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

    Getting Compiler Errors for things that aren't even open

    I've tried creating a couple indicators and strategies, but I've consistently gotten a compiler error (CS0101) when I try to compile one of these - however, I'm getting an error for one of the previous indicators or strategies I've got open. The only way I seem to be able to compile my strategy is to go and delete everything else I've done.

    Use case is something like this:

    # Open NT
    # Create new Strategy
    # Unlock at some point
    # Compile - this compiles fine
    # Create New Indicator
    # Generate
    # Edit Code - no errors
    # Compile - CS0101 error due to the Strategy being open
    # Close NT
    # Open
    # Edit Indicator
    # Compile - CS0101 error due to strategy being open again

    Any ideas?

    #2
    What indicator or strategy are the CS0101 errors come from? This should be displayed in the far left column of the errors that are listed below.

    Note that when you compile a strategy or indicator it will compile [b]all[b] indicators/strategies - not just one.

    This means if there are errors from a previous indicator/strategy, it will prevent the current file from being compiled.

    Errors that are orange indicate that they are coming from another indicator. If you double click on this error, it should open the other indicator and take you to the exact line with errors.

    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
    MatthewNinjaTrader Product Management

    Comment


      #3
      Thanks, Matthew. That makes sense.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      582 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      338 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X