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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          155 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          307 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          244 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          346 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          176 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X