nandocabrera87: I need to draw rectangle objets but only with borders, no background (check attached samples). Could you give me some code sample?
Draw four lines (trendlines OBJ_TREND). Or use two channels (OBJ_CHANNEL), one for the vertical sides and one for the horizontal sides.
![OBJ_TREND - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference OBJ_TREND - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference](https://c.mql5.com/36/54/obj-trend-object-types-objects.png)
OBJ_TREND - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
- docs.mql4.com
OBJ_TREND - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
nandocabrera87:
Dear all, hope you are fine,
I need to draw rectangle objets but only with borders, no background (check attached samples).
Could you give me some code sample?
Thank you!
If you do not set the rectangle object as a background, then you can also not fill it and just get the outline
ObjectSetInteger(0,"Rectangle",OBJPROP_FILL,false); ObjectSetInteger(0,"Rectangle",OBJPROP_BACK,false);
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Dear all, hope you are fine,
I need to draw rectangle objets but only with borders, no background (check attached samples).
Could you give me some code sample?
Thank you!