Thread: icustom
View Single Post
  #8 (permalink)  
Old 06-26-2006, 02:50 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Quote:
Originally Posted by maje
You could indicate a practical example to me how to write icustom to have the last value for the indicator mentioned in top?

Thanks
To get the last value of the indicator mentioned above for the current bar:

double val1= iCustom(NULL,0,"SOLAR WIND",10,2,0);

And for the previous bar use:

double val1= iCustom(NULL,0,"SOLAR WIND",10,2,1);
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote