'Override (**mandatory**) to get notified when new bars are available. The default implementation raises an Exception.
**This is the method to override to enter your trading logic and enter/exit positions**.
:param bars: The current bars.
:type bars: :class:`pyalgotrade.bar.Bars`.'

@abc.abstractmethod
def onBars(self, bars):

    raise NotImplementedError()
