Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

namespace name 'Indicator' does not exist

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

    namespace name 'Indicator' does not exist

    I'm getting this error upon compiling:

    The type or namespace name 'Indicator' does not exist in the namespace 'NinjaTrader' (are you missing an assembly reference?) CS0234 26 19

    I have `using NinjaTrader.Indicator;` declared at the top.

    A suggestion was to add a reference to the NinjaTrader.Custom.dll assembly in the project in the NinjaScript Explorer.

    Instructions say to Right-click on your NinjaScript project in the NinjaScript Explorer and select "Add Reference"...but that option is not there. It's only in the menu in the editor, and adding a reference there returns the error "You cannot reference the NinjaTrader.Custom.dll in the NinjaScript editor".

    What am I missing?

    #2
    Hello tradgrad,

    Thank you for your inquiry.

    Do you still get compile errors if you comment out the using statement? NinjaTrader.Indicator is not a valid namespace in NinjaTrader 8; that is a using statement that comes from scripts developed in NinjaTrader 7. As noted in the Code Breaking Changes section of the help guide, NinjaTrader.Indicator and NinjaTrader.Strategy have been renamed and moved to a single NinjaTrader.NinjaScript namespace:


    Did you add this using statement manually? If so, what was your reasoning?

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X