I have created an oscillator for use with EUR/USD to determine a sideways market. It is fairly straightforward and measures deviation of different moving averages.
It has provides a graphical signal of when not to trade.
I have attempted to incorporate this into a strategy I am working on. The strategy has a high failure rate when the oscillator is within a range of .999 to 1.001, and a fairly decent success rate when outside of this range.
As a beginner, I do not have a grasp on how to call upon the indicator to allow trading or disallow. I attempted to place the entire indicator logic within the strategy, but it does not appear to be as precise.
My logic was simple "if indicator > 1.001 allow trading" and "if indicator < 0.999 allow trading".
Can some assist me with calling on this indicator from within my strategy as opposed to re-programming this into the strategy itself?
Thanks!
The indicator was revised and updated