'Override (optional) to get notified when the broker is about to process new bars.
:param broker_: The broker.
:type broker_: :class:`Broker`
:param bars: The current bars.
:type bars: :class:`pyalgotrade.bar.Bars`'

def onBars(self, broker_, bars):

    pass
