Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Live Trading with IB - Order outside RTH

    Indicators/Strategies/Analyzers
    2
    2
    553
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lch81592 last edited by

      Hi - May I know if there is anyway which we can switch on the "bool OutsideRth" argument in IB for the order class under the backtrader framework? I am trying to place an order outside regular trading hour however the default setting for backtrader doesn't seems to allow that. Looking through the docs does not seems to have this option to turn it on either. Many thanks!

      0_1546528522269_bb953c6f-1954-44db-9810-fd7b2caea1c2-image.png

      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by backtrader

        Docs - Live Trading - Interactive Brokers

        If the user wishes to modify this, extra **kwargs can be supplied to buy and sell following the IB documentation.
        For example inside the next method of a strategy:
        
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors