Stochastic Crossover

Created at 30 Jul 2017, 18:36
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DelFonseca's avatar

DelFonseca

Joined 25.06.2017

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);
        }


@DelFonseca