You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An interesting phenomenon in Python:
Code of MFI:
The problem is if tempValue1 = (2.86 + 2.7 + 2.73), prevValue = (2.81 + 2.7 + 2.78), which means tempValue2 not equal to 0(a small number instead due to the machine error), tempValue2 > 0. Obviously, the result is not what we want and far from the correct result.
I have some advice and I don't know whether they make sense in all case.
tempValue2 keep 8(or 10 whatever) decimal places.
do some change in if statement: bigger/small than a number closes to 0 (just like TA_IS_ZERO)
The other problem is STOCHRSI:
The five numbers in the window are supposed to be same, but unfortunately they are not due to the machine error(I guess). Again, the result is far from the correct result.
I think we can drop some accuracy to avoid machine error which can make result far away away from the correct result.
Thank you very much for answering in advance !
The text was updated successfully, but these errors were encountered:
An interesting phenomenon in Python:
Code of MFI:
The problem is if tempValue1 = (2.86 + 2.7 + 2.73), prevValue = (2.81 + 2.7 + 2.78), which means tempValue2 not equal to 0(a small number instead due to the machine error), tempValue2 > 0. Obviously, the result is not what we want and far from the correct result.
I have some advice and I don't know whether they make sense in all case.
The other problem is STOCHRSI:
The five numbers in the window are supposed to be same, but unfortunately they are not due to the machine error(I guess). Again, the result is far from the correct result.
I think we can drop some accuracy to avoid machine error which can make result far away away from the correct result.
Thank you very much for answering in advance !
The text was updated successfully, but these errors were encountered: