I've this code and it work good, drawing a vertical line at 10:00 and another perpendicular line at 20:00, but if I set the time into e.g. 7:00 and 20:00 it only draw the 20:00 line.
Can anybody tell me what's wrong?
Inserted Code extern int iHour1 = 10; extern int iHour2 = 20;
Inserted Code if(TimeHour(Time#91;I#93;-RRB-==iHour1 TimeMinute(Time#91;t#93;-RRB-==0) x ; ObjectCreate(Time x,OBJ_VLINE,0,Time#91;t#93;,Top#91;t#93;-RRB-; ObjectSet(Time x,OBJPROP_COLOR,Red); // Color value to set/get object colour. ObjectSet(Time x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants into set/get thing line fashion. ObjectSet(Time x,OBJPROP_WIDTH,1); // Integer value to set/get thing line width. Can be from 1 to 5. ObjectSet(Time x,OBJPROP_BACK,true); // Boolean value to set/get desktop drawing flag for thing. (such as true will conceal the value at the bottom of the chart.) Else if(TimeHour(Time#91;t#93;-RRB-==iHour2 TimeMinute(Time#91;t#93;-RRB-==0) x ; ObjectCreate(Time x,OBJ_VLINE,0,Time#91;t#93;,Top#91;t#93;-RRB-; ObjectSet(Time x,OBJPROP_COLOR,Yellow); // Color value to set/get object colour. ObjectSet(Time x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants into set/get thing line fashion. ObjectSet(Time x,OBJPROP_WIDTH,1); // Integer value to set/get thing line width. Can be from 1 to 5. ObjectSet(Time x,OBJPROP_BACK,true); // Boolean value to set/get desktop drawing flag for thing. (such as true will conceal the value at the bottom of the chart.)