Tradescreipt i snot working

ADX(14) > 20 AND
DIP(14) > 20 AND RSI(CLOSE, 14) > 40 AND
REF(MACDSignal(13, 26, 9, SIMPLE), 1) < REF(MACD(13, 26, 9, SIMPLE), 1)
AND MACDSignal(13, 26, 9, SIMPLE) < MACD(13, 26, 9, SIMPLE)

hElLO tRaDeR,

ADX(14) > 20 AND 
DIP(14) > 20 AND RSI(CLOSE, 14) > 40 AND 
REF(MACDSignal(13, 26, 9, SIMPLE), 1) < REF(MACD(13, 26, 9, SIMPLE), 1) 
AND MACDSignal(13, 26, 9, SIMPLE) < MACD(13, 26, 9, SIMPLE) 

The code generated trades on my side:

Refer to the Pi Scanner checklist to troubleshoot errors:

http://tradingqna.com/46073/wiki-zerodha-backtest-scanner-error-troubleshoot-checklist

The above tradescript has no errors and it is working for in in backtest for nifty 20 days 1 minute chart data

the signal will be generated only when the condition matches, check with more historical data