Skip to content

Conversation

@NeoKiring
Copy link
Owner

No description provided.

…mplement-features-from-readme-in-branch-claude/crypto-analy-hriywu
…adme-in-branch-claude/crypto-analy-hriywu

Add PROGRESS_REPORT.md summarizing Phase 1/2 progress
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f6c4e8e744

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +14 to +16
rs = avg_gain / avg_loss.replace(0, pd.NA)
rsi_values = 100 - (100 / (1 + rs))
return rsi_values.fillna(0.0)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Return 100 for RSI when losses are zero

When avg_loss is zero (e.g., a monotonically increasing price series), avg_loss.replace(0, pd.NA) forces rs to NA and rsi_values.fillna(0.0) returns an RSI of 0. This inverts the signal: RSI should be 100 in the “no losses” case, so any downstream strategy using RSI will misclassify strong uptrends as oversold. Consider explicitly setting RSI to 100 when avg_loss is zero (and only using fillna for the initial window).

Useful? React with 👍 / 👎.

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.

1 participant