I am trying to get mql4 to create a horizontal line between two points in time. It should NOT extend the whole width of the chart. Is there any way to do this??
Here is a sample of my code
ObjName = GetName("SSTD", i);
// ObjectCreate(ObjName, OBJ_HLINE, 0, NULL, SetupSHiPrice );
ObjectCreate(ObjName, OBJ_HLINE, 0, SetupSBeginDt, SetupSHiPrice, SetupSEndDt, SetupSHiPrice );
ObjectSet(ObjName, OBJPROP_TIME1, SetupSBeginDt);
ObjectSet(ObjName, OBJPROP_TIME2, SetupSEndDt);
ObjectSet(ObjName, OBJPROP_COLOR, Yellow);
ObjectSet(ObjName, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(ObjName, OBJPROP_WIDTH, 2);
thanks in advance for your help
Here is a sample of my code
ObjName = GetName("SSTD", i);
// ObjectCreate(ObjName, OBJ_HLINE, 0, NULL, SetupSHiPrice );
ObjectCreate(ObjName, OBJ_HLINE, 0, SetupSBeginDt, SetupSHiPrice, SetupSEndDt, SetupSHiPrice );
ObjectSet(ObjName, OBJPROP_TIME1, SetupSBeginDt);
ObjectSet(ObjName, OBJPROP_TIME2, SetupSEndDt);
ObjectSet(ObjName, OBJPROP_COLOR, Yellow);
ObjectSet(ObjName, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(ObjName, OBJPROP_WIDTH, 2);
thanks in advance for your help