Capturing Price on different intervals

 

Can someone show me how I can capture a Close price with EA code from the M5 interval while my EA is loaded on the M15 time interval?

I'm interested in capturing the previous [1] M5 bar close price.

 
SquareRoot:

Can someone show me how I can capture a Close price with EA code from the M5 interval while my EA is loaded on the M15 time interval?

I'm interested in capturing the previous [1] M5 bar close price.

Thanks ... I found that the iClose fucntion works.

Reason: