NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-25-2010, 09:38 AM   #1
joker23
Member
 
Join Date: May 2008
Posts: 77
Thanks: 0
Thanked 1 time in 1 post
Default programming errors

Hello fellow traders,

if I try to import a ninja script I get the message that there is a script that contains programming errors. How can I find out which one it is and how can I eleminate it?

Thany you for an answer
Regards
Carl
joker23 is offline  
Reply With Quote
Old 03-25-2010, 09:43 AM   #2
NinjaTrader_Tim
NinjaTrader Customer Service
 
NinjaTrader_Tim's Avatar
 
Join Date: Nov 2009
Location: Denver, CO
Posts: 1,424
Thanks: 0
Thanked 3 times in 3 posts
Default

Hi joker23,

The error indicates your current NinjaScript files contain errors, which need to resolved first before you can import new NinjaScript files.

Please follow the instructions below to see where the errors are coming from after compiling any indicator or strategy. This will allow you to debug the indicator/ strategy or remove it from your PC. If you’re wondering why you receive an error when compiling only one indicator or strategy, it is because NinjaTrader compiles all indicators and strategies. Not just one.

1) Open NinjaTrader
2) From the Control Center -> Tools -> Edit NinjaScript -> Indicator
3) Select an indicator and double click on it.
4) A new window will appear and you will need to right click and compile the indicator.
5) At the bottom of the window a new section will appear were you can find the error locations. Double click the error and you will be directed to the location of the error.
6) From there you have the option to remove the indicator or debug it. You can delete NinjaScript files via Tools-->Edit NinjaScript-->Indicator/Strategy, highlight it and select Delete

You can find general debug information at the link below.
http://www.ninjatrader-support2.com/...ead.php?t=3418

In addition, you can try the following workaround as well. Note that you will lose all custom and third party NinjaScript files.

Create a backup file with 'NinjaScript files' unchecked.
http://www.ninjatrader-support.com/H...ABackupArchive

Uninstall NinjaTrader via the Windows Control Panel-->Add/Remove Programs (XP), Programs and Features (Vista).

Delete the My Documents-->NinjaTrader 6.5 folder. Do not delete the NinjaTrader backup folder.

Clear your browser cache and download and install NinjaTrader 6.5 at the link below.
http://www.ninjatrader.com/webnew/download_download.htm

Restore your settings and you should be able to import new NinjaScript files again.
NinjaTrader_Tim is offline  
Reply With Quote
Old 03-25-2010, 09:57 AM   #3
joker23
Member
 
Join Date: May 2008
Posts: 77
Thanks: 0
Thanked 1 time in 1 post
Default

Thanks a lot for helping me so quickly. If its a matter of interest for you, my homepage is:

www.thetradewarrior.de

Carl
joker23 is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
removing a custom indicator with programming errors GoldStandard Miscellaneous Support 6 05-24-2010 03:41 AM
programming help katiewc General Programming 12 02-05-2010 04:35 PM
Programming errors cant do anything Mike_32 Miscellaneous Support 4 10-26-2009 02:33 AM
Programming help kipper General Programming 3 12-14-2008 12:12 AM
How do I resolve NinjaScript Programming Errors? NinjaTrader_Ray Tips 0 12-24-2007 08:46 AM


All times are GMT -6. The time now is 05:30 AM.