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

Error Loading Backup to Server

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

    Error Loading Backup to Server

    Hi Team,
    I recently decided to run my strategies from an external server. So I exported a backup from my desktop and imported it onto my new server. On my desktop all my strategies work perfectly fine but when I wanted to set up my strategies on my new server I received the following error message:
    "You have customer Ninjascript files on your PC that have programming errors. These errors must be resolved before you can restore NinjaScript from a backup file."
    I dont know what's wrong since all worked great on my desktop. Any advice?

    #2
    Hello JBU1314,

    Thank you for your post.

    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 7:
    • Open NinjaTrader
    • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
    • Select ANY indicator and double click on it (we need only to open and compile one script to see all compile errors for all files).
    • A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
    • At the bottom of the window a new section will appear where you can find the error locations.
    • From there you have the option to comment out offending code sections, remove the complete indicator or debug it to be able to compile again.

    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 instructions: http://windows.microsoft.com/en-us/w...#1TC=windows-8

    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: http://take-a-screenshot.org/

    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 me know if you have any questions.

    Comment


      #3
      Hi Patrick, Thanks for the fast reply!
      I followed all the steps but could not figure it out. I even reinstalled NT8 but it still does not let me import my files. Here the screenshots.
      Thanks again for any help,
      Best Juergen
      Attached Files

      Comment


        #4
        Hello JBU1314,

        Thank you for your response.

        The compile error 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.
        • From the Control Center please select New--> NinjaScript Editor
        • In the NinjaScript Editor please right click and select References.
        • 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)
        • If you see the .DLL file reference please left click on the reference and select Remove
        • If you removed the reference in the previous step or you do not see the .DLL file reference then please select Add
        • The Add option will open a File Explorer, from the path that was opened please locate the .DLL file
        • 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
        • 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 need assistance with the steps provided please let us know at platformsupport[at]ninjatrader[dot]com and we can setup a remote assistance session with one of our techs.

        Comment


          #5
          Hi Patrick, Great now it works!!! You guys are super with fast customer service!!
          Have a nice day!
          Cheers,
          Juergen

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by algospoke, Today, 06:40 PM
          0 responses
          2 views
          0 likes
          Last Post algospoke  
          Started by maybeimnotrader, Today, 05:46 PM
          0 responses
          6 views
          0 likes
          Last Post maybeimnotrader  
          Started by quantismo, Today, 05:13 PM
          0 responses
          6 views
          0 likes
          Last Post quantismo  
          Started by AttiM, 02-14-2024, 05:20 PM
          8 responses
          168 views
          0 likes
          Last Post jeronymite  
          Started by cre8able, Today, 04:22 PM
          0 responses
          8 views
          0 likes
          Last Post cre8able  
          Working...
          X