TA-Lib pattern recognition
Steven Veenma last edited by
This is my first post on this forum. Let me first say that I like Backtrader very much. I've already tested different strategies and built my own indicators. So please keep up the good work!
I want to test pattern recognition and so I read the documents on the TA-Lib integration. First I tested some other TA-Lib indicators like
self.pattern = bt.indicators.TRIX(self.datas)
that worked well. But I can't get the pattern recognition to work. The examples shows:
bt.talib.CDLDOJI(self.data.open, self.data.high, self.data.low, self.data.close)
This returns an error: module 'backtrader.talib' has no attribute 'CDLDOJ.
I tried other variants like
but that doesn't work either.
There is a remark on this type of indicators:
Indicators which output a CANDLE (all those looking for a candlestick pattern) deliver a binary output: either 0 or 100. In order to avoid adding a subplot to the chart, there is an automated plotting translation to plot them over the data at the point in time in which the pattern was recognized.
I have used boolean like indicators before so this should not be a problem.
How to get these pattern recognition to work.?