Metastock macd tema smoothed

i want a signal when the FmlVar(“MACD (TEMA-smoothed)”,“SIGNAL”) last day is smaller than today
can any one write the code to use in the advisor editor in metastock
thanks