one minute EMA(90) crossing over one minute EMA(390) ( meaning the previous minute ema 90 is less than ema 390) and the ema(90) should also be greater than ema(150)

logic for buy exit :

one minute EMA(90) > EMA(390) and the ema(90) < ema(150).

logic for sell entry :

one minute EMA(90) cutting down one minute EMA(390) ( meaning the previous minute ema 90 is greater than ema 390) and the ema(90) should also be less than ema(150)

logic for sell exit :

one minute EMA(90) < EMA(390) and the ema(90) > ema(150).