ta-lib-python icon indicating copy to clipboard operation
ta-lib-python copied to clipboard

Patterns

Open Taram1980 opened this issue 5 years ago • 0 comments

First of all, thanks for this library. I tried using patterns from your library by adding the graphs:

inputs = { 'open' : df['open'], 'high' : df['high'], 'low' : df['low'], 'close' : df['close'], 'volume': df['value'] }

Pattern = abstract.Function('CDLDOJISTAR') df['PATTERN'] = Pattern(inputs)

list_ = [(df[df['PATTERN'] == -100].index)] data = np.array(df.iloc[:, 1:6]) candle = pd.DataFrame(data, index=pd.to_datetime(df['begin']), columns=['open', 'high', 'low', 'close', 'value'])

for i in list_[0]: print(i) display(candle.iloc[i:i+1]) mpf.plot(candle.iloc[i-10:i+11], type = 'candle')

I know DOJISTAR, but on my grahs i didnt see 'long real body', 'doji' and so on. Would you help me find out what my mistake is Thanks.

Taram1980 avatar Aug 13 '20 19:08 Taram1980