This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

How to calculate bar distance beyond timeseries array range?


Back to topics list
avatar
1
zork 2010.04.15 13:47 

Hi,


I have trendline on D1 chart with time1=2009.12.03 and time2=2010.04.15. This gives 1598 bars between time1 and time2.

For M1 chart for the same symbol I have history only to 04.10.2010, so in this compression time1 is outside the timeseries array.


When I find the time2 point on M1 chart and try to move it with mouse, then MT4 shows that a distance between time2 and time1 is 131324.


Is there any way to calculate this distance from MQL?


Thanks,

Lukasz

Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets