Looks good, but as a sidenote: margin_of_safety should accordingly be removed from the computation of necessary_liquidity (currently line 124 in riskmodel.py). Or, better yet, the entire expected_profits computation should be fixed or removed. This can be done in a future commit.
Looks good, but as a sidenote: margin_of_safety should accordingly be removed from the computation of necessary_liquidity (currently line 124 in riskmodel.py). Or, better yet, the entire expected_profits computation should be fixed or removed. This can be done in a future commit.