Hi,
Can someone please show me how to actually use a candlestick pattern on quantconnect? I've tried following whats in the documentation but i'm met with errors.
I want to create something that uses 2 technical indicators + hammer candle.
Thank you
Nico Xenox
Hey Kagiso ,
Could you please provide your code so that we can assist you better?
Best,
Nico
Kagiso
Hey Nico Xenox,
Thanks for responding and for providing the template. I'm still confused with how to integrate that into the code I have just provided.
Essentially with the STO and boll bands I want to include a hammer candle so that the trades will only run when there's a hammer candle, the specified STO level and specified Boll level.
Thank you,
Kagiso
Nico Xenox
Hey Kagiso ,
good job! Now you only have to write a few lines more. To add the hammer indicator:
Here it really depends on the resolution that you want to receive the signals. If you want to get the signals more often you will have to go lower with the resolution but then you will have to change a few things in your code (updating indicators,example) → Explanation: You have a daily resolution on your ticker, the indicator that needs the minutely data cant acces this data because you're using daily data. What you will have to do is change your ticker to the lowest resolution that you're currently using and then you can simply register your other daily indicators with a consolidator.
When there is a hammer candle the value of the indicator will be one otherwise it will be 0 or something in between. To access the value you can do something like this:
When plotting:
I ran your backtest but depending on where you add the statement (mid, long) doesnt do much. I guess you either have to try it with a longer timeframe or change the resolution to Hour or Minute but for that, again, you will have to look at the links that I provided.
Kagiso
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!