Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 rajendrasubedi2023, Today, 09:50 AM
          0 responses
          6 views
          0 likes
          Last Post rajendrasubedi2023  
          Started by ender_wiggum, Today, 09:50 AM
          0 responses
          2 views
          0 likes
          Last Post ender_wiggum  
          Started by bmartz, Today, 09:30 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by geddyisodin, Today, 05:20 AM
          3 responses
          23 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by lorem, Today, 09:18 AM
          1 response
          5 views
          0 likes
          Last Post lorem
          by lorem
           
          Working...
          X