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

Unlisted stocks handling

  • Can anyone say how Backtrader handles open positions for stocks that became unlisted during the backtesting period?
    Say I'm backtesting stock ABC along with some other stocks, and ABC become unlisted (no more bar data) during the backtesting period, obviously, the positions cant stay open and should be treated somehow.
    Any ideas how?

Log in to reply

Looks like your connection to Backtrader Community was lost, please wait while we try to reconnect.