NinjaTrader Support Forum  

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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 11-05-2008, 02:46 AM   #1
jtrade
Senior Member
 
Join Date: Apr 2007
Location: Amsterdam
Posts: 246
Thanks: 2
Thanked 2 times in 2 posts
Default programming error message

I reinstalled NT 6.5.1000.7 a few days ago followng a motherboard failure on my computer.

I downloaded a couple of files from your file sharing section and when I try to import I get 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 do have the MTP add-on for NT, which appears to be working correctly. So, having deleted the downloaded files, I try to remove these MTP files via Utilities>Remove NinjaScript Assembly... then I get the following error message "Remove failed....... these errors must be resolved before removing a NS assembly."

Please advise how to proceed.
jtrade is offline  
Reply With Quote
Old 11-05-2008, 07:49 AM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

Please follow these steps:
-Go to Tools>Edit NinjaScript>Indicator>click on SMA>OK.
-Press F5 on your keyboard to compile the code.
-You should now have an error message at the bottom. Double click the red error.
-This should pull up a new file. You must either resolve the errors within this new file or comment them out using "//" to the left of the code.
-Then select F5 again. You should get no errors at the bottom if you have resolved them.
-Now you should be able to compile all NinjaScript and Strategy Wizard files.
NinjaTrader_Ben is offline  
Reply With Quote
Old 11-05-2008, 08:07 AM   #3
jtrade
Senior Member
 
Join Date: Apr 2007
Location: Amsterdam
Posts: 246
Thanks: 2
Thanked 2 times in 2 posts
Default

Thank-you, Ben. The error message tells me that the KamaPivotRange.dll cannot be found. However, if I navigate to the location quoted, it is there. I do not know what this dll is for, so I tried to delete the KAMA indicator, which I do not use, but then received the "You cannot delete a system indicator message".

Please advise what to do next !?
jtrade is offline  
Reply With Quote
Old 11-05-2008, 08:48 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

KamaPivotRange.dll is most likely a 3rd party indicator from one of the 3rd party NinjaScript Consultants (http://www.kamacoder.com/default.aspx). This is a guess as to what it is, but for sure it is not the KAMA indicator.

If you have KamaPivotRange.dll what you want to do is right click in your NinjaScript Editor and select References. Then press Add to add the KamaPivotRange.dll to the list. If you do not have this you will need to find the NinjaScript that is trying to access KamaPivotRange and delete the call from tehre.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-05-2008, 09:26 AM   #5
jtrade
Senior Member
 
Join Date: Apr 2007
Location: Amsterdam
Posts: 246
Thanks: 2
Thanked 2 times in 2 posts
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
KamaPivotRange.dll is most likely a 3rd party indicator from one of the 3rd party NinjaScript Consultants (http://www.kamacoder.com/default.aspx). This is a guess as to what it is, but for sure it is not the KAMA indicator.

If you have KamaPivotRange.dll what you want to do is right click in your NinjaScript Editor and select References. Then press Add to add the KamaPivotRange.dll to the list. If you do not have this you will need to find the NinjaScript that is trying to access KamaPivotRange and delete the call from tehre.
Yes, I think this dll is the problem, but I neither know how to get to References (right clicking doesn't seem to do anything via Edit NinjaScript>Indicator, nor can i find the kamacoder NinjaScript for the KamaPivot Range indicator... where should it be, please ?

Btw, I tried to delete the dll, but my system won't let me (
jtrade is offline  
Reply With Quote
Old 11-05-2008, 09:35 AM   #6
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

When you in the indicator code, right click on the code>References (it is at the bottom of the list).
NinjaTrader_Ben is offline  
Reply With Quote
Old 11-05-2008, 09:52 AM   #7
jtrade
Senior Member
 
Join Date: Apr 2007
Location: Amsterdam
Posts: 246
Thanks: 2
Thanked 2 times in 2 posts
Default

What I'm trying to say is, being a total imbecile, I cannot find the &*^%$ Ninjascript, so I cannot follow either of Josh's suggestions....

Is the route I am taking correct ? Tools>Edit NinjaScript>Indicator, then I am thinking that I should see the KamaPivotRange indicator, double click on it and then be able to right click for References.

However, I do not see the indicator.
jtrade is offline  
Reply With Quote
Old 11-05-2008, 10:16 AM   #8
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,


Just open any strategy or indicator the way you describe below then right click>References.
NinjaTrader_Ben is offline  
Reply With Quote
Old 11-05-2008, 10:25 AM   #9
jtrade
Senior Member
 
Join Date: Apr 2007
Location: Amsterdam
Posts: 246
Thanks: 2
Thanked 2 times in 2 posts
Default

It was on the list, but I added it again just to be sure, closed the platform, reopened the platform... same issue. Please advise how i follow Josh's second suggestion, which is to "delete the call from there". I cannot find the NinjaScript for this indicator, whcih was downloaded prior to my motherboard failure. Please advise if there is a way to delete all the offending items ! Getting desperate now...
jtrade is offline  
Reply With Quote
Old 11-05-2008, 10:38 AM   #10
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

jtrade,

Go to the references page again. Now remove all instances of KamaPivotRange.dll from there. Press F5 to compile. Close NT. Delete KamaPivotRange.dll.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-05-2008, 12:56 PM   #11
jtrade
Senior Member
 
Join Date: Apr 2007
Location: Amsterdam
Posts: 246
Thanks: 2
Thanked 2 times in 2 posts
Default

Thank-you for persisting... 'done that, but now I get 8 lines of KamaPivotRange.cs errors on compiling. Essentially, the software is looking for it, so I guess that means there is a script somewhere that I am failing to delete. I have tried a computer search, but nothing comes up.

Any more suggestions, please ?
jtrade is offline  
Reply With Quote
Old 11-05-2008, 01:28 PM   #12
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

As a last resort you could always start over with NT. Here are instructions:

Uninstall NinjaTrader 6.5, AND ANY OTHER VERSION OF NINJATRADER, from the Windows Control Panel under Add/Remove Programs. (If you leave another version on your computer this could possibly interfere.)

Then delete the folder NinjaTrader 6.5. The folder is located under Start Menu--> My Documents--> NinjaTrader 6.5.

Next, search your computer for any NinjaTrader related files or folders and delete them.

After this delete any temporary internet files and windows temporary files. Open up Internet Explorer and click Tools--> Internet Options and Delete Cookies and Files

Now reboot your PC and download our latest production release from here:
http://www.ninjatrader.com/webnew/download_download.htm

Note: You want to Run the software, not Save.

After the download enter your license under Help--> License Key and also create an account connection (again) under Tools--> Account Connections.
This link has the connection guides in it: http://www.ninjatrader.com/webnew/su...tionguides.htm
NinjaTrader_Ben is offline  
Reply With Quote
Old 11-05-2008, 01:37 PM   #13
jtrade
Senior Member
 
Join Date: Apr 2007
Location: Amsterdam
Posts: 246
Thanks: 2
Thanked 2 times in 2 posts
Smile

OK, Ben... was hoping to avoid that, but will do.

J.

Edit : all done and working well.
Thanks for your support.

... and actually, it' good to completely spring clean the system from time to time...
Last edited by jtrade; 11-06-2008 at 02:09 AM.
jtrade 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
Programming Error octrout Strategy Development 1 10-22-2008 11:55 AM
Error Message Ragingbull Miscellaneous Support 5 06-28-2008 07:49 PM
Programming error message Betty Installation and Licensing 1 11-05-2007 09:09 AM
Error Message ardenb Installation and Licensing 4 04-11-2007 05:09 PM
What does this error message mean? funk101 Strategy Development 1 04-05-2007 02:42 AM


All times are GMT -6. The time now is 01:49 AM.