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

Error in mfi calculating #252

Open
ikulichkov opened this issue Jan 18, 2022 · 0 comments
Open

Error in mfi calculating #252

ikulichkov opened this issue Jan 18, 2022 · 0 comments

Comments

@ikulichkov
Copy link

ikulichkov commented Jan 18, 2022

Hello, you have an error in the MFI calculations and wrong calculating

now:

               if ((positiveFlow.totalPushed >= period) && (positiveFlow.totalPushed >= period)_) {
                    moneyFlowRatio = positiveFlowForPeriod / negativeFlowForPeriod;
                    result = 100 - 100 / (1 + moneyFlowRatio);
                }

after:

                if ((positiveFlow.totalPushed >= period) && (negativeFlow.totalPushed >= period)) {
                    moneyFlowRatio = positiveFlowForPeriod / negativeFlowForPeriod;
                    result = 100 - 100 / (1 + moneyFlowRatio);
                }

and now calculating is corret

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