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

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 GussJ, 03-04-2020, 03:11 PM
      16 responses
      3,279 views
      0 likes
      Last Post Leafcutter  
      Started by WHICKED, Today, 12:45 PM
      2 responses
      19 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by Tim-c, Today, 02:10 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Taddypole, Today, 02:47 PM
      0 responses
      5 views
      0 likes
      Last Post Taddypole  
      Started by chbruno, 04-24-2024, 04:10 PM
      4 responses
      51 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Working...
      X