No trades in Backtesting even though Trade Conditions are met - SMI

Hello, a simple code is giving message for Backtesting NIFTY15DECFUT 120 days 5 min candle:

Error : Scripts generated no trades

There should be trades. The script is :

Buy:

SET D = SMID(13,25,2,9,EXPONENTIAL,EXPONENTIAL)
SET K = SMIK(13,25,2,9,EXPONENTIAL,EXPONENTIAL)

CROSSOVER (K,D)

Exit Buy

SET D = SMID(13,25,2,9,EXPONENTIAL,EXPONENTIAL)
SET K = SMIK(13,25,2,9,EXPONENTIAL,EXPONENTIAL)

CROSSOVER (D,K)

The below chart is created by me by replacing CROSSOVER (K,D) by CROSSOVER(Close,EMA(close,100)) just to see that my D and K are plotted correctly. They are indeed correctly plotted as shown below. Then whu don't I get any trades with CROSSOVER (D,K) during Backtesting ??


The above code gives syntax error as %K and %D both are from same Stochastic Oscillator, you can apply the Stochastic Oscillator manually and can drag it %K and %D to check the crossover manually.