void OnChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam) { if(id==CHARTEVENT_OBJECT_CLICK) { string sender=sparam; if(sender=="Btnsell") OpenSell(); else if(sender=="Btnbuy") OpenBuy(); } }