Style not changed to DashDot for VLINE Object

 

Hi,


I try to add a vertical line to a new chart.

For that, I use the following code:

new_chart=ChartOpen(Symbol(),Period());
ObjectCreate(new_chart,"Alert", OBJ_VLINE, 0, StrToTime(date_time),0);
ObjectSetInteger(new_chart,"Alert", OBJPROP_STYLE, STYLE_DASHDOT);
ObjectSetInteger(new_chart,"Alert", OBJPROP_COLOR,Red);
ObjectSetInteger(new_chart,"Alert", OBJPROP_WIDTH, 2);

The line is created, and the color and width is set. However, the style stays solid, and it is not changing into DashDot style.

What am I doing wrong here?

thanks and regards,

Victor

 
Victor Christiaanse:

Hi,


I try to add a vertical line to a new chart.

For that, I use the following code:

The line is created, and the color and width is set. However, the style stays solid, and it is not changing into DashDot style.

What am I doing wrong here?

thanks and regards,

Victor

Set the width to 0
 
Mladen Rakic:
Set the width to 0

Many thanks! It works now.