help is needed.

 

please i want to enter trade base on this sstrategy in thesame EA and i do not know how to do it.

when a new candle formed on 1hour, i wiil  wait till a new candle form on 5mins before i place a trade.Where am having problem  is i do not know how to code it in a single EA i can code the one of 1hou because am using 1 hour timefraame r but the one of 1hour is applied to 5mins and i do not want to let it be like that.Am only using 1 hour to determine the trend while i use 5 mins  to place order. help. 

 

you can use all timeframes in your ea, it doesnt matter on which you place you EA..

instead of using Period() in you indicator/iOpen() call's use PERIOD_M5 or PERIOD_H1