How do you set an indicator color to "NONE" as default

 

Hello Forum,

Just wondering if it is possible to have an indicator color set to none

Have been experimenting with buffers and if I adjust the properties of my indicator once attached to a chart and set color to "NONE", it looks like my desired outcome

But if I try and set the default within the code I get an error "indicator_color" defined value expected

Is there a way round this?

thanks in advance

 
pullend:

Hello Forum,

Just wondering if it is possible to have an indicator color set to none

Have been experimenting with buffers and if I adjust the properties of my indicator once attached to a chart and set color to "NONE", it looks like my desired outcome

But if I try and set the default within the code I get an error "indicator_color" defined value expected

Is there a way round this?

thanks in advance

Hi pullend

This won't draw any line, histo, or whatever

SetIndexStyle(0, DRAW_NONE, STYLE_SOLID, 2, Red);

 
onewithzachy:

Hi pullend

This won't draw any line, histo, or whatever

SetIndexStyle(0, DRAW_NONE);// no style , no thickness, no color
 
pullend:

Hello Forum,

Just wondering if it is possible to have an indicator color set to none

Have been experimenting with buffers and if I adjust the properties of my indicator once attached to a chart and set color to "NONE", it looks like my desired outcome

But if I try and set the default within the code I get an error "indicator_color" defined value expected

Is there a way round this?

thanks in advance

Try CLR_NONE
 
onewithzachy:

Hi pullend

This won't draw any line, histo, or whatever


Thanks your suggestion works very nicely!
 
RaptorUK:
Try CLR_NONE


Both suggested methods work very nicely, thank you!
Reason: