How can I ensure that the default colour for every manually drawn rectangle object is yellow till I change it manually?
The default is the last color. Create a blue one.
Jackery:
I know how to set the colour of a rectangle object programmatically, as below. I want to set a default colour that every manually created rectangle is set to in such a way that I can change the colour after creating it. For example, every rectangle manually created is yellow but I can change it to say, blue. How can this be done?
Files:
ChangeRectColour.mq4
4 kb

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- 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
I know how to set the colour of a rectangle object programmatically, as below. I want to set a default colour that every manually created rectangle is set to in such a way that I can change the colour after creating it. For example, every rectangle manually created is yellow but I can change it to say, blue. How can this be done?