Forum

Stochastic Slope

Trying to calculate slope for stochastic , dont know what is is wrong. Getting a wrong value. Please what is wrong with the SlopeStoch variable ? Note , SlopePeriod = 1 if ( CopyBuffer (myStochastic[x], 0 , 0 , 2 , StochMain) != 2 ) return 0 ; if ( CopyBuffer (myStochastic[x], 1 , 0 , 2