Code for scanning the stocks that are oversold and overbought in stochastic

i want to get the code for the oversold and overbought stocks in NSE using the setting 14,5,5 settings in stochastic

As per above condition

SOPK(9, 3, 9, SIMPLE) > 80 OR SOPD(9, 3, 9, SIMPLE) > 80

Evaluates to true when the Stochastic Oscillator is in oversold territory.

SOPK(9, 3, 9, SIMPLE) < 20 OR SOPD(9, 3, 9, SIMPLE) < 20

Evaluates to true when the Stochastic Oscillator is in overbought territory.