How to find lowest of the day in amibroker

#1
I want to plot following
candlestick graph of 1 min
Exponential Moving average of 20
Exponential Moving average of 50

Program to do following
When EMA 2050 is down - Mark lowest value till latest close is above EMA 2050