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



  • 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


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

 

});