Closed Schwarzschild closed 1 year ago
Also, change qsum = qsum[i:] with qsum = qsum.loc[i:] in remove_old_trades()
qsum = qsum[i:]
qsum = qsum.loc[i:]
see pnl.realized_trades() and make it work like pnl.remove_old_trades() using cumsum to find realized/unrealized boundary in df.
pnl.realized_trades()
pnl.remove_old_trades()
No longer needed since divide_trades() was added in last PR.
Also, change
qsum = qsum[i:]
withqsum = qsum.loc[i:]
in remove_old_trades()