Problem with iCustom or Indicator restriction?

 

Hi All,

I am trying to run an indicator using iCustom. The indicator has 8 values in the data window. When I iterate around a loop and output the values of buffers 0-7 to variables, from a number of the buffers, I just get back a value of 2147483647, but, the buffer(s) in question show a "correct" value, according to the data window. FWIW, regarding the code below, I have breakpoints in the code and am monitoring the variables in the watch window.

Any ideas why I'm not seeing the correct values from some of the buffers?

Thanks.

   for(int i=1000;i>0;i--)
     {

      double a = iCustom(NULL,0,"GWChart",0,i);
      
      double b = iCustom(NULL,0,"GWChart",1,i);
      double c = iCustom(NULL,0,"GWChart",2,i);
      double d = iCustom(NULL,0,"GWChart",3,i);
      double e = iCustom(NULL,0,"GWChart",4,i);
      double f = iCustom(NULL,0,"GWChart",5,i);
      double g = iCustom(NULL,0,"GWChart",6,i);
      double h = iCustom(NULL,0,"GWChart",7,i);
      
      if (i<5)
      DebugBreak();

     }
 

Geester:

I just get back a value of 2147483647,

That number is a special number.Perhaps something hasn't yet been initialized.

EMPTY_VALUE

Empty value in an indicator buffer. Default custom indicator empty value

2147483647 (0x7FFFFFFF)

 
Anthony Garot:

That number is a special number.Perhaps something hasn't yet been initialized.

EMPTY_VALUE

Empty value in an indicator buffer. Default custom indicator empty value

2147483647 (0x7FFFFFFF)

Hi Anthony, many thanks for confirming. As far as I can tell, there's nothing that I can initialise as the source indicator works just fine from its Input variable defaults <shrug>?
Reason: