NexusFi: Find Your Edge


Home Menu

 





NT7.0 keeps crashing


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one MrBean with 12 posts (2 thanks)
    2. looks_two Fat Tails with 7 posts (6 thanks)
    3. looks_3 Big Mike with 3 posts (1 thanks)
    4. looks_4 Zondor with 2 posts (5 thanks)
      Best Posters
    1. looks_one Zondor with 2.5 thanks per post
    2. looks_two RJay with 1 thanks per post
    3. looks_3 Fat Tails with 0.9 thanks per post
    4. looks_4 MrBean with 0.2 thanks per post
    1. trending_up 14,007 views
    2. thumb_up 17 thanks given
    3. group 6 followers
    1. forum 32 posts
    2. attach_file 1 attachments




 
Search this Thread

NT7.0 keeps crashing

  #1 (permalink)
 
MrBean's Avatar
 MrBean 
Osaka
 
Experience: Master
Platform: Ninja
Broker: IB
Trading: Stocks
Posts: 111 since Jan 2010
Thanks Given: 27
Thanks Received: 25

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.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
38 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #2 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844

In TWS make sure you have entered the trusted IP address as shown here 2011-07-12_1950 - vegasfoster's library

This is how I have ninja set up https://screencast.com/t/2YIPyHgA7U

If you've already done that, then I dunno.

Reply With Quote
Thanked by:
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



MrBean View Post
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.

I use NT 7.0 with Interactive Brokers, and occasionally IB disconnects or freezes. But this never caused NT 7.0 to crash.

Have you checked that the version of TWS is build 917.8 as recommended? And did you follow the exact settings from the connection guide?

https://ninjatrader.com/ConnectionGuides/Interactive-Brokers-Connection-Guide.php

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?

Reply With Quote
  #4 (permalink)
 britkid99 
Derby UK
 
Experience: Intermediate
Platform: Sierra Chart
Trading: Futures Options, CL
Posts: 175 since Jun 2009
Thanks Given: 105
Thanks Received: 134

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?

Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


britkid99 View Post
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.


Option A:

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.


Option B:

(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
-> workspaces
-> your data base

You cannot copy custom session templates and rollover settings for individual contract, you have to reenter them manually


Option C:

Same as option B, but before you start NinjaTrader, reinstall the latest version.

Reply With Quote
Thanked by:
  #6 (permalink)
 britkid99 
Derby UK
 
Experience: Intermediate
Platform: Sierra Chart
Trading: Futures Options, CL
Posts: 175 since Jun 2009
Thanks Given: 105
Thanks Received: 134

Thanks for the advice Fat Tails

I deleted the last indicator which I added a couple of days ago and it instantly resolved the problem.

Brit

Reply With Quote
  #7 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


britkid99 View Post
Thanks for the advice Fat Tails

I deleted the last indicator which I added a couple of days ago and it instantly resolved the problem.

Brit

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.

Reply With Quote
  #8 (permalink)
 
MrBean's Avatar
 MrBean 
Osaka
 
Experience: Master
Platform: Ninja
Broker: IB
Trading: Stocks
Posts: 111 since Jan 2010
Thanks Given: 27
Thanks Received: 25


vegasfoster View Post
In TWS make sure you have entered the trusted IP address as shown here 2011-07-12_1950 - vegasfoster's library
This is how I have ninja set up 2011-07-12_1955 - vegasfoster's library
If you've already done that, then I dunno.

Thanks but it didnt work, crashed again.


Fat Tails View Post
I use NT 7.0 with Interactive Brokers, and occasionally IB disconnects or freezes. But this never caused NT 7.0 to crash.Have you checked that the version of TWS is build 917.8 as recommended? And did you follow the exact settings from the connection guide? NinjaTrader stock, futures and forex charting software and online trading platform. [AUTOLINK]Interactive Brokers[/AUTOLINK] Connection Guide.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?

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:

" 2011-07-13 13:40:27:156 (Interactive Brokers) IB.Adapter.HandleMessage DataFarmConnectionBroken
2011-07-13 13:40:27:187 (Interactive Brokers) Cbi.Connection.ProcessEventArgs.ConnectionStatusEventArgs Connected ConnectionLost NoError Market data farm connection is broken:hkfarm(2103)
2011-07-13 13:40:27:187 (Interactive Brokers) Cbi.ConnectionStatusEventArgs.Process: Connected ConnectionLost "

It looks like an IB disconnect triggers it to crash.

What I haven't done is remove indicators, two that I use are the VolumeSTop as kindly posted on futures.io (formerly BMT) , and TCTrendingTSF as provided by TradingCoders . I cant live without them.

Started this thread Reply With Quote
  #9 (permalink)
 
MrBean's Avatar
 MrBean 
Osaka
 
Experience: Master
Platform: Ninja
Broker: IB
Trading: Stocks
Posts: 111 since Jan 2010
Thanks Given: 27
Thanks Received: 25

Just adding crash notification box image.

Attached Thumbnails
Click image for larger version

Name:	NTcrash.JPG
Views:	235
Size:	72.0 KB
ID:	43290  
Started this thread Reply With Quote
  #10 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



MrBean View Post
Just adding crash notification box image.

The crash notification box is just the Microsoft Error Reporting. It has no meaning. The message from the trace file does not show the real problem.

It is possible that you have a flawed indicator or assembly installed.

I suggest to follow the steps as listed under Option B in post #5.

Afterwards you will know whether custom indicators are causing the problem or not.

Reply With Quote
Thanked by:




Last Updated on April 13, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts