• 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 tvaughan4, 12-13-2019, 10:46 PM
          2 responses
          14 views
          0 likes
          Last Post tvaughan4  
          Started by digibob, 12-13-2019, 10:01 PM
          3 responses
          12 views
          0 likes
          Last Post digibob
          by digibob
           
          Started by ldissinger, Yesterday, 12:55 PM
          1 response
          14 views
          0 likes
          Last Post ldissinger  
          Started by pstrusi, Yesterday, 09:06 AM
          1 response
          25 views
          0 likes
          Last Post marcus2300  
          Started by vpzdcv, Yesterday, 02:31 AM
          0 responses
          13 views
          0 likes
          Last Post vpzdcv
          by vpzdcv
           
          Working...
          X