Problem with BUY Signal Pi Strategy code?

Can you tell me what is wrong with this script. The Sell Signals and Exit Shorts are working fine, the Buy and Exit Long signals are not working at all.( Not signals received even after i recheck the Chart to confirm)
Buy – WWS(CLOSE,5) > WWS(CLOSE,8) > EMA(CLOSE,40) > SMA(CLOSE,75) AND MACDSIGNAL (13, 26, 9, EXPONENTIAL)>0 AND DIP(14)>25 AND ADX(14) >28
SELL – WWS(CLOSE,5) < WWS(CLOSE,8) < EMA(CLOSE,40) < SMA(CLOSE,75) AND MACDSIGNAL (13, 26, 9, EXPONENTIAL)<0 AND DIN(14)> 25 AND ADX(14) >28
Exit Long – MACD(13, 26, 9, EXPONENTIAL) > MACDSIGNAL (13, 26, 9, EXPONENTIAL) AND CLOSE < EMA(CLOSE,40) OR CLOSE < OPEN AND REF (CLOSE, 1) < REF(OPEN, 1) AND REF(CLOSE, 2) < REF(OPEN, 1)
Exit Short – MACD(13, 26, 9, EXPONENTIAL) EMA(CLOSE,40) OR CLOSE > OPEN AND REF(CLOSE, 1) > REF(OPEN, 1) AND REF(CLOSE, 2) > REF(OPEN, 2)
Thank you :smiley:

Yes buy signal not working… you closed with note that it solved.
May I know the solution.