NinjaTrader Support Forum  

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

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 07-19-2009, 06:17 PM   #1
rtj4201
Senior Member
 
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
Default Ninjascript Import Error

I went to tools, utilities and tried to import a NinjaScript zip file. I go the following error, more than once.

You have custom ninjascript files on your pc that have programming errors. These errors must be resolved befoer you can import a ninjascript archive file.
rtj4201 is offline  
Reply With Quote
Old 07-19-2009, 08:01 PM   #2
NinjaTrader_RJ
NinjaTrader Customer Service
 
NinjaTrader_RJ's Avatar
 
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
Default

Quote:
Originally Posted by rtj4201 View Post
I went to tools, utilities and tried to import a NinjaScript zip file. I go the following error, more than once.

You have custom ninjascript files on your pc that have programming errors. These errors must be resolved befoer you can import a ninjascript archive file.
Hello,

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 compiles all indicators and strategies- not just one.
  • Open NinjaTrader
  • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
  • Select an indicator and double click on it.
  • 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 were you can find the error locations.
  • From there you have the option to remove the indicator or debug it.
Let me know if this does the trick for you.
NinjaTrader_RJ is offline  
Reply With Quote
Old 07-19-2009, 08:26 PM   #3
rtj4201
Senior Member
 
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
Default

You were correct. I did a printscreen. Not sure how to correct the error. I have been using the indicator extensively. Not sure why I am getting the error.

See attached file.
Attached Files
File Type: zip doublema.zip (25.9 KB, 9 views)
rtj4201 is offline  
Reply With Quote
Old 07-20-2009, 04:11 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Most likely there's already a indicator with the name 'DoubleMA' present in your indicator library, try renaming before attempting to import the new one.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 07-20-2009, 06:55 PM   #5
rtj4201
Senior Member
 
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
Default

Actually, if you look at the file I attached, it did not like the capital letter on the D. I replaced it with d and the compiler worked.
rtj4201 is offline  
Reply With Quote
Old 07-21-2009, 01:59 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Great you got it, yes NinjaScript and C# are case sensitive.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 07-23-2009, 09:10 AM   #7
rklavohn
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default Seeing similar error but suggested fix is not clearing it

I am trying to import a script and I am getting this error. I followed the suggested fix and it does not clear the error. It involves some UMT indicators that I have been using but am not presently using with NinjaTrader. Any other suggestions? I can not find the indictors to delete them either.
rklavohn is offline  
Reply With Quote
Old 07-23-2009, 09:19 AM   #8
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Welcome to the forums! Most likely the addon indicators are stored in a custom assembly, best would be to contact the developer / vendor directly. If you just want to remove them, please use the File > Utilities > Remove NinjaScript assembly commend.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 07-23-2009, 10:38 AM   #9
rklavohn
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default Found a way to fix this problem

I tried to use the removal tool to fix this but ended up with the same error. I tried inporting the indicators again and that did not work either. So I was able to find where the assembly was stored and took a chance that just deleting that would fix the problem which it did. I was then able to inport the indicator that I needed from another piece of software.

Thanks for the help
rklavohn is offline  
Reply With Quote
Old 10-02-2009, 12:51 PM   #10
subterfuge
Senior Member
 
Join Date: Nov 2008
Posts: 117
Thanks: 0
Thanked 0 times in 0 posts
Default

Hmmm...im getting this error now.
Not knowing a thing about coding i thought id try to add an alert to an indicator bacuse unfortunately nobody here would help me. o obviuosly failed and closed it when it didn't compile. Since then I've tried to import a new indicator but get the message: "You have custom ninjascript files on your pc that have programming errors. These errors must be resolved befoer you can import a ninjascript archive file"

I took the previous advice of:
Open NinjaTrader
From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
Select an indicator and double click on it.
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 were you can find the error locations.
From there you have the option to remove the indicator or debug it.

but cant find where to REMOVE the indicator,

thanks

edit: hmmm...i think ive foind how to 'delete' it now but when i try its saygin "this file is likely reference by other ninjascript files and these dependecies need to be removed first"

i dont know what that means.
Last edited by subterfuge; 10-02-2009 at 12:54 PM.
subterfuge is offline  
Reply With Quote
Old 10-02-2009, 12:56 PM   #11
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Please check into this link where all steps are discussed in detail -

http://www.ninjatrader-support2.com/...ead.php?t=4678

You can delete an offending script by going to

Tools > Edit NinjaScript Indicator OR Strategy and then point to the script where the error was found and click on 'Delete'.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-02-2009, 12:58 PM   #12
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Quote:
edit: hmmm...i think ive foind how to 'delete' it now but when i try its saygin "this file is likely reference by other ninjascript files and these dependecies need to be removed first"

i dont know what that means.
That would mean you call the offending indicator in another script > you would need to delete the 'calling' indicator first and then you can delete the other one.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-02-2009, 01:01 PM   #13
subterfuge
Senior Member
 
Join Date: Nov 2008
Posts: 117
Thanks: 0
Thanked 0 times in 0 posts
Default

how do i find the 'calling' indicator?

other than the indicator that i tried to do myself and messed up, there are lots of other indicators that all work fine. There's nothing else that i want to delete other than the file i names 'fg'...
Last edited by subterfuge; 10-02-2009 at 01:08 PM.
subterfuge is offline  
Reply With Quote
Old 10-02-2009, 01:07 PM   #14
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

You would need to check the scripts you produced, there's unfortunately no listing of this.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-02-2009, 01:23 PM   #15
subterfuge
Senior Member
 
Join Date: Nov 2008
Posts: 117
Thanks: 0
Thanked 0 times in 0 posts
Default

Heres what i did:
I opened 'indicator A' and copied the code. I thhen closed the window
I then opened 'indicator B' and copied the code and closed the window.
I then made a new indicator. Pasted all of the copied code in. Jiggled it around hoping to get the indicator i wanted. Obviously didn't compile. I then gave up and closed the window. Thats when the errors started.

Are you saying that I need to delete both indicators A and B (that work fine) and then delete my pile of crap that i tried to make? Im very lost. My fault for playing with things i know nothing about, but then everyone kept telling me to try it myself, lol!
subterfuge 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 on Import NinjaScript Fernando Charting 3 08-09-2009 11:23 AM
error when import ninjascript leontancfa Miscellaneous Support 7 07-14-2009 09:18 AM
NinjaScript Import Error Learning1 Miscellaneous Support 6 01-08-2009 10:37 AM
NinjaScript Import Error MiniDowTrader General Programming 4 02-13-2008 11:13 AM
NinjaScript Import Error TAJTrades Miscellaneous Support 4 01-03-2008 09:01 AM


All times are GMT -6. The time now is 07:09 AM.