Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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
Can you help answer these questions from other members on NexusFi?
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
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.
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.
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.
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.
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:
#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.
Elite Membership required to download: KeepTWSAlive.zip
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!
Elite Membership required to download: TWS_KeepAlive.zip
Elite Membership required to download: TWS_KeepAlive.au3.txt