Post the code, using the SRC button in the toolbar and somebody may be able to fix it.
#property indicator_width1 2
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");
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
Set some graph lines to the colour "None" within the code rather than for me to keep setting it within the indicator properties.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?