Need code for the below

Hi Guys I can’t figure out how to write this code exactly.can someone help ?

high is less than high from 1 bars ago and high from 1 bars ago is greater than high from 2 bars ago and MovAvgExponential(“length” = 3) is greater than MovAvgExponential(“length” = 18) and MovAvgExponential(“length” = 3) from 1 bars ago is greater than MovAvgExponential(“length” = 18) from 1 bars ago and MovAvgExponential(“length” = 3) from 2 bars ago is less than MovAvgExponential(“length” = 18) from 2 bars ago

HIGH < REF(HIGH,1) AND 
REF(HIGH,1) > REF(HIGH,2) AND 
EMA(CLOSE,3) > EMA(CLOSE,18) AND 
REF(EMA(CLOSE,3),1) > REF(EMA(CLOSE,18),1) AND 
REF(EMA(CLOSE,3),2) < REF(EMA(CLOSE,18),2)