I would like to create a rectangle with border color but the thing I coded didn't work.
I would like a yellow border color for example.
and The second question is : is there is a way to set the rectangle always on the foreground ? Because my EA draw horizontales lines and they are always on top of the rectangle and I would like the opposite??
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello,
I have two questions, the first one is :
I would like to create a rectangle with border color but the thing I coded didn't work.
I would like a yellow border color for example.
and The second question is : is there is a way to set the rectangle always on the foreground ? Because my EA draw horizontales lines and they are always on top of the rectangle and I would like the opposite??
here is my code
ObjectCreate(0, "objectBackgroundName", OBJ_RECTANGLE_LABEL, 0, 0, 0);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_XDISTANCE, 20);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_YDISTANCE, 20);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_XSIZE, 200);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_YSIZE, 350);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_BGCOLOR, clrBlack);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_BORDER_COLOR, clrYellow);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_BORDER_TYPE, BORDER_FLAT);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_WIDTH, 0);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_BACK, false);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_SELECTABLE, false);
ObjectSetInteger(0, "objectBackgroundName", OBJPROP_HIDDEN, true);
THANK YOU !