Every time IB disconnects for a brief moment (due to changeover or maintenance etc) NT crashes. I have asked support but they just tell me it's a connection problem or an IB problem or whatever problem, of course it is not NT they say, they say to get a static IP but how could that help if the problem is IB?
Does anyone have any idea how to stop it from crashing or how to get it to reopen and reconnect automatically? I'm frustrated, thanks.
Otherwise, if it crashes again, did you have a look at the log and tracefiles of NinjaTrader and the logfile of TWS? And if you say "crash", is that simply a freeze or is it NinjaTrader shutting down by itself and disappearing?
You're lucky, for the past two days I can't even get Ninja to start.
It brings up the initial front panel then nothing. I have to kill the process
but it still wont start up. Anyone else had this and solved it?
This points to a problem with NinjaScript. I suggest that you do the following.
Check log and trace files and see whether the problem can be identified. It is potentially linked to some corrupted NinjaScript files. There are some indicators, which are badly coded such as the jtEcoNews indicator which may cause an immediate crash. Eventually you can identify the problem.
(1) Rename the folder (do not delete it) My Documents -> NinjaTrader 7 to My Documents -> NinjaTrader 7 Old.
(2) Start NinjaTrader.
NinjaTrader will now recreate this folder. All your custom indicators and settings such as templates and workspaces are gone. However, they are not lost as the information is still available in the renamed folder. If NinjaTrader has correctly started you can now copy your data back into the newly created directory NinjaTrader 7. You want to copy
-> indicators and strategies
-> chart templates
-> your data base
You cannot copy custom session templates and rollover settings for individual contract, you have to reenter them manually
Same as option B, but before you start NinjaTrader, reinstall the latest version.
The following user says Thank You to Fat Tails for this post:
The problem here is that NinjaTrader compiles the Initialize() section of all indicators, even if they are not used on any chart. This is necessary to make appear the indicators in the indicator dialogue box.
If an inexperienced programmer has put some dangerous code in the Initialize() section of any of the indicators, this may prevent NinjaTrader from compiling properly.
NinjaTrader 7.0 has an option to use OnStartUp() for dangerous code, so as little code as possible should remain in the Initialize() section.
I am using IB build 917.8 as recommended and I have set up API and the IB connection exactly as recommened (and I also tried it Vegafoster's way which didnt work). I have sent trace files to support and their reaction is this " I suggest to uninstall all custom indicators except one. Run NinjaTrader for a while and check if the error recurs. If not, please import one of the custom indicators you removed and check again. Please repeat this process to determine if one of the custom indicators is causing the issue.
I do not think the disconnections cause Windows to generate such errors"
So support thinks it's not a connection problem, but look at the latest trace file at the moment of the crash: