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 doihaveto13, Today, 05:45 AM
          0 responses
          2 views
          0 likes
          Last Post doihaveto13  
          Started by giulyko00, 04-24-2024, 12:03 PM
          9 responses
          43 views
          0 likes
          Last Post giulyko00  
          Started by memonic, Yesterday, 01:23 PM
          2 responses
          25 views
          0 likes
          Last Post memonic
          by memonic
           
          Started by merc410, Today, 03:41 AM
          2 responses
          16 views
          0 likes
          Last Post merc410
          by merc410
           
          Started by sugalt, 04-30-2024, 04:02 AM
          2 responses
          13 views
          0 likes
          Last Post sugalt
          by sugalt
           
          Working...
          X