Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CS0246 error in VS compiles fine in NT7

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

    CS0246 error in VS compiles fine in NT7

    Hello,

    I'm working a strategy in Visual Studio 2015 and get error CS0246 "The type or namespace name....."

    When I compile the exact same code in NT7 no errors no problems.

    The offending indicator also compiles find in VS. It wasn't until I tried to use in VS that trouble started.

    Any help in resolving this is greatly appreciated.
    daqu40
    NinjaTrader Ecosystem Vendor - QTradez

    #2
    Hello daqu40,

    Thank you for your post.

    You would not compile the indicators in Visual Studio. You would use the NinjaScript Editor to compile the indicators.

    Comment


      #3
      Yes, I misspoke. The build (F6) in VS is throwing the CS0246 error. Compile (F5) is working fine in NT.

      This is the first time I've encountered this and not at all sure why VS isn't seeing the indicator it says it's missing.
      daqu40
      NinjaTrader Ecosystem Vendor - QTradez

      Comment


        #4
        Hello daqu40,

        Visual Studio would not have the full project, you can ignore the Visual Studio message. Just keep in mind to compile in the NinjaScript Editor.

        Comment


          #5
          Ok, thanks.
          daqu40
          NinjaTrader Ecosystem Vendor - QTradez

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          580 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          335 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X