calc_stochastic_d function

Calculate Stochastic D Indicator