Buffer arithmetic operation issue

Indicators coded by community members
Message
Author
fierromax
Posts: 2
Joined: Mon Jun 19, 2017 9:01 pm

Buffer arithmetic operation issue

#1 Postby fierromax » 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!!

:cry:

Stonev
Posts: 204
Joined: Thu Jan 28, 2010 2:20 pm

Re: Buffer arithmetic operation issue

#2 Postby Stonev » Sat Jul 01, 2017 6:33 am

Did you solve this issue?
i think error is not in this string.
Coding & Converting


Return to “Indicators”

Who is online

Users browsing this forum: No registered users and 11 guests