Please help me to write my strategy in trading script

In the 30 Minute Chart, the Stochastic should be bullish

In the 5 Minute Chart, the Stochastic should be bullish as well.

The 5 Period EMA crossed over the 13 Period EMA from below and moves upwards.

Stochastic Setting is 8,3,4 for this system

As per above condition

SOPK(8, 3, 4, SIMPLE) > 80 OR SOPD(8, 3, 4, SIMPLE) >80 AND CROSSOVER(EMA(CLOSE,5),EMA(CLOSE,13))