No one has replied
I believe you need to set correct automargin parameter without modifying the class methods.
Check out the links
I am looking to backtest option strategies (i.e. long/put) using futures/index data, exactly the same question you mentioned at the beginning of this thread.
Are you able to use backtrader to backtest options based on Futures? If yes, have you find any similar article? Thanks!
That's it! Thanks very much sir!