Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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