'Takes in a portfolio handler.'

def __init__(self, config, portfolio_handler, title=None, benchmark=None, periods=252, rolling_sharpe=False):

    self.config = config
    self.portfolio_handler = portfolio_handler
    self.price_handler = portfolio_handler.price_handler
    self.title = '\n'.join(title)
    self.benchmark = benchmark
    self.periods = periods
    self.rolling_sharpe = rolling_sharpe
    self.equity = {}
    self.equity_benchmark = {}
    self.log_scale = False
