Graph lines indicator help required

 

Hi there - I am not a programmer but I am trying to manipulate a piece of code from an mq4 file which affects the graph lines of an indicator.

Two things I'm trying to do:

1)
Set some graph lines to the colour "None" within the code rather than for me to keep setting it within the indicator properties.

Code:

#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_color3 Green

I've tried to set it to 0 but the lines just end up black. Using the word None results in errors when compiled. Trying 255.255.255 as it appears in the indicator properties when set to None also results in errors when compiled.


2)
Set the lines to a thicker width.


I've tried searching for the solution but can't find anthing :(

Please can you let me know how these can be achieved?


 

Post the code, using the SRC button in the toolbar and somebody may be able to fix it.

#property indicator_width1 2
 

Try CLR_NONE

For your line properties you can also use SetIndexStyle()

 

To get an invisible line you can set the relevant buffer draw style like this ...

   SetIndexBuffer(0,SUPPORT);
   SetIndexStyle (0,DRAW_NONE);
   SetIndexLabel (0,"support");
   
   SetIndexBuffer(1,RESISTANCE);
   SetIndexStyle (1,DRAW_NONE);
   SetIndexLabel (1,"resistance");
   
   SetIndexBuffer(2,SMMA);
   SetIndexStyle (2,DRAW_LINE);
   SetIndexLabel (2,"SMMA");
 
RaptorUK:
Try CLR_NONE

In other words ...

#property  indicator_color3 CLR_NONE

which does work :-)

 

You lot are great!

The following did the trick:

CLR_NONE

#property indicator_width1 2

Thank you!

 
silvergerbil:
Set some graph lines to the colour "None" within the code rather than for me to keep setting it within the indicator properties.
Just add extra non-displayed buffers like Inverse Distance Weighted Moving Average (IDWma) - MQL4 Code Base
Reason: