Hi Members, I am wondering if we can model a Volatility Contraction Pattern or Cup-n-Handle patterns popularized by Mark Minervini and CANSLIM methodologies. Below are few charts on how they look like:
- Volatility Contraction Pattern(VCP):
To Summarize, VCP is characterized by tightening price action towards the right side of stock chart and it is coupled by drying up of volume
- Cup-n-Handle:
It is characterized by a U shaped price action coupled with a flat Handle type formations on the right side.
I am trying to achieve it with combination of rolling window+min,max period indicators, but would love to know better approaches from the forum. Thanks!
Derek Melchin
Hi Log Up,
Consider trying to recognize the patterns with a neural network or with nonparametric kernel regression. The Journal of Finance has a paper on the latter: Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation.
Best,
Derek Melchin
Want to invest in QuantConnect as we build the Linux of quant finance? Checkout our Wefunder campaign to join the revolution.
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.
Log Up
HI Derek Melchin Thanks for the reference, however I am not from ML/Stats background hence it will be hard for me to implement it. As of now I am able to detect Volatility Contraction Patterns roughly by using records of Pivot points (sort of like above paper uses local maxima/minima).
Wolfram Arnold
Hi, @log-up, did you get anywhere with this? I have the same question.
Log Up
Hi Wolfram Arnold yes I have created a rough version of it as an exercise, let me know if you need it and also how can I share it? Thanks!
Wai
@Log-up Hello, wonder if you could share your VCP strategy exercise please? Not sure how people DM each other here on QC. How about Discord? Please look me up: pagunono#1
Thanks!
Log Up
yes sure, how shall I share it? It's been so long I coded it so maynot be remember all the details of code though…
Wai
Log Up Please either post your code here, or if you're not comfortable posting it, please look me up from on Discord as mentioned above. Or please let me know a way to PM you. Many thanks!
Log Up
Sure.
main.py
MyAlpha.py
reference.py
Let me know if it helps, Thanks!
Wai
Log Up Many thanks! I've test-run your codes and they seem to work. Will need to spend some time to look into them closely. Thanks again!
Log Up
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!