Need PI code both for scanner and backtest

Buy
CROSSOVER(EMA(CLOSE, 5), EMA(CLOSE, 8), EMA(CLOSE, 13))CROSSOVER ( DIP(14) , DIN(14) )RSI(CLOSE, 14) > 50

Exit Long
Purchase price+20Point Or -20Point

i have need for exit long or sell code, please kindly provide me asap.