I am working with an Oscillator that fluctuates between 10.000000 and -10.000000
The value changes say every 5 minutes. I want to find the difference between the current value and the value of 5 minutes ago. Here is my logic.
1 bar ago (1BA)= -.2
Current bar (CB) = .3
Wouldn't I get a value of 1 if I did something like:
Abs(CB) - Abs(1BA) = .3 - .2 = 1
Whereas:
Abs(CB- 1BA) = .3 - -.2 = 5
I want to simply calculate the difference between the move of the oscillator from one time frame to another. Am I applying the Abs with the right logic in mind?
Here is my actual code, please assume my method being called is correct:
if (Oscillator(PoFast, PoSlow, PoSmooth)[0] >
Oscillator(PoFast, PoSlow, PoSmooth)[3]
&& Math.Abs(Oscillator(PoFast, PoSlow, PoSmooth)[0] -
Oscillator(PoFast, PoSlow, PoSmooth)[3]) > .25)