Skip to content
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

[BUG]ConvergenceDivergenceIndicator always returns false on 500 data sets with 500 bars each #1119

Open
csidi90 opened this issue Oct 18, 2023 · 1 comment
Labels
bug Issue describing or discussing an bug in this library

Comments

@csidi90
Copy link

csidi90 commented Oct 18, 2023

I was trying to get bullish and bearish RSI divergence using ConvergenceDivergenceIndicator. For an unclear reason, the positive- and negativDivergent types always return false no matter the barcount, slope and strength I put in. I only get "true" results if I use Type of positiveConvergent or negativConvergent but never using positiv- or negativDivergent.

Its pretty unlikely that I dont get a single true delivered on 500 Datasets with each holding 500 bars even when using the min slope and strength of 0.1 or even leaving it out just using the "strong" constructor.

Am I doing something wrong?

this.bullDiv = new ConvergenceDivergenceIndicator(rsiIndicator, closePriceIndicator, 10, ConvergenceDivergenceIndicator.ConvergenceDivergenceType.positiveDivergent, 0.1, 0.1); this.bearDiv = new ConvergenceDivergenceIndicator(rsiIndicator, closePriceIndicator, 10, ConvergenceDivergenceIndicator.ConvergenceDivergenceType.negativeDivergent, 0.1, 0.1);

I want values to be true for bullDiv if RSI makes higher highs while the closePrices make lower lows and vice versa.

@csidi90 csidi90 added the bug Issue describing or discussing an bug in this library label Oct 18, 2023
@TheCookieLab
Copy link
Member

TheCookieLab commented Oct 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue describing or discussing an bug in this library
Projects
None yet
Development

No branches or pull requests

2 participants