You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose we cannot put additional cash when margin calls (at least for now), the existing positions shall all be immediately liquidated and all opening orders shall be cancelled. The portfolio return shall not be lower than -100%.
Actual Behavior
It will still proceed backtesting, execute existing open orders if rebounce up above zero at ending of the same slice .
Potential Solution
Check the portfolio value is lower than 0 not only for end of slice, but also open or low.
Expected Behavior
Suppose we cannot put additional cash when margin calls (at least for now), the existing positions shall all be immediately liquidated and all opening orders shall be cancelled. The portfolio return shall not be lower than -100%.
Actual Behavior
It will still proceed backtesting, execute existing open orders if rebounce up above zero at ending of the same slice .
Potential Solution
Check the portfolio value is lower than 0 not only for end of slice, but also open or low.
Reproducing the Problem
The backtest on this post in discussion
System Information
N/A
Checklist
master
branchThe text was updated successfully, but these errors were encountered: