Hello Men,

I'm playing the iMAOnArray function but am unable to find the following indior to have an outcome. The indior window I drag this into remains blank.

Any help appreciated.

Regards
Steve

// ------------------------------------------------------------------
//| iMAOnArray.mq4 |
//| Coders Guru |
//| http://www.metatrader.info |
// ------------------------------------------------------------------

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


#property indior_separate_window
#property indior_color1 LawnGreen
#property indior_color2 DarkBlue

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 begin()

int pub, limit;

int counted_bars=IndiorCounted();
if(counted_barslt;0) return(-1);
if(counted_barsgt;0) counted_bars--;
limit=Bars-IndiorCounted();


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

for(bar=0; barlt;limitation; pub )
RSI_Val_SMA[pub]=iMAOnArray(RSI_Val,Bars,5,0,MODE_SMA,pub);

for(bar=0; barlt;limitation; pub )
if(RSI_Val[pub]gt;RSI_Val_SMA[pub])
ExtMapBuffer1[pub] = 1;
else
ExtMapBuffer1[pub] = 0;


return(0);