Feature request: Margin trades
Author: ZiinkCreated Aug 27, 2020Updated Mar 17, 2026
Labelsenhancement
I'm testing a strategy for a single stock where I buy more shares or sell some of the shares. I've set the init_capital to 1000000 so that all buy orders are recorded. In this scenario, the stats are not very helpful because most of the funds are not really being used.
It would be great to be able to specify margin limit (or simply assume infinity) and interest
Source: polakowo/vectorbt