indicator values are not update as shown in chart New comment Darshana111 2011.12.27 16:01 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 a couple of very basic questions pls How to code? What am I doing wrong? qjol 2011.12.27 16:04 #1 idax[i]= iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,i); next time New comment
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