Problem: message (Not Responding)

Hello. I have this problem:

when I try to associate a Custom indicator to window price, the screen goes gray color, without allowing me to touch anything, and I get this message (in the up part of the MT4 window): (Not Responding)

Can you help me with this?

Thanks for any help.

trader201

show the relevant code

qjol:

show the relevant code



int init()
{
SetIndexBuffer(0,Buf_0);
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,2);
return(0);
}

//--------


int deinit()
{
return(0);
}

//---------


int start()
{

int i,counted_bars;

//----

counted_bars=IndicatorCounted();
i=Bars-counted_bars-1;

//----

while (i>0)
{
Buf_0[i]=iADX(NULL,0,14,PRICE_HIGH,MODE_PLUSDI,i)-iADX(NULL,0,14,PRICE_HIGH,MODE_MINUSDI,i);
i--;
}

return(0);

}


  1. Problem is not with the code posted. Did you install in \program files*

do you refer to the mt4 program? (yes, I installed MT4 in program files)

trader201

Do not install MT4 in \program files* on Vista/Win7