IB - Booktrader 906 no more single click!

Discussion in 'Interactive Brokers' started by atrocious, Jun 14, 2010.

  1. mark1

    mark1 Guest

    I think i forgot to tell you...lol:
    Did you edit the above mentioned bat file?
    Right click it and select edit in the context menu.


    this is how mine looks :
    :: configuration file, set them here (do not encrypt the password):

    set TWSUSERID=
    set TWSPASSWORD=


    :: The folder containing the IBController files:

    set IBCDIR=C:\IBController


    :: The location and filename of the IBController configuration file:

    set IBCINI=C:\IBController\ibcontroller.ini


    :: The folder where TWS is installed:

    set TWSDIR=C:\Jts\


    :: The classpath for TWS. The value below is correct for versions of
    :: TWS up to and including Build 903.7 (you can verify which version
    :: of TWS you are using by going to the Help | ABout Trader Workstation
    :: menu in TWS).
    ::
    :: For later versions of TWS, the information needed may change.
    :: You can find the required information in the shortcut created when you
    :: installed TWS. To locate this, right click on the start menu entry for
    :: TWS and click Properties. In the field labelled 'Target', select
    :: everything after "-cp " up to the first subsequent space character,
    :: then press Ctrl-C to copy it to the clipboard, then paste it into the
    :: following command, replacing everything after the "=" character:

    set TWSCP=jts.jar;pluginsupport.jar;hsqldb.jar;jcommon-1.0.12.jar;jfreechart-1.0.9.jar;jhall.jar;other.jar;rss.jar;riskfeed.jar


    :: Other Java VM options for TWS. You can find this information in the
    :: shortcut created when you installed TWS. (Note that in the shortcut,
    :: jclient.LoginFrame is NOT part of the Java options, nor is anything
    :: that comes after it, so don't include that here):

    set JAVAOPTS=-Dsun.java2d.noddraw=true -Xmx512M


    pushd %TWSDIR%
    java.exe -cp %TWSCP%;%IBCDIR%\IBController.jar %JAVAOPTS% ibcontroller.IBController %IBCINI% %TWSUSERID% %TWSPASSWORD%
    popd

    **----------------------------------------------------------------------------------------**
    Pay attention at what comes after "set"

    I don't remember if I changed the name of my . ini file , make sure to match the letter case of your paths and files

    ( I installed it a while ago so I don't remember exactly , sorry ;) )
     
    #221     Dec 6, 2010
  2. mark1

    mark1 Guest

    I also asked a friend of mine to make a video to explain exactly how to install it a few weeks ago... I'm still waiting. Can't even trust your mum nowadays :D
     
    #222     Dec 6, 2010
  3. Thanks Mark,

    I did not change the bat file until your post. I tried that and it still does about the same thing.

    Bummer, probably something easy and simple but I have never worked with these types of files.


    Do you know any way to see a log of whats happening so I may look for what I did wrong?



     
    #223     Dec 6, 2010
  4. mark1

    mark1 Guest

    I don't know any way to see a log, sorry.

    Now here is late and I gotta go, tomorrow though I can try to reinstall it from scratch and make a quick video so everyone can see how to install it.

    I will post it at the end of the session, cya tomorrow
     
    #224     Dec 6, 2010
  5. Mark,


    Thanks for your help.

    I was able to get your script up and running. It appears based on the thread that the java solution may be faster but yours works great.

    It would have been nice if IB left the "armed" checkbox because I wonder how often I will make a trade due to accidentally hitting the mouse button (i normally have left 5-6 book traders open at a time. I guess I will shrink them when not in use.

    Thanks again

    Robert



     
    #225     Dec 6, 2010
  6. Hi Mark,

    I found an interesting but small "bug" with the hotkey script at least on my computer. I found that if the book trader is on the far left (again I have four monitors on this computer) that the confirmation box stays there and basically I lose control of the mouse. I need to hit the esc button to be able to move the mouse again. once I move the book trader from the far left it works fine. Even the far right doesn't create an issue.

    Maybe its just my setup of monitors and/or position, video cards??

    Now I just need to find a booktrader /DOM for Graybox (Hold brothers) and I can make the jump over to them from IB

    Thanks again

    Robert
     
    #226     Dec 6, 2010
  7. mark1

    mark1 Guest

    Yup , that's the problem I was trying to solve yesterday.
    I think I found a solution ...see next post
     
    #227     Dec 7, 2010
  8. mark1

    mark1 Guest

    Auto_Confirm_v5.exe

    WHEN YOU INSTALL A NEW TWS BUILD, ALWAYS TEST THIS SCRIPT IN CASE THEY CHANGED SOMETHING.

    -tested on TWS build 910.9
    -Now it should work with any single or multimonitor configuration.
    -Position of Booktrader on the screens doesn't affect proper execution
    -Added Pause hot key to toggle/pause the script (sort of a panic button in case something goes wrong).You can pause it as usual from the tray icon (icon turns red)
    -You can change the hotkey to Win+P or Win+"any letter" (read the source with notepad to see how), but then you have to recompile it OFC.
    -Source code released so you can be 100% sure there's no nasty stuff inside and compile it yourself.
    -I added comments to each line of code so you can see what it does (comments after semicolon ";")

    Enjoy and let me know if you find bugs
     
    #228     Dec 7, 2010
  9. mark1

    mark1 Guest

    Re: the video to install the java app posted by Asterix, maybe tomorrow ok? :D
    Anyone wants fries too ? lmao
     
    #229     Dec 7, 2010
  10. pev

    pev

    Thanks very much for your contributions Mark!

    I am running version 911.3. Using your latest (version 5 script), after I click on buy/sell column in booktrader, the confirm order dialog does get clicked and the order is entered, but then the booktrader's quote panel configurations window opens up for some reason.

    Not sure if this a bug or something related to my configuration. Any ideas?
     
    #230     Dec 7, 2010