MT4自带的iExposure指标挺好用的。但美中不足的就是无法在主图表里显示。 我一开始也是想当然地认为把“#property indicator_ separate_window”修改为“#property indicator_chart_window”就万事大吉了。事实是…
#property indicator_chart_window //--- indicator parameters input int InpPeriod=14; //移动平均周期 //--- buffers double ExtMapBuffer[]; double ExtTrendBuffer[]; double ExtSignalBuffer[]; //+---+ //| Custom indicator initialization function | //+---+ int OnInit() { //--- indicator...
#property indicator_chart_window #property indicator_buffers 1 #property indicator_plots 1 #property indicator_type1 DRAW_LINE #property indicator_color1 Red input int MAPeriod = 13;input int MAShift = 0;double ExtLineBuffer[];//+---+ //| 自定义指标初始化函数 | //+---...
#propertystacksize1024 以下是全部的参数名称: 参数名称种类说明 link string 设置一个链接到公司网站 copyright string 公司名称 stacksize int 货仓大小 indicator_chart_window void 显示在走势图窗口 indicator_separate_window void 显示在新区块 indicator_buffers int 显示缓存最高8 indicator_minimum int 图形区间...
#property stacksize 1024 以下是所有的参数名称: 参数名称类型说明link string 设置一个链接到公司网站copyright string 公司名称stacksize int 堆栈大小indicator_chart_window void 显示在走势图窗口indicator_separate_window void 显示在新区块indicator_buffers int 显示缓存最高8 indicat 13、or_minimum int 图形...
-> OneClick modules/terminal/oneclick.mqh Simulate clicks on the One Click Window 1.0 -> AutoTrading modules/terminal/autotrading.mqh Toggle the Auto Trading button in the terminal from code 1.0 -> KeyMap modules/terminal/keymap.mqh Detect and return as a string a key pressed by the user...
property indicator_chart_window声明在主图显示 property indicator_buffers 2设置缓冲区数量 property indicator_color1 clrRed设定均线颜色 property indicator_width1 2控制线体粗细 缓冲区初始化环节要注意: SetIndexBuffer(0,ExtMAPuffer,INDICATOR_DATA);绑定数据数组 PlotIndexSetInteger(0,PLOT_DRAW_TYPE,DRAW_LINE...
indicator_chart_window void 显示在走势图窗口 indicator_separate_window void 显示在新区块 indicator_buffers int 显示缓存最高8 indicator_minimum int 图形区间最低点 indicator_maximum int 图形区间最高点 indicator_colorN color 第N根线的颜色,最高8根线 indicator_levelN ...
MQL Wizard: Selecting Event Handlers When Creating an Indicator The last step allows you to define the part of the chart in which the lines will be displayed: it can be the main window (by default) or a separate subwindow below the chart (if you enable the flagIndicator in a separate ...
#property indicator_chart_window #property indicator_buffers 3 //#property indicator_color1 Blue #property indicator_color2 White #property indicator_color3 Blue //int indicator_color3; //--- indicator parameters extern int MAperiod=10; //---indicator buffers double ind_buffer0[]; double ind_...