Forum

Programmatically equaling time on chart?

Greetings, Below I have a function intended to determine the intersection of 2 ('Object Trend') lines drawn on a chart. The issue is that the 'intersection time' being reported does not seem to equal what I am seeing visually on the chart. In the function the 'time' of the intersection is set as

Slope calculation and determined angle

Greetings, I am using the following code attempting to calculate the slope of a drawn trendline...however it seems flawed as the values I am getting seem ridiculously small. Can somebody please verify if my calculations are correct (probably not) and...assuming they are incorrect provide a

Obtain 'Period' and 'Price' when a line exits off the edge of a chart?

Greetings, I am new to MQL5 and I am not sure if the following is possible. If I draw some 'Trend' lines on a chart (using 'ObjectCreate') and have them extend out to the edge of chart boundaries (using ' OBJPROP_RAY_RIGHT') is it possible to obtain the 'TIME PERIOD' AND 'PRICE' for the drawn line

Line coordinates and prices?

Greeings, I am new to MQL5 and this is my first post...! From the research I have been conducting I am unsure if this is possible... I have a need to enable detection of 'intersecting' lines on a chart. I believe it can be determined if lines intersect by obtaining the (X, Y) coordinates of the