Code: Select all
int iChartID = ChartID ( );
ObjectCreate (iChartID, "ButtonSell", OBJ_BUTTON, iSubWindow, 0, 0);
ObjectSetInteger (iChartID, "ButtonSell", OBJPROP_XDISTANCE, 10);
ObjectSetInteger (iChartID, "ButtonSell", OBJPROP_YDISTANCE, 10);
ObjectSetInteger (iChartID, "ButtonSell", OBJPROP_XSIZE, 50);
ObjectSetInteger (iChartID, "ButtonSell", OBJPROP_YSIZE, 25);
ObjectSetString (iChartID, "ButtonSell", OBJPROP_TEXT, "SELL");