Vertical line color

 

the following code outputs a red vertical line

LineName = TimeToStr(CurTime());

ObjectCreate(LineName,OBJ_VLINE,0,CurTime(),Ask,0,0,0);

how do i make it a yellow or other color line?

 

is this an ea or an indicator.

if it's an indicator, which it sounds like it is, the color is determined when you create the indicator, to add another line you and another one of theese codes,

where it says

#property indicator_color1//your color wished

just change the color.

does this answer your question?