CODING in AFL REQUIRED

Dear Sir / Madam,

Need your help in preparing a code for my strategy -

Buy if the following conditions are met

15 Mins Chart - When EMA 14 Crosses EMA 36 (i.e. EMA 14 is cross over - is above EMA 36)
5 Min chart - when EMA 14 crosses EMA 36 (i.e. EMA 14 is cross over - is above EMA 36)

Exit - when in 1 Min chart EMA 14 EMA crossunder - is below EMA 36.

Sell if the following conditions are met

15 Mins Chart (Candle) - when EMA 14 Crosses below EMA 36 (i.e. EMA 14 is cross under - is below EMA 36)
5 Mins Chart - When EMA 14 Crosses below EMA 36 (i.e. EMA 14 is cross under - is below EMA 36)

Exit - when in 1 Min chart EMA 14 EMA crossover - is above EMA 36.

the above condition included with three time frames like 1, 5, 15 minute chart , tradescript works with OHLC values and it is not possible to define conditions with multiple time frame in single script