Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error - NinjaScript files with programming errors

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

    Error - NinjaScript files with programming errors

    I want to import a program to NT. When I tried, I got the following error message: You have custom NinjaScript files on your PC that have programming errors. These errors must be resolved before you can import a NinjaScript Archive File. I tried to open Strategy Builder where I have several custom Strategies. Then I got this message: Uncompilable NinjaScript NinjaScript must be in a compilable state to create or edit Strategies. Please use the NinjaScript Editor to resolve compilation issues. How do I resolve these issues? Thanks for the help.

    #2
    Hello HotCabbage%4823,

    Thank you for creating your post with these details.

    Please follow the instructions below to see where the errors are coming from after compiling the indicators on your platform. This will allow you to debug the indicator/strategy or remove it from your PC if needed. 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
    • 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(s) is indicating, please include 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.
    • 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 as a jpeg file and send the file as an attachment.
    We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip in our Help Guide:Please let us know if we may be of further assistance.

    Comment


      #3
      OK! That worked. Thanks for the help.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by t.kelly4149, Today, 05:36 PM
      1 response
      5 views
      0 likes
      Last Post bltdavid  
      Started by SilverSurfer1, Today, 06:29 PM
      0 responses
      14 views
      0 likes
      Last Post SilverSurfer1  
      Started by trader3000a, Today, 01:06 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by marcus2300, Today, 11:45 AM
      3 responses
      30 views
      0 likes
      Last Post marcus2300  
      Started by pel11, Today, 11:06 AM
      0 responses
      12 views
      0 likes
      Last Post pel11
      by pel11
       
      Working...
      X