Skip to content

Error in mfi calculating #252

Description

@ikulichkov

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions