Skip to content

Fix last value updating for RSI indicator #2703

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

Merged
merged 3 commits into from
Jun 11, 2025

Conversation

bartlaw
Copy link
Contributor

@bartlaw bartlaw commented Jun 10, 2025

Pull Request

It fixes this issue: #2673

Summary

It sets the previous indicator value for next iteration in case of division by 0

Related Issues/PRs

#2673

Type of change

  • Bug fix (non-breaking)
  • New feature (non-breaking)
  • Breaking change (impacts existing behavior)
  • Documentation update
  • Maintenance / chore

Breaking change details (if applicable)

Release notes

  • I added a concise entry to RELEASES.md that follows the existing conventions (when applicable)

Testing

Ensure new or changed logic is covered by tests.

  • Affected code paths are already covered by the test suite
  • I added/updated tests to cover new or changed logic

I've tested code by running extensive backtest and comparing results.

@CLAassistant
Copy link

CLAassistant commented Jun 10, 2025

CLA assistant check
All committers have signed the CLA.

@cjdsellers cjdsellers changed the title Rsi bug fix Fix last value updating for RSI indicator Jun 10, 2025
@cjdsellers
Copy link
Member

Hi @bartlaw

Many thanks for the fix.

Is it possible to add one test which triggers the condition? 🙏

@bartlaw
Copy link
Contributor Author

bartlaw commented Jun 11, 2025

Hi @cjdsellers
Thanks for pointing this out. I've added a test that passes only after this bug fix. Let me know if I should do anything else. I am new to open source dev.

@cjdsellers
Copy link
Member

Thanks for adding the test, much appreciated!

@cjdsellers cjdsellers merged commit 99879e8 into nautechsystems:develop Jun 11, 2025
13 checks passed
@bartlaw bartlaw deleted the rsi_bug_fix branch June 11, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants