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 chbruno, Today, 04:10 PM
          0 responses
          1 view
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by josh18955, 03-25-2023, 11:16 AM
          6 responses
          436 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          6 views
          0 likes
          Last Post FAQtrader  
          Started by rocketman7, Today, 09:41 AM
          5 responses
          19 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by frslvr, 04-11-2024, 07:26 AM
          9 responses
          127 views
          1 like
          Last Post caryc123  
          Working...
          X