Hi. Zigzag is the indicator, not a strategy. You should inherit from bt.Strategy and pass this class to cerebro. import backtrader as bt from custom.zigzag import ZigZag class Futures(bt.Strategy): params = ( ('period', 20), ) def __init__(self): self.zigzag = ZigZag() cerebro = bt.Cerebro() data = bt.feeds.YahooFinanceData(dataname='MSFT', fromdate=datetime(2011, 1, 1), todate=datetime(2012, 12, 31)) cerebro.adddata(data) cerebro.addstrategy(Futures) cerebro.run() cerebro.plot()