Which function used to draw a horizontal line ?

 

In my EA, there is current limit value for Buying or Selling operation !

I would like to draw 2 current limit lines by coding, instead of drawing manually !

So, which function should I study and use ?

 
You use Objects, more specifically ObjectCreate with OBJ_HLINE and then use ObjectSet to set properties such as colour and line thickness.
Reason: