indicator values are not update as shown in chart

 

HI

I hve a problem i wrote a simple scripte

#include <stdlib.mqh>

#include <WinUser32.mqh>

double idax[10];

//+------------------------------------------------------------------+

//| script "trading for all money" |

//+------------------------------------------------------------------+

int start()

{

//----

int i=0;

while(true){

idax[i]= iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,0);

Print("System to AskPrice",i,idax[i]);

i++;

if (i == 10)

i=0;

Sleep(1000);

}

//----

OrderPrint();

return(0);

}

//+------------------------------------------------------------------+

but it always show same value the chart present value doesnt updated

 
idax[i]= iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,i);

next time