Has anyone got code to remove the weekends from two points in time?
I want to place a text object 23% the distance between two time points
on a trend line, on a daily chart. I get the time of each end point on
the trend line using: Time1=ObjectGet("t1",
OBJPROP_TIME1), Time2=ObjectGet("t1", OBJPROP_TIME2) then work out the
23% distance using: Time23 = Time1+(Time2-Time1)*0.236. I use
ObjectCreate to place the text at Time23. But the text object is not
placed at the correct place it is shifted to far to the right because the charts stop over the weekend but time dosent
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.
Has anyone got code to remove the weekends from two points in time?
I want to place a text object 23% the distance between two time points on a trend line, on a daily chart. I get the time of each end point on the trend line using: Time1=ObjectGet("t1", OBJPROP_TIME1), Time2=ObjectGet("t1", OBJPROP_TIME2) then work out the 23% distance using: Time23 = Time1+(Time2-Time1)*0.236. I use ObjectCreate to place the text at Time23. But the text object is not placed at the correct place it is shifted to far to the right because the charts stop over the weekend but time dosent
Thanks, Steve