Automated trading with R on IB

Discussion in 'Automated Trading' started by SillyWilly, Apr 22, 2018.

  1. Hey everyone, I am an avid R user and want to start automated trading using the connection between Interactive brokers API and R. IB has a great IBrokers package on R but I am not to sure how I would automate the trade. Can someone point me in the right direction on where to learn how to set this up? IF you have any experience I would love to hear.
  2. 312


    Did you even Google this before posting?
    silveredge and tommcginnis like this.
  3. toc


  4. Butterball


    silveredge and tommcginnis like this.
  5. ??? I wouldn't be waiting for an answer if I could just GOOGLE it. There is very little documentation on this. 1 video that is semi useful. Clearly you know of many more resources..... Also talking and interacting with a community is much more effective then reading an article.
  6. 312


    You realize you're still reading the replies just as you would an article, right?
    tommcginnis likes this.
  7. Do you have any experience trading with R on IB? If yes, any tips you could throw my way as I go on my automated trading journey?
  8. 312


    Absolutely. Here's a good resource
    Lou Friedman and tommcginnis like this.
  9. 312


    Bottom line -- don't use anything that isn't supported by IBKR. They have several other API platforms that they support. I remember IBPy being a shitshow cause it was independently developed as the GNU R module also seems to be. Java is gonna be the best one cause it's been around the longest, but I assume Python is more similar to R than Java.

    In general, R/Matlab are good for prototyping but Python is superior for implementation.

    In fact even the Python module has poor documentation from IBKR which means you end up having to dig through the code to figure out what the hell it does.
    tommcginnis likes this.
  10. truetype


    Absolutely, and Jeff Ryan, the package author, will be at R/Finance in Chicago in early June. He's a good guy and will be happy to speak with you about where the package stands these days. I'm not sure how focused he's been on maintaining it since he started working at Citadel. He's also the author of a good though dated tutorial.
    #10     Apr 22, 2018
    SillyWilly, tommcginnis and 312 like this.