Fully automated futures trading

Discussion in 'Journals' started by globalarbtrader, Feb 11, 2015.

  1. jiikoo

    jiikoo

    For trading I would, but for updating rollcalendars and backtesting more data than a year from IB is needed.
     
    #3781     Aug 13, 2023
  2. I do hope that you know that you can download historical data on expired futures contracts from IB. This enables you to look much further back in history. If you prefer to use another data provider that's also fine. But be very cautious in combining data from multiple sources into one. That is often a recipe for disaster.
     
    #3782     Aug 13, 2023
  3. blink18

    blink18

    Is there any advantage in costs between fixed and tiered commission at IB? Which one do you prefer for account 100K>1M ?
     
    #3783     Aug 13, 2023
  4. jiikoo

    jiikoo

    I'm afraid I didn't know.. I'd be more than happy with just IB. Could you point to right direction with a link to documentation etc?
     
    #3784     Aug 14, 2023
  5. Downloading historical data for a futures instrument consists of two steps:
    Step 1. Obtain a list of all contract conid's (their unique identifier number), using method reqContractDetails().
    Step 2. For each conid download the historical data, using method reqHistoricalData()

    The trick is in step 1: usually you will only get a list of conid's which have not yet expired. However, if in the Contract specification you add the field IncludeExpired=true you will also get all conid's of contracts which expired in the last two years. You can then get the historical data for these contracts, and thus look back further into the past.

    https://interactivebrokers.github.io/tws-api/contract_details.html
    https://interactivebrokers.github.io/tws-api/historical_bars.html
     
    #3785     Aug 14, 2023
  6. Hi Rob,
    I was taking a look at your reports and saw you are currently long JPY. This was quite surprising, since I'd say all CTAs are currently short (trend and carry signals aligned) and, if I interpret the reports correctly, also your weight before dynamic optimization would be short (looks like all substrategies are short, except the mean reversion one which is long).

    So I was curious if you have any idea why the dynamic optimization resulted in a long allocation. Maybe it's because JPY is negatively correlated with CNH, TOPIX and NIKKEI (on which you are long) and positively with bonds (on which you are short)?

    Thanks
     
    #3786     Sep 13, 2023
  7. In theory it's impossible to have a position in the opposite direction to the forecast, negative correlation be dammned, so the most likely explanation (assuming no bugs - which is a heroic assumption!!!) is that I haven't traded because of the buffer since the system went short JPY.

    I notice actually that my system wants to sell 2 contracts of JPY today taking it short, so maybe it heard you.

    Rob
     
    #3787     Sep 13, 2023
    younggotti likes this.
  8. lore

    lore

    Has anyone been able to get this back online? I found a NIFTY50 futures contract in IB on NSE but when I update the PST IB config file with new symbol, exchange, currency, I still can't pull any data. Thanks.
     
    Last edited: Sep 16, 2023
    #3788     Sep 16, 2023
  9. What config parameters are you using?

    Rob
     
    #3789     Sep 20, 2023
  10. jaacobl

    jaacobl

    Hey Rob,

    I have access to intraday tick data and am interested in adapting your momentum models to trade at a higher frequency. Have you ever attempted this, and if so, do you have any suggestions? One thing that I’ve noticed is that forecasted volatility can be wildly inaccurate depending on time of day (i.e. around market open for index futures). How would you go about handling this? Thanks in advance and appreciate all your content.
     
    #3790     Sep 20, 2023
    jtrader33 and newbunch like this.