Indicator help

 

I am looking for an MT4 Alert -

UPTREND ALERT - for example on the daily chart would look for;

SMA18 day of today is >= SMA18 of yesterday

AND

SMA9 day of today is >= SMA9 of yesterday

(if the above is true) AND

SMA18 day of yesterday < SMA18 day before yesterday

OR

SMA 9 of yesterday < SMA 9 of day before yesterday

Would be great if it could be combined with DOWNTREND ALERT