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

RSI returns null instead of 100 when there is no Average Loss #91

Open
tht12837a opened this issue Apr 16, 2019 · 0 comments
Open

RSI returns null instead of 100 when there is no Average Loss #91

tht12837a opened this issue Apr 16, 2019 · 0 comments

Comments

@tht12837a
Copy link

RSI should be 100 when the Average Loss equals zero. Using the RelativeStrengthIndexByTuple we should get 100 when there is no Average Loss, but instead RSI is null.

How to reproduce:

            List<decimal?> allTradyCandlesList = new List<decimal?>();

            for (int i = 1; i < 21; i++)
            {
                allTradyCandlesList.Add(i);
            }
            var rsi = new RelativeStrengthIndexByTuple(allTradyCandlesList, 10)[allTradyCandlesList.Count - 1];
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

No branches or pull requests

1 participant