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 ??