Download MetaTrader 5

Info about MT4 Candle compilation

To add comments, please log in or register
Proximus
766
Proximus  
Hi i`m curious how the MT4 compiles the raw data into candlesticks.And by that i mean how it merges M1 data and makes H1 from it.What are the logical and programming details about candlestick merging?
Keith Watford
Moderator
10541
Keith Watford  

Are you talking about how the strategy tester creates pseudo ticks from M1 data?

There is quite a comprehensive article about that here somewhere. Don't know the link though.

whroeder1
16555
whroeder1  
Proximus: how it merges M1 data and makes H1 from it.What are the logical and programming details about candlestick merging?

Mt4 doesn't merge M1 data, it gets the H1 from the server. If you have M1 chart open (only,) you are not updating H1 history.

Server basically uses:

if timestamp of tick > H1 start + 3600 make a new bar OHLC=price
else if price > H H=price, if price < L L=price, C=price
Simon Gniadkowski
Moderator
18046
Simon Gniadkowski  
Proximus:
Hi i`m curious how the MT4 compiles the raw data into candlesticks.And by that i mean how it merges M1 data and makes H1 from it.What are the logical and programming details about candlestick merging?
Seriously ? there are 60 minutes in 1 hour . . . look at the M1 bars within an hour get the Max high value and the Min low value of these M1 bars, that give you the H1 High and Low, the take the first M1 bar open and the last M1 bar close . . . now you have the H1 Open and Close . . . isn't this obvious ?
Proximus
766
Proximus  
RaptorUK:
Seriously ? there are 60 minutes in 1 hour . . . look at the M1 bars within an hour get the Max high value and the Min low value of these M1 bars, that give you the H1 High and Low, the take the first M1 bar open and the last M1 bar close . . . now you have the H1 Open and Close . . . isn't this obvious ?

THANKS much, i had to make sure.
Ian Venner
2584
Ian Venner  

I think the new mt4 will use 1m history data only and create all the rest of the historical timeframes from that.

Simon Gniadkowski
Moderator
18046
Simon Gniadkowski  
SDC:

I think the new mt4 will use 1m history data only and create all the rest of the historical timeframes from that.

Are the Brokers going to provide a reasonable range of M1 data ? or just the usual couple of months ?
Ian Venner
2584
Ian Venner  

I believe it will be in 1yr packages

To add comments, please log in or register