Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error Message

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

    Error Message

    Hello,

    I'm trying to go ahead and add some new indicators to my NT library. However, when I got to 'tools' then 'import and then 'ninja script add-on' I'm getting the attached error message.

    I've uninstalled NT several times but this is still coming up and it's preventing me from adding indicators to my library. Any help fixing this would be great.

    I ran the F5 function in the NinjaScript Editor and it provided me with a list of programming errors. They were all from a previous NT 8 install however and the directory that is being mentioned in the error message doesn't exist any more.
    Attached Files

    #2
    Hello Sharpe08,

    If you'd like a fresh install and avoid the instructions below, you could uninstall NInjaTrader and rename the NinjaTrader 8 folder in My Documents to NinjaTrader8Old, then reinstall Ninja. This will cause this folder to be recreated.

    To resolve the compilation errors, please follow the instructions below to see where the errors are coming from after compiling the indicator. This will allow you to debug the indicator/strategy or remove it from your PC. If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader always compiles all indicators and strategies - not just one. This is done to give you the highest runtime performance possible.

    For NinjaTrader 8:

    Open NinjaTrader
    From the Control Center select the New menu--> select NinjaScript Editor
    Double click on the Indicators folder--> then double click on any of the indicators
    Once the indicator code is in view right click in the window and select Compile to compile all NinjaScript objects

    At the bottom of the NinjaScript Editor window, a new section will appear where you can find the error locations

    You can exclude the file referenced in the editor by double clicking on the appropriate object type on the right of the NinjaScript Editor window. This will expand the object type folder. You can then select the file with a left click--> right click on the object--> then select Open to begin debugging the file, Exclude From Compilation, or Remove to delete the file.

    If you are unsure as to what the error is indicating, please send me a screenshot of the NinjaScript File column and Error column fully visible (not to be confused with the Code column)

    To send a screenshot with Windows 7 or newer I would recommend using Window's, Snipping Tool.

    Click here for detailed instruction

    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

    Click here for detailed instruction

    We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip on our forums - http://www.ninjatrader.com/support/f...ead.php?t=4678

    Please let us know if we may be of further assistance.
    Last edited by NinjaTrader_AlanP; 08-27-2017, 11:45 AM.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for helping me on this Alan. Attached are the screenshots that show where the errors are. I've tried to exclude these files from compiling but selecting 'exclude all from compilation' hasn't worked for whatever reason.
      Attached Files

      Comment


        #4
        Sharpe08,

        Thanks for providing the screenshots.

        The compile errors you are seeing in the NinjaScript Editor indicates you are missing references to .DLL files in your installation or the .DLL files do not exist in your installation. Please follow the steps below to rectify the errors.

        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

        If you would like assistance with the steps provided please let us know and we can setup a remote assistance session with one of our techs.
        Drew O.NinjaTrader Customer Service

        Comment


          #5
          Thanks Drew. I think that fixed my problems and it looks like I'm all set at the moment now from what I can tell.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by burtoninlondon, Today, 12:38 AM
          0 responses
          10 views
          0 likes
          Last Post burtoninlondon  
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          14 views
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Yesterday, 08:42 PM
          0 responses
          11 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Yesterday, 07:51 PM
          0 responses
          14 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,983 views
          3 likes
          Last Post jhudas88  
          Working...
          X