longchart_id=ChartID(); stringsymbol=Symbol(); ENUM_TIMEFRAMESperiod=Period(); //--- 在日志中报告使用设置在SYMBOL和PERIOD中的值替换当前图表的交易品种和周期 PrintFormat("Change the %s symbol and the %s period of the chart %I64u to %s %s", ...
is not available for selectionObjectSetInteger(chart_id,name,OBJPROP_STATE,false);// button state (clicked/unclicked)ObjectSetInteger(chart_id,name,OBJPROP_ZORDER,z_order);// Z-order for getting the click eventObjectSetString(chart_id,name,OBJPROP_TOOLTIP,"\n");// no tooltip} } 相应地,...
0240、CHARTEVENT_OBJECT_CREATE—创建图解物件; 0241、CHARTEVENT_OBJECT_CHANGE—通过属性对话框改变物件属性; 0242、CHARTEVENT_OBJECT_DELETE—删除图解物件; 0243、CHARTEVENT_CLICK—鼠标单击图表; 0244、CHARTEVENT_OBJECT_CLICK—鼠标单击属于图表的图解物件; 0245、CHARTEVENT_OBJECT_DRAG—用鼠标移动图解物件; 0246...
Hello all, Long time lurker, first time poster, as I always find my answer by searching the forum. Not this time though, and I have been scratching my head for a while. After calling ChartSetSymbolPeriod (either to change Symbol or Period), my EA deinitializes (as it should), my cha...
0240、CHARTEVENT_OBJECT_CREATE—创建图解物件; 0241、CHARTEVENT_OBJECT_CHANGE—通过属性对话框改变物件属性; 0242、CHARTEVENT_OBJECT_DELETE—删除图解物件; 0243、CHARTEVENT_CLICK—鼠标单击图表; 0244、CHARTEVENT_OBJECT_CLICK—鼠标单击属于图表的图解物件; 0245、CHARTEVENT_OBJECT_DRAG—用鼠标移动图解物件; 0246...
(之 创建 创建 对象名 前名 6 0 0 CHARTEVENT_OBJECT_DELETE 名称 名称 称, 称对 等于 等于 对象名 象被 7 0 0 CHARTEVENT_OBJECT_CREATE 之前 没有警告 之前 称, 删除 名称 名称 对象名 而新 8 0 0 CHARTEVENT_OBJECT_CHANGE 对象 对象 称 对象 的创 的创 同时 建时 建时 创建) 间 间 修改...
“EA 交易”与指标有以下区别:时间表改变后,“EA 交易”仅生成带 REASON_CHARTCHANGE 原因参数的DeInit事件,而不会从内存卸载“EA 交易”和操作全局变量的值。允许我们在附加“EA 交易”后立即执行所有计算,更改其参数和出现的新数据,在我们的示例中为新交易日。
I'm trying to synchronize indicator values (for example: RSI) with EA. Here's the code #property strict #include <Trade\Trade.mqh> CTrade trade; input int RSIPeriod = 9 ; int rsiHandle; int OnInit () { rsiHandle = iRSI ( _Symbol , PERIOD_H1 , RSIPeriod, PRICE_CLOSE ); return...
markets are closed now, so if you put it on a chart you must then change to another period... as is, it will not send orders... clicking any button just alerts that the button was clicked... to send orders , that function must be created and then added to the onclick line... ...
0238、onchartevent 7、() 是chartevent 的处理程序:0239、chartevent_keydown 击键,图表窗口定格;0240、chartevent_object_create 创建图解物件;0241、chartevent_object_change 通过属性对话框改变物件属性;0242、chartevent_object_delete 删除图解物件;0243、chartevent_click 鼠标单击图表;0244、chartevent_object_...