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 kevinenergy, 02-17-2023, 12:42 PM
              118 responses
              2,778 views
              1 like
              Last Post kevinenergy  
              Started by briansaul, Today, 05:31 AM
              0 responses
              9 views
              0 likes
              Last Post briansaul  
              Started by traderqz, Yesterday, 12:06 AM
              11 responses
              28 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by PaulMohn, Today, 03:49 AM
              0 responses
              8 views
              0 likes
              Last Post PaulMohn  
              Started by inanazsocial, Today, 01:15 AM
              1 response
              10 views
              0 likes
              Last Post NinjaTrader_Jason  
              Working...
              X