Transparent lines with SetIndexBuffStyle

How to create strategies and indicators
Message
Author
dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

Transparent lines with SetIndexBuffStyle

#1 Postby dackjaniels » Wed Aug 24, 2011 4:48 pm

Hi,

I'm trying to set an indicators lines to transparent from within my strategy.

I use...

Code: Select all

SetIndicatorBuffStyle(indSMA, 1, psSolid, 1, Transparent);


...but this sets the lines to black with a value of 000001 showing up for the color in indicator settings.
I've also tried using variations such a clTransparent and zero for the last parameter but the former is unidentified and the latter is also black.

Can you help?

Thanks,
Steve

FT Support
Posts: 905
Joined: Sat Jul 11, 2009 10:54 am

#2 Postby FT Support » Fri Aug 26, 2011 11:33 am

Hello Steve,

Please try "clNone" color. I think it will work fine. Or you can set drawStyle=ds_None
Check our other product here:
http://www.forexcopier.com

dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

#3 Postby dackjaniels » Fri Aug 26, 2011 6:12 pm

Thanks. clNone worked fine.

Steve


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 8 guests