Page 1 of 1

Buffer arithmetic operation issue

Posted: Mon Jun 19, 2017 9:13 pm
by fierromax
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!!

:cry:

Re: Buffer arithmetic operation issue

Posted: Sat Jul 01, 2017 6:33 am
by Stonev
Did you solve this issue?
i think error is not in this string.