Stoch generic coding

Is it possible to do coding of stoch generic in pi?

Yes, Stochastic is possible in pi , the syntax for Stochastic is 

SOPK(%K Periods, %K Slowing Periods, %D Periods, MA Type)
SOPD(%K Periods, %K Slowing Periods, %D Periods, MA Type)