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
Varad Kabade
Varad kabade
Hi Ricky bobby, We need to warm up the indicators, even the research environment. Refer to the attached notebook and the following documentation regarding using the indicators in the research environment.
Best,
Varad kabade
Ricky bobby
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!