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 burtoninlondon, Today, 12:38 AM
              0 responses
              10 views
              0 likes
              Last Post burtoninlondon  
              Started by AaronKoRn, Yesterday, 09:49 PM
              0 responses
              14 views
              0 likes
              Last Post AaronKoRn  
              Started by carnitron, Yesterday, 08:42 PM
              0 responses
              11 views
              0 likes
              Last Post carnitron  
              Started by strategist007, Yesterday, 07:51 PM
              0 responses
              14 views
              0 likes
              Last Post strategist007  
              Started by StockTrader88, 03-06-2021, 08:58 AM
              44 responses
              3,983 views
              3 likes
              Last Post jhudas88  
              Working...
              X