File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,8 @@ def __init__(
123
123
self .diversification ,
124
124
self .min_weights ,
125
125
self .max_weights ,
126
+ self .expected_returns ,
127
+ self .risk_model
126
128
)
127
129
128
130
@@ -808,6 +810,8 @@ def make_rebalance(
808
810
div ,
809
811
min ,
810
812
max ,
813
+ expected_returns ,
814
+ risk_model ,
811
815
) -> pd .DataFrame :
812
816
sdate = str (start_date )[:10 ]
813
817
if rebalance [0 ] != sdate :
@@ -850,6 +854,8 @@ def make_rebalance(
850
854
diversification = div ,
851
855
min_weights = min ,
852
856
max_weights = max ,
857
+ expected_returns = expected_returns ,
858
+ risk_model = risk_model ,
853
859
)
854
860
855
861
except TypeError :
@@ -863,6 +869,8 @@ def make_rebalance(
863
869
diversification = div ,
864
870
min_weights = min ,
865
871
max_weights = max ,
872
+ expected_returns = expected_returns ,
873
+ risk_model = risk_model ,
866
874
)
867
875
868
876
output_df ["{}" .format (dates [i + 1 ])] = portfolio .weights
@@ -878,6 +886,8 @@ def make_rebalance(
878
886
diversification = div ,
879
887
min_weights = min ,
880
888
max_weights = max ,
889
+ expected_returns = expected_returns ,
890
+ risk_model = risk_model ,
881
891
)
882
892
883
893
except TypeError :
@@ -890,6 +900,8 @@ def make_rebalance(
890
900
diversification = div ,
891
901
min_weights = min ,
892
902
max_weights = max ,
903
+ expected_returns = expected_returns ,
904
+ risk_model = risk_model ,
893
905
)
894
906
895
907
output_df ["{}" .format (TODAY )] = portfolio .weights
You can’t perform that action at this time.
0 commit comments