How Stream MT4 Data into Excel per candle wise?

 

Hi,
I am currently developing a calculator.But that i will need mt4 data in excel.
Well i know that basics of excel data fatching with DDE server and formulas like.
Can you tell me,the codes for fetching particular time frame data like 5M,15M etc.

anybody knows,any tricks or way,where i can fetch data per chart and time frame wise in live market tick updation!!!.Cause for 5M or 1M chart frame,High and low will be different.

Any information will be helpful.
Thanks.

 
F2 and then export ?
Reason: