Comparing 50 day SMA with closing price of 5 mins chart

Hi,

I need code to Compare 50 Day moving with the closing price of 5 mins Chart. Is it possible ?

Below is the need

Variable1 = 50 day moving AVG

Close > Variable 1 [ Where close is the price @ the end of 5 mins trade chart]

NaMasTe TraDeR,

TradeScript Code:

CLOSE > SMA(CLOSE,50) 

Replace SMA with EMA if needed. The 5min timeframe settings are done on the scanner