Artificial Intelligence, Sentiment Analysis, Finance, Stock Market, Python.
analyzer to get the return data cerebro.addanalyzer(bt.analyzers.PyFolio, _name='PyFolio') # set initial porfolio value at 100,000$ cerebro.broker.setcash(100000.0) start_value = cerebro.broker.getvalue() # should be 100,000$ # Run the Backtest results = cerebro.run() # Print out the final result