OBJ_VLINE - page 4

To add comments, please log in or register
Marco vd Heijden
Moderator
12370
Marco vd Heijden  
You have the data from the last available bar and the data from the object so you should be able to calculate the difference.
Siti Latifah
18387
Siti Latifah  
void VL(string Line)
{
  datetime tim = iTime(Symbol(),1440,0) + 22*3600;

  ObjectDelete(Line);
  ObjectCreate(Line, OBJ_VLINE,0,tim,Ask);
  ObjectSet(Line, OBJPROP_COLOR, clrRed);
  ObjectSet(Line, OBJPROP_STYLE, STYLE_SOLID);
  ObjectSet(Line, OBJPROP_WIDTH, 1);
  ObjectSet(Line, OBJPROP_BACK,True);
}

 VL("VerLine "+(string)Time[0]);

To add comments, please log in or register