Pls explain the code

Can any one explain the below code in simple terms both buuy and sell

buy

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)

sell

TREND(CLOSE,5) = UP AND
REF(OPEN,1)>REF(CLOSE,1) AND
REF(OPEN,2)>REF(CLOSE,2)

when Wilder’s Directional Movement System ADX is above 20 and DI+ Directional index is positive by 20 above, and overbought / oversold levels of the MACD and
divergences between MACD and underlying price of last candle then it is buy signal

when the trend of last 5 candles are up and previous 2 candles are green(bullish) then it is sell signal

1 Like