'Set up the backtest variables according to
what has been passed in.'

def __init__(self, config, strategy, tickers, equity, start_date, end_date, events_queue, session_type='backtest', end_session_time=None, price_handler=None, portfolio_handler=None, compliance=None, position_sizer=None, execution_handler=None, risk_manager=None, statistics=None, sentiment_handler=None, title=None, benchmark=None):

    self.config = config
    self.strategy = strategy
    self.tickers = tickers
    self.equity = PriceParser.parse(equity)
    self.start_date = start_date
    self.end_date = end_date
    self.events_queue = events_queue
    self.price_handler = price_handler
    self.portfolio_handler = portfolio_handler
    self.compliance = compliance
    self.execution_handler = execution_handler
    self.position_sizer = position_sizer
    self.risk_manager = risk_manager
    self.statistics = statistics
    self.sentiment_handler = sentiment_handler
    self.title = title
    self.benchmark = benchmark
    self.session_type = session_type
    self._config_session()
    self.cur_time = None
    if (self.session_type == 'live'):
        if (self.end_session_time is None):
            raise Exception('Must    specify    an    end_session_time    when    live    trading')
