Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Odd Errors when compiling

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

    Odd Errors when compiling

    Hello - getting two odd errors when i attempt to compile my strategy and it has happened on multiple strategies

    Code CS1518 - Expected class, delegate, enum, interface or struct
    Code CS1022 - Type or namespace, definition, or end of file expected

    Both of these errors are in the 'using declaration', an area I don't touch

    Any thoughts? thank you

    #2
    titleistbb22, you probably misplaced some braces accidentially resulting in those, please double click on each error and check if each opening brace has a matching, closing one in this code section. If you like you can attach the code and we take a look here.

    Comment


      #3
      Thank you - attached is my strategy. Errors are indicated in line 6, column 10 and line 12 column 2

      Thx
      Attached Files

      Comment


        #4
        The attached should compile, Falling takes a dataseries an input, not a double as you had put in - http://www.ninjatrader-support.com/H...6/Falling.html
        Attached Files

        Comment


          #5
          Thank you for the response - however I am still experiencing this error. Again, the error is occuring on all strategies I attempt to compile (attached another example). These errors occur in line 6 column 10 and line 12 column 2

          Thank you
          Attached Files
          Last edited by titleistbb22; 11-07-2009, 05:24 PM. Reason: no attachment

          Comment


            #6
            Tim, the file you imported from me was in a compilable, error free state - if you still get errors it means those are present in other local scripts, please double click on each error listed to see in which files you would need to address these offending lines to compile all files on your end. NinjaTrader does not compile one file at a time, but all files at once, which means all need to be 'error free'.

            Comment


              #7
              that helps thank you

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              85 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              48 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              29 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              32 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              67 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X