How to draw a segment of horizontal line instead of HLINE?

 
Seems that CreateObject doesn't support for creating a segment of horizontal line given two coordinates. Is that possible for MT4? It's really meaningful in some cases to draw a line in segment.
 
Oh, well, I can draw a rectangle (with the same price value) to simulate a segment of line.
 
Trend line without ray property
 
That's great! Slava, thank you very much! Then I can draw segments of line with trend line also.