• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compile error cs0021

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

    Compile error cs0021

    I was working on a new indicator incorporating 'Volume[0]'
    however, when compiling I get the error CS0021
    I went back and looked at the VOL indicator and it uses the same 'Volume[0]'
    and when I try to compile the exact indicator that came with Ninjatrader I get the same compile error CS0021
    I did try the suggestion in the help under the CS0021 error by putting 'Volume()[0]' but to no avail. What am I doing wrong? Why does it work for the original VOL indicator and not for me?

    #2
    Welcome to our forums - could you please post a screenshot of the exact compile errors you would get and the code you used? You would have to keep in mind that error from other scripts could be showing for your currently edited script - this is because NinjaTrader always compiles all your custom NinjaScript files into one assembly to be used at runtime for highest performance.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Yes, I was receiving errors from other compiles. I did manage to figure it out.
      Thanks for the help.

      Comment


        #4
        Ok, glad to hear that. Thanks for reporting back.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          What did you "figure out" ???

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ballboy11, Today, 05:22 PM
          0 responses
          3 views
          0 likes
          Last Post ballboy11  
          Started by ballboy11, Today, 04:33 PM
          2 responses
          4 views
          0 likes
          Last Post ballboy11  
          Started by dedouglas, Today, 03:16 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by TradeMyth, Today, 02:45 PM
          3 responses
          26 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Ticnician, Today, 01:46 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Jim  
          Working...
          X