[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Percent - Math 101?



PureBytes Links

Trading Reference Links

This still assumes you know which value is larger. In this case, the below 
formula does not work:

a=5
b=7

(7-5) / 5 = .4 (incorrect)


If a is the start value and b is the end value then you could use

Percent Change = (b-a) / a

If the change is a decrease the answer is negative. If the change is an 
increase the answer is positive.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com