HOW TO?

 
can anybody give a suggestion if possible on how to draw an horizontal tine using an Expert advisor,such that the horizontal line limit is defined rather than extending throuhgout the chat e.g drawing a line so that it only extend from say time[17] to time[3]; and not going beyond these limit,Thanks
 
if (!ObjectSet( TL.name[line], OBJPROP_RAY, false ))        Alert(
    "ObjectSet(", TL.name[line], ") [2] failed: ", GetLastError() );
 
WHRoeder:


THANKS FOR THE RESPONSE,BUT I DO I QUITE INTEGRATE THIS INTO A CODE.I NEED FURTHER EXPANTIATION ON THIS CODE.EG I WANT TO DRAW A HORIZONTAL LINE EXTENDING FROMTHE DAY OPENING PRICE TOA LENGHT OF 24 HOURS AFTER DAY OPENING.LIKE THIS CODE BELOW
ObjectCreate(adex,OBJ_HLINE,0,T4,pivot);
Reason: