New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Squeeze Momentum Indicator #4166
Comments
Is this John Carter's TTM Squeeze? |
Yes sorry, edited for clarity |
Is there an ETA on this new indicator? |
@steve-goswell I implemented this a while ago, but haven't had time to get the tests against external data working. The exact formula for calculating momentum is not public. I based my implementation on what I could find. I think it is close enough to use as an indicator. If you compare my implementation with the indicator in your trade platform, the momentum histogram values will not match. However, increasing, decreasing, and whether you're above or below 0 should be consistent. Feel free to take a look at Squeeze.cs and SqueezeMomentum.cs in feature-4166-squeeze-momentum. |
many thanks! I'll take a look at the code. are there any plans to add this to the list of indicators? https://www.quantconnect.com/docs/algorithm-reference/indicators |
Hi @jdharmon, what is the source of the formulae you used and the data for comparison? |
@AlexCatarino Links to the formulas are in the comments.
When I developed the indicators, I used data downloaded from AlphaVantage and cross-checked against thinkorswim. In my testing, my indicators matched the indicator in thinkorswim. I only picked a few places in recent history where the squeeze fired or the histogram crossed 0. For unit testing, I used test data from one of the existing TestData files; |
spy_smi.csv Script:
|
Expected Behavior
Supports "John Carter's TTM Squeeze Momentum Indicator"
Actual Behavior
No implementation of "Squeeze Momentum Indicator"
Potential Solution
Implement "Squeeze Momentum Indicator". Add unit tests
Checklist
master
branchThe text was updated successfully, but these errors were encountered: