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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    68 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    150 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X