New examples for investment portfolios with cash flow in 04 investment portfolios with DCF.ipynb.
Several bugs in Portfolio and PortfolioDCF are fixed.
Fixed:
Portfolio.dcf.initial_investment_pv
must return None if cash flow parameters are not defined- add
use_discounted_values
parameterto helpers.Frame.get_wealth_indexes_with_cashflow
- use
self.use_discounted_values = False
inplot_forecast_monte_carlo
for any value of backtest parameter - clean up Portfolio dat cache if symbol changed