The printing to the log, which is what you showed in your image, was in the code before the 'LastTm<Time[0]' check. So that check did not prevent the prints but it did prevent the actual alert. So I simply moved that. I made a few other small changes to the code too.
...always the little things.
Such a relief to work with mt4 without waiting after every little move, like haircross use or anything else.
Thanks again.
If it is not asked to much, could you please add mtf function? That would be a great help going back into trend-direction.
As this ma crosser can show arrows pretty early (repainting accepted) with settings 1,20,3.
Trading M15 with arrows and alerts from M30 shows less confusing arrows on the chart, but early arrows after a pullback combined with any trend indicator, like an ema 20 on the chart.