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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    72 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X