-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Pattern rec functions return all zeros #665
Comments
I mean, returning zeros isn't unusual. Do you think that test case should return non-zero? |
Here is a more extreme example... and it could just be that the code algo is different than what I was using as a learning example: https://commodity.com/technical-analysis/morning-star/ Day 4, sharply down (27 to 20) data = { I've tried various penetration values... from .1 to .3 Am I misunderstanding how it should work? |
It seems that the issue arises because some fixed rules, such as criteria for determining whether a candlestick is a long, medium, or short bearish one, are hardcoded in the pattern recognition function. Is it possible to modify these hardcoded criteria into parameters that everyone can adjust according to their needs? update: |
Not sure if I am misunderstanding something... but I am getting all zeros for many pattern rec functions...
numpy v1.26.4
pandas v2.2.2
TA-Lib v0.4.28
example code:
Results:
Open Prices: [22. 21. 20. 18. 16. 16. 18. 19. 20. 21. 22. 23. 24.]
High Prices: [23. 22. 21. 19. 17. 17. 19. 20. 21. 22. 23. 24. 25.]
Low Prices: [21. 20. 19. 17. 15. 15. 17. 18. 19. 20. 21. 22. 23.]
Close Prices: [21. 20. 18. 16. 16. 18. 19. 20. 21. 22. 23. 24. 25.]
Morning Star Pattern: [0 0 0 0 0 0 0 0 0 0 0 0 0]
The text was updated successfully, but these errors were encountered: