Non-standard Chart Time-frames

 

Hi

Is it possible within MQL4/5 to use a chart time-frame other than the default ones?

For example if I wished to calculated an MACD using a 30-second time-frame?

Many thanks,

James 

 
jamesh99:

Hi

Is it possible within MQL4/5 to use a chart time-frame other than the default ones?

For example if I wished to calculated an MACD using a 30-second time-frame?

Many thanks,

James 

With MT4 it is possible, and as far as I understand, the ability of custom charting is going to become a part of the MT5 later this year.
 

OK. So how in MT4?

In the chart withing the GUI there is a fixed list of time-frames none of which is between tick and 1 minute.

In code the ENUM_TIMEFRAMES syntax doesn't support a time-frame other than those pre-defined. 

 

Thanks,

James 

Reason: