Error in mfi calculating
ikulichkov opened this issue · 0 comments
ikulichkov commented
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