Reagarding MT4 Time Frame

 

hello! does anybody know how to get the current time frame of a chart and then save it to a variable? it has got to be easy but I just don't know how to do it

 
iPlayGames:
hello! does anybody know how to get the current time frame of a chart and then save it to a variable? it has got to be easy but I just don't know how to do it

Try:

....

int timeframe;

timeframe=Period();

....

laters,

FX Sniper

 

thanks a lot for your reply!

Reason: