getting 1hr chart data from 15mins timeframe

 

Hi all,

Please i need help on how my EA,can get a moving average of 10 on 1hr timeframe,when the Ea is attached to 15mins chart.

I mean that the EA is currently attached to 15mins chart,but it needs to get the value EMA 10 on 1hr chart,

what line of code can i use to get this?

Also i want the opened order closed after 30mins,how can i code this?

Any assistance will be highly appreciated.

Thanks.

Reason: