Topic: ObjectSet(ObjName, OBJPROP_RAY, 0);

I'm not sure if I'll receive a response but the following are object creation methods of MetaTrader.  How would I create the same in a Custom Indicator?


       ObjectDelete(ObjName);
       ObjectCreate(ObjName, OBJ_TREND, 0, StartX, StartY, EndX, EndY);
       ObjectSet(ObjName, OBJPROP_RAY, 0);
       ObjectSet(ObjName, OBJPROP_COLOR, Red);