Buffer arithmetic operation issue
Posted: Mon Jun 19, 2017 9:13 pm
Hello everyone!
Im newbie programmer, and I´m trying to develop my 2nd indicator right know. But I got an issue with an operation as following:
TVI_Raw[index] := 100.0 * (DEMA_U[index] - DEMA_D[index]) / (DEMA_U[index] + DEMA_D[index])
Where:
DEMA_U[index] = 33439.0129
DEMA_D[index] = 33432.5642
So TVI_Raw[index] should be 0.009643409
But the real result is: -5.77
What went wrong?
Please Help!!
Im newbie programmer, and I´m trying to develop my 2nd indicator right know. But I got an issue with an operation as following:
TVI_Raw[index] := 100.0 * (DEMA_U[index] - DEMA_D[index]) / (DEMA_U[index] + DEMA_D[index])
Where:
DEMA_U[index] = 33439.0129
DEMA_D[index] = 33432.5642
So TVI_Raw[index] should be 0.009643409
But the real result is: -5.77
What went wrong?
Please Help!!