iCustom run an indicator per buffer?

To add comments, please log in or register
KSforex
283
KSforex  

Hi

If I use iCustom like bellow to save 4 buffers, it run the indicator 4 time for each buffer and waste CPU and resources. I'm right?!



  Buffer[i]=iCustom(NULL,0,"CustomIndi",1,i);

  Buffer[i]=iCustom(NULL,0,"CustomIndi",2,i);

  Buffer[i]=iCustom(NULL,0,"CustomIndi",3,i);

  Buffer[i]=iCustom(NULL,0,"CustomIndi",4,i);

William Roeder
20214
William Roeder  

No.

iCustom sees if the indicator requested is on the chart with the parameters specified (all defaulted). If not, it adds the indicator (hidden.)

After that all it is doing is reading values from the specified buffer.

To add comments, please log in or register