NexusFi: Find Your Edge


Home Menu

 





Problem NT can't reconnect after 24h disconnect


Discussion in NinjaTrader

Updated
    1. trending_up 4,381 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
siscop
germany
 
Posts: 19 since Sep 2009
Thanks Given: 16
Thanks Received: 4

Hi,
I have a problem with the 24h disconnect of TWS(IB). I placed it at 07:00 German time and handled it from TWSstart that it restarts TWS right after it disconnects.
NT however has a problem reconnecting back to TWS.
Since this should be a noobproblem I would like to know how you guy handled this problem…


sis


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Iran War Prediction Markets: Ceasefire 16%, Ground Invas …
Prediction Markets & Event Contracts
Iran Ceasefire Surges to 19.5% on US 15-Point Plan -- 82 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557


siscop View Post
Hi,
I have a problem with the 24h disconnect of TWS(IB). I placed it at 07:00 German time and handled it from TWSstart that it restarts TWS right after it disconnects.
NT however has a problem reconnecting back to TWS.
Since this should be a noobproblem I would like to know how you guy handled this problem…


sis

I handled it by dumping IB (and TWS) and switching to Amp and Zen Fire. This was just one of many, many annoying and stupid problems with NinjaTrader and IB. Since I stopped trading equities and moved to futures only, I really no longer needed (nor wanted) IB.

As a plus, Zen has superior data and far superior integration with Ninja.

There was a hack around somewhere (try google) to modify the IB TWS .ini file somewhere to trick it into never forcing an exit/close. But it was a poor hack, you had to re-hack each time you made any changes inside of TWS.

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,756 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,632


Hack or not, it will not change the fact that if TWS is not restarted every days, after 2 or 3 days open, strange things happens. I used to modify by hand the logout time, but I was always losing the datafeed.


Follow me on X Reply With Quote
Thanked by:
  #4 (permalink)
siscop
germany
 
Posts: 19 since Sep 2009
Thanks Given: 16
Thanks Received: 4

well that is bad...
isn't that a nogo? there has to be a solution since so many people use NT on IB for automated trading.
i am a CFD kid who changes from MT4 to NT. Till now NT didn't make that a good impression.
MT4 can't go on stocks and thats where I wanted to go.


Reply With Quote
  #5 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,756 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,632

For stocks, IB still a good solution.
You don't trade stocks 24/24 5/7, so restarting TWs once a day is not a problem.
And are you ready for a full automated trading system, without an eye on it, just to check that all is fine ? Very risky...


Follow me on X Reply With Quote
Thanked by:
  #6 (permalink)
siscop
germany
 
Posts: 19 since Sep 2009
Thanks Given: 16
Thanks Received: 4

I have found a solution it is called "IBControllerV2_6" will test it next week. This tool should deactivate the 24h shutdown so NT will not loose the connection.

I am auto trading with MT4 on FX and DAX. I see stocks as the "high-end" of trading and hope to get a foot there soon.
My auto trades have a lot of different exits strategies and money management included. I find it however very hard to write/compile it into NT since NT is really bad on backtesting. If you want to backtest something tickbytick I have to include this feature in my code and I am concentrating on that instead on my strategies. My homebase is MT4 and it is easier realized there. It automatically backtest tickbytick without modifying the code. But MT4 broker are in major marketmaker and I really want to get serious in trading and can’t see that when the broker is playing with you only because they are on the other side.
So I was hoping to find the solution in NT since this software supports:
-tickbytick backtesting (even when you have to modify the code)
-crossmarket strategies
-multitimeframe strategies
-global variables
-…
There aren’t a lot of SW out there what supports this features. I have tried amibroker but I can’t seem to get familiar with the language. Amibroker has portfolio backtesting which I think is a nice feature.


It would help me a lot if anyone can give me a hint how I can backtest tickbytick (or minute by minute) without changing my code or only with little modification.


Reply With Quote




Last Updated on September 5, 2009


© 2026 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 - Downloads - Top
no new posts