NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 06-21-2010, 09:00 PM   #1
MoreYummy
Senior Member
 
Join Date: Aug 2008
Posts: 325
Thanks: 0
Thanked 0 times in 0 posts
Default error when back up and seems similar error when importing ninjascript .zip file

Hi,

When i run backup for everything, it will say there is error on the script or something like that, and it runs alot longer than before when there is no such message.

Now today i tried to import a custom .zip file contains indicator, it says :" You have custom Ninjascript files on your pc that have programming errors. these error must be resolved befor eyo import NS file..."

So how do i know which one? And i dont see anything custom indicator with programming error, all are working fine...
MoreYummy is offline  
Reply With Quote
Old 06-22-2010, 04:16 AM   #2
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,316
Thanks: 92
Thanked 354 times in 345 posts
Default

Hello MoreYummy,

The error indicates the 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 debug the indicator or remove 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...upArchive.html

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/do...g_software.htm

Restore your settings and you should be able to import new NinjaScript files again.
NinjaTrader_Jason is offline  
Reply With Quote
Old 06-22-2010, 03:46 PM   #3
MoreYummy
Senior Member
 
Join Date: Aug 2008
Posts: 325
Thanks: 0
Thanked 0 times in 0 posts
Default

it seems custom/ninjatrader.Vendor.dll could not be found.

it is all the indicator's error.

What happened?

Like i said, nothing is done or change on any indicator or scripts. Just one day it will tell me error on ninjascript when backing up everything.
MoreYummy is offline  
Reply With Quote
Old 06-22-2010, 04:00 PM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello MoreYummy,

To resolve you will need to add a reference to the file. Do this within the NinjaScript editor.
  • Right Click and Select References
  • Click Add
  • Browse to My Documents\NinjaTrader\bin\custom
  • Locate NinjaTrader.Vendor.dll and then click Open
You should then be able to recompile by hitting F5 on your keyboard.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 06-22-2010, 04:20 PM   #5
MoreYummy
Senior Member
 
Join Date: Aug 2008
Posts: 325
Thanks: 0
Thanked 0 times in 0 posts
Default

The reference list already have that link...

So i guess the file is deleted?

But i just checked it, the file is There!!!

So what is next?


I found the problem, since last time there is glitch i had to reload, reinstall everything!, the directory is changed, but the indicator from the last backup still using the previous NT's directory. After I changed the reference's folder to the current new installation, it works.

But now how do I change ALL one by one? it takes forever...

Any idea to fix it? Or have NT to reference the .dll file to a folder in Main control, rather each script is using its own reference..

It is not a good idea from a coding stand point, always use variable rather direct link/number.
Last edited by MoreYummy; 06-22-2010 at 04:27 PM.
MoreYummy is offline  
Reply With Quote
Old 06-22-2010, 04:27 PM   #6
NinjaTrader_RyanO
NinjaTrader Customer Service
 
NinjaTrader_RyanO's Avatar
 
Join Date: May 2009
Location: Denver, CO
Posts: 2,187
Thanks: 3
Thanked 14 times in 13 posts
Default

Hi MoreYummy,

You will want to highlight the already added NinjaTrader.Vendor.Dll and then select Delete.

Then you will want to re-add that reference using the steps from the previous reply.
NinjaTrader_RyanO is offline  
Reply With Quote
Old 06-22-2010, 04:30 PM   #7
MoreYummy
Senior Member
 
Join Date: Aug 2008
Posts: 325
Thanks: 0
Thanked 0 times in 0 posts
Default

ok, it looks like it solve all.
MoreYummy 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
Error importing Ninjascript on NT 6.5 shadowfax General Programming 1 06-13-2010 06:53 PM
Importing NinjaScript File Trouble CRCatNinja General Programming 14 06-03-2010 08:44 AM
Exporting NinjaScript Archive File- Compiler Error snobtrader Miscellaneous Support 2 01-02-2010 12:34 PM
Importing Error Mike0812 Indicator Development 1 11-16-2009 07:05 AM
NinjaScript File Error nojob Miscellaneous Support 4 08-14-2009 04:24 AM


All times are GMT -6. The time now is 11:13 PM.