View Full Version : Compile Errors on Upgrading to NinjaTrader v7.0.1000
TheCatMan
12-01-2010, 05:54 PM
I've been using NinjaTrader v7.0.0.23 while getting ready for the final release. Today, I installed v7.0.1000 over the prior version in which there weren't any compile errors. On opening the productin version, get an error message that there were compile errors. When I manually try to compile the scrips I get compile errors for the following indicators: @DoubleStochastics.cs, @Sochastics.cs and @StochasticsFast.cs. Since I use the Stochastics indicator on my charts none of the indicators on any charts will load in the new version. Find attached a screenprint of the error.
NinjaTrader_Chip
12-01-2010, 11:40 PM
Hello TheCatMan
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.
1. Open NinjaTrader
2. From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
3. Select an indicator and double click on it.
4. A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
5. 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.
More information regarding debugging can be found at the link below:
http://www.ninjatrader-support2.com/vb/showthread.php?t=3418
TheCatMan
12-02-2010, 02:25 AM
As these three indicators are system indicators, the editor won't let me edit or delete them. Plus, I need the Stochastic indicator. Is there a revised Stochastic indicator that will work with the production version of NinjaTrader? I tried rolling back to 7.0.0.23 (RC1), but I can't do that either. Is the only solution to completly uninstall 7.0.1000 and start over? Will the indicators compile properly if I do that?
Randwulf
12-02-2010, 06:23 AM
I too have experienced the exact same problem.
Installed 7.0.1000 over 7.0.0.23 (RC1) and got the exact same errors.
Looked at the coding for all three Stochastics indicators and it appears to not like
any of the lines that contain any form of the word "Compare" which were found in all 3 indicators.
P.S. Where might I find the instructions for correctly uninstalling NT7 completely for a re-installation ?
PPS I removed Stochastics, StochasticsFast & DoubleStochastics (after backing up)
and can now install and compile my other indicators and strategies. Not that this is a solution. It's just an observation. I still plan on uninstalling completely and re-installing.
Same thing here people. They are crappy indicators anyway. OK to delete??
Install also left old NT7 shortcut icon on desktop so now I have 2. :rolleyes:
Update, removed 3 bad NT indicators, compiled, saved.
Closed NT7 and restarted NT, NT is now attempting to do another install, is this correct???
Please advise??? Do I continue??
Never mind, accepted the upgrade and got my charts back.
Make sure to say no to saving when exiting NT after removing bad indicators.
Finishing the install reloaded the bad indicators again.
I deleted them again. LOL!!!! You people are so funny!!!
RJay
TheCatMan
12-02-2010, 08:44 AM
I uninstalled NinjaTrader 7 and manually deleted the NinjaTrader 7 folder from documents folder. I then installed the new version and all of the compile errors went away. After that I restored my templates, data and workspaces from backup and all is fine now.
fredb987
12-02-2010, 10:00 AM
I'm also experiencing the same exact issues with compile errors in @Stochastics.cs, @DoubleStochastics.cs, and @StochasticsFast.cs. This is after upgrading to R1 from 7.0.0.23.
I deleted the indicators and the problem went away. This is a workaround, not a solution - especially if you need to use those indicators.
Also, after deleting, I re-ran setup.exe and selected the "repair" option. This reinstalled the deleted indicators and the problem is occurring again.
NinjaTrader_ChristopherJ
12-02-2010, 10:19 AM
I'm also experiencing the same exact issues with compile errors in @Stochastics.cs, @DoubleStochastics.cs, and @StochasticsFast.cs. This is after upgrading to R1 from 7.0.0.23.
I deleted the indicators and the problem went away. This is a workaround, not a solution - especially if you need to use those indicators.
Also, after deleting, I re-ran setup.exe and selected the "repair" option. This reinstalled the deleted indicators and the problem is occurring again.
Please use the steps I have provided below to resolve the issue:
Close NinjaTrader
Documents
NinjaTrader 7
Open the bin folder
Open Custom
Open Indicator
Save the attached files to this folder. If propmpted please overwrite or replace any existing file with this name
Restart NinjaTrader
Please let me know if the issue persists after this procedure.
Please use the steps I have provided below to resolve the issue:
Close NinjaTrader
Documents
NinjaTrader 7
Open the bin folder
Open Custom
Open Indicator
Save the attached files to this folder. If propmpted please overwrite or replace any existing file with this name
Restart NinjaTrader
Please let me know if the issue persists after this procedure.
Saves files and attempted to compile the new indicators.
Same problem, :confused: deleted newly downloaded files off of NT7.
Randwulf
12-02-2010, 10:56 AM
I did exactly what you recommended Christopher.
On restarting, my workspace came up fine with all indicators working as I had left them.
I checked the indicator list for the Stochastics indicators and they weren't available, as expected.
I tried re-compiling the Stochastics indicator and got the original error messages but, this time, my setup still works as it was configured before reloading the Stoch indicators. I've attached my error messages....
NinjaTrader_ChristopherJ
12-02-2010, 02:12 PM
Please use the steps I have provided below add/replace the BarsTypes file:
Close NinjaTrader
Documents
NinjaTrader 7
bin
Custom
Open the Type folder
Save the attached "@BarsTypes" file within this Type folder
Restart NinjaTrader
Please let me know if the issue persists after this procedure.
Randwulf
12-02-2010, 02:48 PM
Replaced BarsType file as instructed.... No Joy
Same errors reported when trying to compile any of the Stochastics indicators..
NinjaTrader_Josh
12-02-2010, 04:01 PM
Guys,
Please be aware that the old version of those indicators will not work with the new release. You will need to use new versions of the indicator if you are on R1 or old versions if you are on an older release. You cannot mix and match the two.
raycam
12-03-2010, 04:53 PM
RyanM, sorry I tried exactly this course of action and it did not work. I get exactly the same error messages.
raycam
TheCatMan
12-03-2010, 07:39 PM
As noted earlier in this thread, the only way to get rid of the errors is to completely uninstall earlier versions of NinjaTrader. I tried everything mentioned here plus some and couldn't get rid of the errors until I did so.