How to draw a line with a length?

now Mql4 draw a line or a ray line.

how to draw a line with two points and only inside two pints not extent out?

In other word i only want to draw a line segment.

ObjectSet( .., OBJPROP_RAY, false );
I draw a triangle with collinear peaks.