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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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