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.
    BertrandNinjaTrader Customer Service

    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
        BertrandNinjaTrader Customer Service

        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'.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              that helps thank you

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by rezamerik, 08-23-2023, 10:33 AM
              10 responses
              1,593 views
              0 likes
              Last Post mfzillln  
              Started by giogio1, 12-02-2024, 03:18 AM
              6 responses
              39 views
              0 likes
              Last Post giogio1
              by giogio1
               
              Started by Blaze212, Yesterday, 10:05 PM
              0 responses
              12 views
              0 likes
              Last Post Blaze212  
              Started by ntbone, 07-18-2019, 12:15 PM
              14 responses
              254 views
              0 likes
              Last Post BarzTrading  
              Started by trober, 11-30-2024, 10:58 PM
              9 responses
              30 views
              0 likes
              Last Post trober
              by trober
               
              Working...
              X