for(i = 0; i < NumberOfPoints; i++)
{
double StartX = Time[0];
double StartY = LL + 1.0*Point*STEP*i;
double EndX = Time[5+Count[i]];
double EndY = StartY;
string ObjName = ObGetUniqueName(OBJECT_PREFIX);
ObjectDelete(ObjName);
ObjectCreate(ObjName, OBJ_TREND, 0, StartX, StartY, EndX, EndY);
ObjectSet(ObjName, OBJPROP_RAY, 0);
ObjectSet(ObjName, OBJPROP_COLOR, DarkSlateGray);
}
pvroman