Need code for These condition

ADX(14) is higher than 30 AND ADX(14) in this period is higher than ADX(14) in the last period AND Current bar high is higher than SMA(20) and current bar low is lower than SMA(20)

ADX(14) > 30 AND ADX(14) > REF(ADX(14),1) AND HIGH > SMA(CLOSE,20) AND LOW < SMA(CLOSE,20)