For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

Live Trading with IB - Order outside RTH

  • 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!


  • administrators

    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:

Log in to reply