Skip to content

Error in mfi calculating #252

Open
Open
@ikulichkov

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

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