code required Ema and 20 period high

i would be required code for below trade

Latest close Crossed above Max( 20,open) ” PRICE JUST CROSSED ABOVE 20 PERIOD HIGH PRICE ”
EMA 2O > EMA 50
EMA 50 > EMA 100

Here it is

CLOSE > MAX(CLOSE, 20) AND EMA(CLOSE, 20) > EMA(CLOSE, 50) AND EMA(CLOSE, 50) > EMA(CLOSE, 100)