Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 algospoke, Yesterday, 06:40 PM
          2 responses
          23 views
          0 likes
          Last Post algospoke  
          Started by ghoul, Today, 06:02 PM
          3 responses
          14 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          45 views
          0 likes
          Last Post jeronymite  
          Started by Barry Milan, Yesterday, 10:35 PM
          7 responses
          21 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by AttiM, 02-14-2024, 05:20 PM
          10 responses
          181 views
          0 likes
          Last Post jeronymite  
          Working...
          X