Simple code to display a vertical line on the chart :

Code:
      ObjectDelete("Vertical");
      ObjectCreate("Vertical",OBJ_VLINE,0,iTime(NULL,0,0),0);
      ObjectSet("Vertical",OBJPROP_STYLE,1);
      ObjectSet("Vertical",OBJPROP_COLOR,Lime);