View Single Post
 
Old 11-18-2005, 05:30 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Talking iCustom to get the current line color of LSMA.

Quote:
Originally Posted by homicida
but you could probably post how youve done it ^^
greets homi
homicida,

I'm so sorry for the delay.

Please find attached modified version of LSMA and iCustom_Demo.

I've added a new buffer to LSMA to hold the current color (1=red, 2=green and 3=yellow).
Where's (1=downtrend , 2=uptrend and 3=no trend).

To use iCustom function to get the value of this buffer, you may write:

Code:
double clr = iCustom(NULL,0,"LSMA in Color",14,1500,5,0);
Attached Files
File Type: mq4 iCustom_Demo.mq4 (1.6 KB, 211 views)
File Type: mq4 LSMA in Color.mq4 (3.2 KB, 233 views)
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm