Fully automated futures trading

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

  1. Thank you for your reply.
    So i relaunched the code this morning after market open and now it says : RROR 1 10268 The 'EtradeOnly' order attribute is not supported. but the program continues to run without stopping and no barcket order triggered.
    Here is what i did: i added the two last lines
    parent = Order()
    parent.orderId = orderId
    parent.orderType = "LMT"
    parent.lmtPrice = 3843
    parent.action = "BUY"
    parent.totalQuantity = 1
    parent.transmit = False
    #parent.eTradeOnly = None
    #parent.firmQuoteOnly = None
    i continue to investigate...
     
    #3621     Dec 30, 2022
  2. In fact, the code is working even if there is an error message. maybe the tws version is not the latest one.
    So the code send buy lmt but not sell lmt nor sell stp.
     
    #3622     Dec 30, 2022
  3. Everything works now.
     
    #3623     Dec 30, 2022
    easymon1 likes this.
  4. To flesh out this research programme, which it looks like I will be attacking first:

    - what is the relationship between instrument costs and optimal trend trading speed? This is something inspired by a podcast interview of an ex-employee of mine, which I also discuss very briefly in the new book
    - how are costs affected as they pass through the layers of position sizing, buffering (static system) and cost penalty (dynamic optimisation)
    - given that, whether it is practical to run a fast MR system that will affect the positions held at the margin
    - the effect of delaying the core trading system trades by up to a week (rough holding period of MR system)
    - given that, wether adding an execution layer of the type in the AQR paper with the MR system would make sense

    Rob
     
    #3624     Dec 31, 2022
    wopr, Kernfusion and KevinBB like this.
  5. KevinBB

    KevinBB

    Interesting, and thanks. The AQR paper and its implementation, whether it be applied to my static system or other DO type systems, is a matter of discussion at the moment.

    I'll look forward to reading your insight into this matter.

    KH
     
    #3625     Dec 31, 2022
  6. lore

    lore

    I had a question and was hoping someone here would know the answer instead of waiting for IB support to answer.
    I tried to buy a Eurex future (EU-OIL in pysystemtrade or SXEP Mar17'23 in IB) for the first time and got an error message.

    Order rejected - reason:No Trading Permission, Regulatory Restriction. Please contact customer service for assistance.

    I am subscribed to Eurex market data and have trading permissions for futures in all the markets listed in the "Trading Permissions" page (e.g. Europe, Asia, etc). There is another entry for "Futures Options" that I haven't requested. This appears to be another product, but am I wrong? Are there some European equity future options that U.S. traders cannot trade similar to what Rob says happens with the US equity sector futures?

    Thanks in advance for your help!
     
    Last edited: Jan 19, 2023
    #3626     Jan 19, 2023
  7. newbunch

    newbunch

    #3627     Jan 19, 2023
    jtrader33 likes this.
  8. lore

    lore

    Wow, very helpful link. Well that explains that. Thanks again!

    Does "No-Action Letter Issued" mean that it is allowed for US traders, even if not "Certified"? Or disallowed along with any future not mentioned at all?
     
    #3628     Jan 19, 2023
  9. newbunch

    newbunch

    Yes.

    But occasionally other US departments, like the Treasury, restrict trading even before the CFTC takes action (Russia, for example).
     
    #3629     Jan 19, 2023
    lore likes this.
  10. blink18

    blink18

    Who exactly are US traders? US residents or also foreign residents/citizens (US non resident alien) signed at IB USA entity?
     
    #3630     Jan 19, 2023