Tradescript code for PI scanner

Hi anybody help me for coding below strategy:

1)15 min candlestick
2)range(high,low) of 9:30 am to 9:45 am candlestick
3)if 6 day exponential moving average crosses above the range then buy and if it cross below the range then sell
4)MACD line crossing over MACD Signal line
5)MACD condition 12,26,9

periodicity -minute
bar interval -15

please help me create a scanner

for above conditions for macd and ema

CROSSOVER(EMA(CLOSE,6),REF(HIGH,2)) AND CROSSOVER(MACDSignal(12, 26, 9, SIMPLE), MACD(12, 26, 9, SIMPLE))

It is not possible to code the open range strategy in pi scanner,

you can try using streak which is advanced backtesting and scanning platform and it doesn’t need coding skills, login to streak.zerodha.com