Stochastic Crossover
![DelFonseca's avatar](/uploads/user-16124/avatar/9a83ddcf53e4bc2109ca10d064cdc4a3657ef04b.jpeg)
Stochastic Crossover
30 Jul 2017, 18:36
Hi,
Can someone help me with the following code? Need the Stochastic crossover below or above the oversold and overbought line.
Thank you
private List<bool> _isParUp = new List<bool>();
private List<bool> _isParDown = new List<bool>();
private void UpdateIndicators()
{
isStochUp = stochastic.PercentK.LastValue > stochastic.PercentD.LastValue;
isStochDown = stochastic.PercentK.LastValue < stochastic.PercentD.LastValue;
isParUp = parabolic.Result.IsRising();
isParDown = parabolic.Result.IsFalling();
_isParUp.Add(isParUp);
_isParDown.Add(isParDown);
}