こんにちは、みんな、

私はiMAOnArray関数を使用していますが、次のインジケータを出力することができません。これをドラッグするインジケータウィンドウは空白のままです。

どんな助けもありがたい。

よろしく
スティーブ

// ----------------------------------------------- -------------------
//| iMAOnArray.mq4 |
//|コダーズ・グル|
//|
http://www.metatrader.info|
// ----------------------------------------------- -------------------

#property copyright Coders Guru
#property link http://www.metatrader.info


#property indior_separate_window
#property indior_color1 LawnGreen
#propertyインジケータの色2ダークブルー

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

int init()
{
IndiorDigits(MarketInfo(Symbol()、MODE_DIGITS));
SetIndexStyle(0、DRAW_LINE);
SetIndexBuffer(0、ExtMapBuffer1);

return(0);
}

int deinit()
{
return(0);
}

int start()
{
int bar、limit;

int counted_bars = IndiorCounted();
if(counted_barslt; 0)は、(-1)を返します。
if(counted_barsgt; 0)counted_bars--;
limit = 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 [bar] = iMAOnArray(RSI_Val、Bars、5,0、MODE_SMA、bar);

for(bar = 0; barlt; limit; bar ){
if(RSI_Val [bar] gt; RSI_Val_SMA [bar])
ExtMapBuffer1 [bar] = 1;
else
ExtMapBuffer1 [bar] = 0;
}

return(0);
}