-
Notifications
You must be signed in to change notification settings - Fork 81
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
The algorithm does not find trends in the final intervals #11
Comments
Hi @jackure, thank you for reporting this! I already need to perform some tests over this so as to identify the problem and find the best possible solution! Please, could you send me a CSV file containing the data that produced that concrete error? Or just the trendet function call that you made? Thank you! Remember to star the repo if you found it useful and follow me at GitHub so as to get notified of all the updates! |
Just adding to this.. something does look a bit broken with the trend identification algorithm. This is the test data I've used. test = investpy.get_stock_historical_data(stock='AAPL', df = trendet.identify_df_trends(df=test, column='Close') This is the result. Also, the demonstration breaks if there is no downtrend (as in the above example). Quick fix highlighted in bold. with plt.style.context('seaborn-paper'):
|
Hi…i have fixed this….can i post an image of my code /the modified code ? |
@sunilhariharan Can you please share your code? |
The bug is in the for loop…This algo will never be able to find the last upward and the last downward local trend. |
Were you able to fix it? Can you share the code if you did? Thanks. |
Thansk @sunilhariharan ! |
Or at least copy and paste the code in here so that we can follow your logic easily. |
@sunilhariharan |
@sunilhariharan could you share the code in text please? |
…5 seconds timeout in tests to avoid getting 429 error from investing.com
@alvarobartt I've made a pull request. please check it and if everything is ok - add to master |
I tried your code. I don't think it's doing better than what we have now. I've back-tested it on several stocks, none of which showed uptrend towards the end even if there was one. |
Could you provide example data so I can backtest it too ? |
@AliAlhajji did you try my code? |
What makes an algorithm like this attractive is being able to identify the current trend of the market.
However, in all tests I've done, the algorithm ignores the final intervals.
Below I show you the result of the algorithm with smoothed data, to further accentuate the phenomenon that I mentioned.
The text was updated successfully, but these errors were encountered: