Looking for a way to automate a system on Interactive Brokers

Discussion in 'Automated Trading' started by Timetwister, Jan 4, 2019.

  1. ZBZB

    ZBZB

    In October IB added a new feature so you only have to login once a week.

    https://financefeeds.com/interactive-brokers-adds-auto-restart-feature-tws-platform/

    For years before that there were two programs that logged you in automatically. TWSstart I think one of them was called.
     
    #11     Jan 4, 2019
    tommcginnis and fan27 like this.
  2. It's done before trading. It doesn't need to be ultra precise, if it's say 15 seconds before I trade, it's fine.

    I'm subscribed to data, it is updated enough for me, I don't need nanosecond precision.

    That sounds promising. For the system I only need 3 prices from IB: index, first monthly future, second monthly future. Then I can manually set the market days until expirations and the formula would determine what the bot has to buy/sell/hold.
     
    #12     Jan 4, 2019
  3. fan27

    fan27

    I don't know how this will affect your strategy, but one option would be to run your formula after the market closes and place your trades for the following open. This would drastically reduce the overhead for your strategy.
     
    #13     Jan 4, 2019
  4. I thought about that, I could do it manually in that case. The problem is that my strategy is backtested on close prices, so I prefer to stick to that.
     
    #14     Jan 4, 2019
  5. tommcginnis

    tommcginnis

    I've been taking 4:00pm ET as the close, and then working the signals through 4:15. Works pretty sweet. :thumbsup:
     
    Last edited: Jan 4, 2019
    #15     Jan 4, 2019
  6. fan27

    fan27

    How hard is it to enter at the following open instead of the close for the backtest? I would expect it to be a trivial change.
     
    #16     Jan 4, 2019
  7. I'd love to know, but I don't have open prices. You are probably right, but just in case I want to follow exactly what I have backtested (or as similar as possible, as obviously I'm not going to get close prices either, but something approximate).
     
    #17     Jan 4, 2019
  8. fan27

    fan27

    What do think is going to be more effort...getting opening prices and re-backtesting your strategy vs setting up a solution to auto trade your strategy? Essentially, you have an EOD strategy that you want to auto trade and I think you are underestimating the level of effort for setting up and maintaining an auto trading solution. Just some things to think about.

    Good luck!
     
    #18     Jan 4, 2019
    MarkBrown likes this.
  9. lindq

    lindq

    Assuming that you know in advance that you want to enter a trade at the close on a particular day, simply set a conditional trade on TWS to execute at a particular time. In your case, just before the close. Much safer that trying to rig additional software to trigger a trade.
     
    #19     Jan 4, 2019
    tommcginnis likes this.
  10. It's long to explain but unfortunately I don't have opening prices. I'd need opening prices of many products to be able to backtest everything. I suspect that trading at the open (or intraday) should change results, and I consider trading that way if I don't find any solution, but I'd prefer to just follow exactly what I have backtested.

    Unfortunately I don't know that in advance. The formula would check those futures and index prices shortly before the close and based on that and some other information (days until expiration and then some factors) it either buys/sell/holds one of two different ETF. I guess if I do that intraday (I did it sometimes when I wasn't going to be able to trade at the close) the results shouldn't change much, but I'd prefer to stick to exactly what I backtested.
     
    #20     Jan 5, 2019