how do I add a button on the chartwindow

Back to topics list To post a new topic, please log in or register
avatar
11
kuolung 2015.10.14 06:49
 

how do I add a button on the chartwindow

can do some thing like "Buy" "Sell"

avatar
108
eddie 2015.10.14 18:51 #
 

You have to add Objects.


  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");


Back to topics list  

To add comments, please log in or register