Hi
I expected to get a different integer for different colors in order to be able to change the color of a label from green to gray but only if it is currently green. the code below is returning the same integer regardless of the the color. Why? and how to go about it?
Thanks
int obj_color_integer = ObjectGetInteger(0,lAlert,OBJPROP_BGCOLOR,0);
Hi
I expected to get a different integer for different colors in order to be able to change the color of a label from green to gray but only if it is currently green. the code below is returning the same integer regardless of the the color. Why? and how to go about it?
Thanks
Already discussed, please use the search engine before posting.
You just created your object, it's not yet draw/updated yet on the chart. Anyway your code doesn't make sense, you know the color, you just set it.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
I expected to get a different integer for different colors in order to be able to change the color of a label from green to gray but only if it is currently green. the code below is returning the same integer regardless of the the color. Why? and how to go about it?
Thanks