Need code for this strategy for backtesting - BUY when stochastic 14 < 20 and SELL when stoc 14 > 80 and every time stoploss 1%

NaMasTe TraDeR,

BUY SCRIPT:

SMIK(14, 2, 3, 9, SIMPLE, SIMPLE) < 20

SELL SCRIPT:

SMIK(14, 2, 3, 9, SIMPLE, SIMPLE) > 80

Stop Loss is not codeable on Tradescript.