Does anyone know why these candlestick indicators return all 0.0 values? I have tried multiple crypto pairs and equities to make sure it wasn't just a lack of patterns in the data but I don't believe the function is recognizing the patterns for some reason. Here is what I have for code.

import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import statistics
import plotly.graph_objects as go# For more information see [https://www.quantconnect.com/docs/research/overview]
qb = QuantBook()
sec = "ETHUSD"
spy = qb.AddCrypto(sec)
history = qb.History(qb.Symbol(sec), 1000, Resolution.Daily).reset_index(level=0)
df1= history[['low','high','close','open']].copy()
df1['e'] = qb.CandlestickPatterns.Engulfing(qb.Symbol(sec),Resolution.Daily)
df1['ds']= qb.CandlestickPatterns.DojiStar(qb.Symbol(sec), Resolution.Daily)
df1.head()

the output of df1 and trying to make a df from all Doji star patterns

69338_1630199688.jpg


 

Author