I am looking for help with the following.
I have an oscillator that has a zero line and can go from 10.000000 to -10.000000.
What I want to do is calculate the amount of the move between bars, or rather how much did the oscillator oscillate.
Say for example I was using Oscillator and I wanted to make a decision based on how much it moved between the value as of the current bar for the osc, to the value of the osc 3 bars ago?
I am basically doing something like:
(this works fine provided my osc values are both above zero)
if (Oscillator(PoFast, PoSlow, PoSmooth)[0] > Oscillator(PoFast, PoSlow, PoSmooth)[3]
&& Oscillator(PoFast, PoSlow, PoSmooth)[0] - Oscillator(PoFast, PoSlow, PoSmooth)[3] > .1
...then do something...
Now I am pretty sure that this is Freshman math, but I was busy doing more important things, lol. Can someone give me the structure for finding the difference between the values of the osc for given bars?
Will pay in beer.
Comment