嗨,大家好,

我正在玩iMAOnArray函数,但无法获得以下指标来输出结果。我拖动到此的指示器窗口保持空白。

任何帮助赞赏。

问候
史蒂夫

// ----------------------------------------------- -------------------
//| iMAOnArray.mq4 |
//|编码大师|
//|
http://www.metatrader.info|
// ----------------------------------------------- -------------------

#property版权所有者Guru
#property链接http://www.metatrader.info


#property indior_separate_window
#property indior_color1 LawnGreen
#property指示符颜色2深蓝色

double ExtMapBuffer1 [];
双RSI_Val [];
双RSI_Val_SMA [];

int init()
{
IndiorDigits(MarketInfo(符号(),MODE_DIGITS));
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);

返回(0);
}

int deinit()
{
返回(0);
}

int start()
{
int bar,limit;

int counted_bars = IndiorCounted();
if(counts_barslt; 0)return(-1);
if(counts_barsgt; 0)counting_bars--;
极限=棒材 - IndiorCounted();


for(bar = 0; barlt; limit; bar )
RSI_Val [bar] = iCustom(NULL,0,RSI,0,0,bar);

for(bar = 0; barlt; limit; bar )
RSI_Val_SMA [巴] = iMAOnArray(RSI_Val,酒吧,5,0,MODE_SMA,巴);

for(bar = 0; barlt; limit; bar ){
如果(RSI_Val [巴] GT; RSI_Val_SMA [巴])
ExtMapBuffer1 [bar] = 1;
其他
ExtMapBuffer1 [bar] = 0;
}

返回(0);
}