Keep alive TWS 24x6 - IB Trader Workstation | futures io social day trading
futures io futures trading


Keep alive TWS 24x6
Updated: Views / Replies:13,938 / 29
Created: by TraderSU Attachments:4

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 4  
 
Thread Tools Search this Thread
 

Keep alive TWS 24x6

  #11 (permalink)
Identify Evaluate Execute
Mercer Island WA
 
Futures Experience: Advanced
Platform: Ninjatrader/Strategy Desk
Broker/Data: Various
Favorite Futures: TF/NQ/ES/Stocks
 
djkiwi's Avatar
 
Posts: 561 since May 2010
Thanks: 980 given, 1,524 received


medias View Post
Are you sure about this automatic restart? As far as I know, auto login/restart is not possible anymore, since IB TWS uses a "Security Code Card" verification (which IMHO is a fantastic security layer).

I prefer using the solution provided by TraderSU.

Hi. I couldn't get TWSstart to work even after emailing the developer who was very helpful by the way. I am not sure why. I have no problems with IB Gateway and works like a charm. It never logs me off. How it gets around the security card issue is it edits the TWS API and sets the auto logoff 5 minutes back. So you never get the 5 minute warning because it has automatically changed it for you via code.

Cheers
DJ

Reply With Quote
 
  #12 (permalink)
Elite Member
Montreal, Canada
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: Interactive Broker
Favorite Futures: Forex
 
Posts: 262 since Sep 2010
Thanks: 436 given, 86 received


djkiwi View Post
Hi. I couldn't get TWSstart to work even after emailing the developer who was very helpful by the way. I am not sure why. I have no problems with IB Gateway and works like a charm. It never logs me off. How it gets around the security card issue is it edits the TWS API and sets the auto logoff 5 minutes back. So you never get the 5 minute warning because it has automatically changed it for you via code.

Cheers
DJ

Hello DgKiwi

As far as I know, TWSSTART does not work with TWS that use the security card. I did not read about any new version, but mine 2.5.0.972 does not allow it.

I don't use the security card so TWSSTART work like a charm for me

Did you check the port: TWS and IBGAteway does not use the same. Look i=n your TWS api configuration and match the same value on TWSSTART. Also, make sure the the Java is in the appropriate subdirectory

Good luck

Martin
Look, Investigate, Verify, Execute

Reply With Quote
 
  #13 (permalink)
Elite Member
New York
 
Futures Experience: Intermediate
Platform: NinjaTrader, Custom Platform
Broker/Data: IB
Favorite Futures: ES, YM, Currency Futures
 
Posts: 79 since May 2010
Thanks: 46 given, 68 received



dennho View Post
I've used TWS Start with the exception of minor problems, the developer answers any support questions you may have in a timely manner.

It is also good to see other people address the stupid auto-logoff feature of TWS. Thanks for the heads up, TraderSU!

TWSStart has many great features but I've strict reservation against feeding my login id & password into any third party app. I may consider it if author makes the source-code public. But that's just me and my little schizophrenia.

Good luck.


Last edited by TraderSU; April 25th, 2012 at 01:22 AM.
Reply With Quote
 
  #14 (permalink)
Identify Evaluate Execute
Mercer Island WA
 
Futures Experience: Advanced
Platform: Ninjatrader/Strategy Desk
Broker/Data: Various
Favorite Futures: TF/NQ/ES/Stocks
 
djkiwi's Avatar
 
Posts: 561 since May 2010
Thanks: 980 given, 1,524 received

TWS

Thanks Martin, I thought that was the case with TWSStart. Therefore I did get it to work but it was not suitable for my needs. I much prefer the simple IB gateway solution whereby it just resets the autologoff time 5 minutes back. This way we don't have to mess with the security card numbers. Logging Ninja off each night and then logging back on was a real PITA.

Also TraderSUs reservations are quite valid. In fact that is one reason I like IB. I'm quite risk averse and much prefer the security code system of IB over the other brokers I use. Imagine if a malicious hacker got your user name and password and logged into your futures account and wrecked havoc placing trades and drained your account. You would have no recourse whatsoever.

Also if you use ninjatrader IB keeps orders live on their system whereas the others don't so if your PC goes down you could be in serious problems as you will have unfilled orders even if you have been stopped out during the outage. IB is the only broker that has adequate risk controls in my view although I'm now off topic again.

Cheers
DJ


Last edited by djkiwi; April 24th, 2012 at 03:13 PM.
Reply With Quote
The following user says Thank You to djkiwi for this post:
 
  #15 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


TraderSU View Post
Here is small script which will help you in keeping tws alive throughout the week. Simply copy it in "start-up folder" and stop bitching about TWS's reboot.

Trick is very simple, it will flip the AM / PM portion of your time when popup appears.

PS: You'll need AutoIt (AutoItScript - AutoItScript Website) to run this.

 
Code
#cs ----------------------------------------------------------------------------
Author: TraderSU
URL:    http://tradersu.wordpress.com/
#ce ----------------------------------------------------------------------------


Opt("TrayAutoPause", 0)
Opt("MouseCoordMode", 0) 
Opt("WinTitleMatchMode", 2)

TraySetIcon("Shell32.dll", 180)

; Live mode
Do

	WinWaitActive("Exit Session Setting")
	WinMove("Exit Session Setting", "", Default, Default, 320, 150)

    ; Switch from AM to PM & PM to AM
	If @HOUR > 12 Then
		MouseClick("left", 156, 50 , 1)
	Else
		MouseClick("left", 208, 50, 1)
	EndIf

	MouseClick("left", 135, 128, 1)
    Sleep(500)

    WinClose("Exit Session Setting")
    Sleep(2000)
    
Until 1 = 2 ; Never exit


Very cool. Should be able to convert this script to AutoHotKey and get the same functionality for those who already use that tool. Most of the commands look pretty much the same.

Reply With Quote
 
  #16 (permalink)
Elite Member
New York
 
Futures Experience: Intermediate
Platform: NinjaTrader, Custom Platform
Broker/Data: IB
Favorite Futures: ES, YM, Currency Futures
 
Posts: 79 since May 2010
Thanks: 46 given, 68 received


monpere View Post
Very cool. Should be able to convert this script to AutoHotKey and get the same functionality for those who already use that tool. Most of the commands look pretty much the same.

AHK is great if you only need UI automation. Reason why I started to use AutoIt is its networking functionalities which was required for my other goodies.

Reply With Quote
 
  #17 (permalink)
Error-prone
Bundeburg
 
Futures Experience: Intermediate
Platform: Sierra Chart
Favorite Futures: Fx
 
Posts: 76 since Mar 2012
Thanks: 24 given, 42 received

You can do the same thing with Autohotkey which has a very similar syntax. I originally got this code from someone on the Sierra Chart support board; it's not original.

The script is:

 
Code
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetBatchLines,1ms 
#SingleInstance force

SetTitleMatchMode, 2
Menu, tray, Icon, C:\Windows\system32\SHELL32.dll, 180  ;138 

SetTimer,Test4windows,10000  ; test every 10 seconds

#!^1::GoSub, ShowScriptRunning

return


Test4windows:
IfWinExist, Exit Session Setting
{
    WinActivate, Exit Session Setting
    ; Make AM to PM & PM to AM
    If A_Hour > 12 Then
        MouseClick, left, 173, 73, 1

    Else
        MouseClick, left, 223, 73, 1
        
    MouseClick, left, 149, 188, 1
    ; MsgBox, 0,, Reversed AM/PM at %A_Hour%:%A_Min%, 4
    WinClose, Exit Session Setting
    sleep,900
    WinClose, Exit Session Setting
}
return


ShowScriptRunning:
    MsgBox, 0,, Script is Running, 4
return
I have attached a compiled version for anyone who doesn't want to install authotkey itself. Its in a zip because I don't think you can add exe's to the board. If you want to check its running press Ctrl WindowsKey Alt and 1 to get a message box.



Attached Files
Register to download File Type: zip KeepTWSAlive.zip (540.3 KB, 52 views)
Reply With Quote
The following 7 users say Thank You to cusp for this post:
 
  #18 (permalink)
Trading Apprentice
London- England
 
Futures Experience: Intermediate
Platform: Workstation
Favorite Futures: Gold
 
Posts: 1 since May 2012
Thanks: 1 given, 0 received

Hi guys

New here. Also trying to get Workstation open 24/6.

Is it possible to actually have Workstation running 24/6 on a virtual server?

If so, can someone (maybe offline) talk me through how I actually get this working, I am 100% untechnical!!

Thanks a lot.

Reply With Quote
 
  #19 (permalink)
 Vendor: mytraderadvisor.com 
The Valley ANGUILLA Caribbean
 
Futures Experience: Advanced
Platform: TWS,cAlgo,MT4,Ninjatrader
Broker/Data: IB, ICMarkets
Favorite Futures: ES, CL, 6E
 
MyTraderAdvisor's Avatar
 
Posts: 74 since Apr 2010
Thanks: 16 given, 31 received

Hi Cusp
Did not work for me with Autohotkey, but works with AutoIt3.
Here the compiled version.
Thanks a lot.

I believe only in profits, not in prophets.
Attached Files
Register to download File Type: zip keepTWSalive_autiIt3.zip (280.2 KB, 40 views)

Last edited by MyTraderAdvisor; May 3rd, 2012 at 04:38 PM.
Reply With Quote
 
  #20 (permalink)
Elite Member
New York
 
Futures Experience: Intermediate
Platform: NinjaTrader, Custom Platform
Broker/Data: IB
Favorite Futures: ES, YM, Currency Futures
 
Posts: 79 since May 2010
Thanks: 46 given, 68 received

Small tweak


This tweak fixes the extra ghosty click on TWS ; I call it ghosty because I could never re-produce it but very often I was finding a pending trade on my TWS (caused by an extra left click on bid/ask). Adding an extra messagebox with 10s timeout seems to resolve this issue.

I've included the source code & 32-bit compiled EXE inside the zip for those who don't want to install AutoIt.

Enjoy!

Attached Files
Register to download File Type: zip TWS_KeepAlive.zip (280.7 KB, 162 views)
Register to download File Type: txt TWS_KeepAlive.au3.txt (861 Bytes, 170 views)

Last edited by TraderSU; May 4th, 2012 at 08:51 PM.
Reply With Quote
The following 7 users say Thank You to TraderSU for this post:

Reply



futures io > > > > Keep alive TWS 24x6

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Booktrader in TWS Zwaen IB Trader Workstation 4 September 9th, 2012 09:21 PM
Other platforms more or less buggy than TWS? maxplanck Platforms and Indicators 2 November 11th, 2011 04:38 AM
RIP Free Markets? Huge Debt Could Keep Intervention Alive Quick Summary News and Current Events 1 May 31st, 2011 08:03 PM
TWS with Ninja and Multicharts cleon IB Trader Workstation 8 March 22nd, 2011 03:56 PM
Keep IB's TWS Running 24x5 TraderSU Trading Reviews and Vendors 2 July 23rd, 2010 12:29 AM


All times are GMT -4. The time now is 12:16 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-15 in 0.13 seconds with 20 queries on phoenix via your IP 54.226.34.209