Please, Help......

 
I need change period 1H to 5M automatically in EA.
I am not using indicators, can I change, automatically in the Expert, for another chart or period? to modify 5M to 1M? for command ?
thanks
 
While in the M5 chart you can access the M1 Open price for example with the function:
int iShift=0; // shift relative to the current bar
double dOpenInM1Chart = iOpen(NULL,PERIOD_M1,iShift);

In MetaEditor Search for "period" to list other functions for retrieving values from other charts, take care.
 
I need change for all, exist a function for change chart 5M simulate a clik on chart 1M ? without use iclose, iopen....
Thanks
Reason: