Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

namespace name cannot be found

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

    namespace name cannot be found

    I am trying to create a strategy with Strategy Builder and when I do an interim compile, I get the error message that 'The type or namespace file cannot be found. I go to error message 246 which sends me to error message 234 and the instructions for locating a Reference' cannot be accomplished on my system. Can anyone suggest whhat I should do as the indicator is quite prominent and available on my system.

    #2
    Hello galsermil,

    Thank you for your inquiry.

    Since this is related to strategy development, I have moved this topic to a more appropriate forum section.

    Please open a NinjaScript Editor window (New > NinjaScript Error), right click on it > Compile, then provide a screenshot showing the compile errors that appear (you may need to drag the error column out so more of the error can be seen).
    • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
    • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and attach the file as an attachment to your reply.
    Thanks in advance, I look forward to assisting you further.

    Comment


      #3
      About sharing the error (without sending screenshot):
      you can mouse right click the error line at the bottom of the Ninjascript editor window (the compiling bottom pane) (the error background line turns from orange to brown when you right click on it), then press Ctrl+C to copy it.
      Then Ctrl+V into your next post on NT forum to paste the error content (that's quicker and you paste the whole error).
      Hope it helps.

      It works for Log Tab errors as well.
      Last edited by PaulMohn; 03-02-2022, 10:10 AM. Reason: The multiple lines copying does not work (i thought I had used it before, maybe on a previous NT8 release it worked but not in current one).

      Comment


        #4
        PullbackSignalds.cs The type or namespace name 'IT_PullBackAlert' could not be found (are you missing a using directive or an assembly reference?) CS0246 36 11

        Comment


          #5
          Hello galsermil,

          Thank you for your reply.

          Looks like you may be missing a reference for a third party dll called IT_PullBackAlert. Please follow the steps below to try to rectify the error.
          1. From the Control Center please select New--> NinjaScript Editor
          2. In the NinjaScript Editor please right click and select References.
          3. In the Reference window look for the .DLL file reference in the compile error by name (in the error the file name has a .cs at the end)
          4. If you see the .DLL file reference please left click on the reference and select Remove
          5. If you removed the reference in the previous step or you do not see the .DLL file reference then please select Add
          6. The Add option will open a File Explorer, from the path that was opened please locate the .DLL file
          7. If you find the .DLL please left click to select it and then select Open--> then select OK in the References window--> then right click in the NinjaScript Editor--> select Compile
          8. If you do not find the .DLL in the File Explorer please close the File Explorer and References windows--> then navigate to Documents\NinjaTrader 8\bin\Custom on your PC--> and delete the .cs file referenced in the compile error--> then right click in the NinjaScript Editor--> Compile
          Are you able to compile after removing (if necessary) and adding the necessary reference?

          Thanks in advance; I look forward to assisting you further.

          Comment


            #6
            Thanks to you.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            65 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            139 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            75 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            50 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X