how do I add a button on the chartwindow
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");
how do I add a button on the chartwindow
can do some thing like "Buy" "Sell"