Hey everyone,
Wanted to see if someone would look at my coding and log output, here. I am playing around with the slope calculation of an SMA50...
In the output, notice that, if you compare any minute's current and previous slope data, the next minute's previous slope does not match the slope from the previous minute's current slope.
To illustrate my point, it should look something like this:
10/10/16 10:30AM PRINT Current slope = .0034567 Previous slope = .0002345
10/10/16 10:31AM PRINT Current slope = .0054321 Previous slope = .0034567
However, if you look at the log, this is not the case. I see that the calculation is off, roughly, +/-.0002 to +/-.0003.
Any ideas as to why? Am I calling my values properly? Something else?
Thanks for any input...
Danny