Discussion of article "How to deal with lines using MQL5"

 

New article How to deal with lines using MQL5 has been published:

In this article, you will find your way to deal with the most important lines like trendlines, support, and resistance by MQL5.

We can use the Trend line in trading by placing our orders based on the trend line type. If there is an upward trend line, we may expect the price moves down to test this trend line from above then rebounding to up and then we can place our buying order around this trend line. Vice versa, if there is a downward trend line, we may that the price moves up to test this trend line from below then rebounding to down and then we can place our shorting or selling order around this downward trend line.

The following is for the upward trend line:

 Up trendline

We can see that it is clear in the previous figure that we have an up movement and if we try to connect between the last three lows we can find that they are on the same line heading up.

Author: Mohamed Abdelmaaboud

 
but why   ObjectCreate(_Symbol,"supportLine",OBJ_HLINE,0,pArray[candleLow].time,pArray[candleLow].low, pArray[0].time,pArray[0].low);  ?
enough  ObjectCreate(_Symbol,"supportLine",OBJ_HLINE,0,pArray[candleLow].time,pArray[candleLow].low);