Unfortunately this looks like a "bug" problem with Build 600.
On build 509, the code does make the line disappear and shows "NONE" in the parameter box
Notice the difference in behavior of the same code in the object properties.
Build 509
ObjectSet(FName ,OBJPROP_COLOR,CLR_NONE);
Build 600
ObjectSet(FName ,OBJPROP_COLOR,CLR_NONE);
I have solved my problem.
In build 509, using Print to see the value of CLR_NONE = -1
In build 600, using Print to see the value of CLR_NONE = 4294967925
So the issue is in build 600 compiler for this constant.
If Use the following code in Build 600 my problem is solved:
ObjectSet(FName ,OBJPROP_COLOR,-1);
I have solved my problem.
In build 509, using Print to see the value of CLR_NONE = -1
In build 600, using Print to see the value of CLR_NONE = 4294967925
So the issue is in build 600 compiler for this constant.
If Use the following code in Build 600 my problem is solved:
Build 600 is obsolete. This bug is already corrected in current build 610.
Please double posts, it's useless. Thank you.
Unfortunately this looks like a "bug" problem with Build 600.
On build 509, the code does make the line disappear and shows "NONE" in the parameter box
Notice the difference in behavior of the same code in the object properties.
Sorry I did not know build 600 is obsolete. It is latest version which downloaded from my broker.
Also did not mean to double post. First one was a question that I solved shortly after posting.
Second post was to report the bug. I did search and didn't find it first.
Once again, sorry if I didn't post correctly.
I appreciate this forum and thank you as always for the quick responses!
--Steve
I have solved my problem.
In build 509, using Print to see the value of CLR_NONE = -1
In build 600, using Print to see the value of CLR_NONE = 4294967925
So the issue is in build 600 compiler for this constant.
If Use the following code in Build 600 my problem is solved:
I already replied but someone helpfully removed my post.
In build 509 CLR_NONE is . . .
CLR_NONE | 0xFFFFFFFF | Indicates empty state of colors. |
In build 600 CLR_NONE is . . .
CLR_NONE, clrNONE | Absence of color. Indicates empty state of colors | -1 |
Sorry my mistake. Removed the double post too quickly. I should not do that so late.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I'm working on an indicator and using the fibo tool to plot lines. Everything works as I want except one minor thing.
I would like to get rid of the fibo slanted line shown below in first screen shot..
In MT4, I can edit the object and pick Color = NONE and it disappears (see bottom screen shot).
In my code, I cannot seem to find the value to use . I try the below CLR_NONE and the line still shows as black (see first screen shot).
Is there some value I can use in my code to make this line disappear?
Thank you in advance,
Steve
Want it to look like this.