Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. alexbrillant
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    alexbrillant

    @alexbrillant

    0
    Reputation
    9
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    alexbrillant Unfollow Follow

    Latest posts made by alexbrillant

    • RE: Interactive Brokers Options Trading HLOC DataFeed

      found the answer ! this is how you get an option data feed. you pass in the contract with the format specified below !

      option_data_feed = ibstore.getdata('TICKER-OPT-EXCHANGE-CURRENCY-YYYYMMDD-STRIKE-RIGHT')
      

      I don't know if this works yet. Let's see. I need to get the option chain from the ib api.

      Screen Shot 2020-07-07 at 9.10.54 PM.png image url)

      posted in General Code/Help
      alexbrillant
      alexbrillant
    • RE: Sizer based on ATR

      either self.p.ATR_multiple, or self.ticker_ATR is a LinesOperation object. LinesOperation must have a property for the value that you are looking for.

      posted in General Code/Help
      alexbrillant
      alexbrillant
    • Interactive Brokers Options Trading HLOC DataFeed

      Hello backtrader community !

      I am trying to implement a data feed for option contracts.
      I would like to simply create a datafeed for a specific option contract.
      I would like to be able to buy, and sell that contract.

      From what I understood, I can trade options as an HLOC datafeed. What classe should I extend from ? Is there a more abstract class ? Should I extend this ?

      class OptionDataFeed(with_metaclass(MetaDataBase, dataseries.OHLCDateTime)):
           # should I do this ?
      

      Another question, how can I actually buy this option contract/datafeed ?

      I think that this is not included in the library. I am willing to submit a pull request if you guys want that feature for ib. However, I would like to know how this should be done with this library.

      Thanks !

      posted in General Code/Help
      alexbrillant
      alexbrillant