What will be sample code for following simple strategy

Strategy for e.g

Buy every time 5 minute candle closes above 34 hourly ema .

Sell every time 5 minute candle closes below 34 hourly ema.

As we are dealing with two candles one 5 minute and another hour .

Single candle I am able to handle but two different candles not able to find help on this .

Any pro can help me get started.

Thanks

Multi timeframe coding is not supported in Tradescript language.

Thx!! Guessed so .
Single time frame coding looks so primitive for algo , hope it may be supported soon.,