I have seen many are looking for how to draw an arrow. I am writing this to explain how to draw an arrow in a Label.
ObjectCreate("TrendArrow",OBJ_LABEL,0,0,0); // Create a label named TrendArrow
ObjectSet("TrendArrow", OBJPROP_XDISTANCE, 30); // Set distance on chart
ObjectSet("TrendArrow", OBJPROP_YDISTANCE, 200); // Set distance on chart
ObjectSetText("TrendArrow",CharToStr(242),18,"Wingdings",White); // CharToStr(242) "242" is arrow code for down. 18 is font size. Wingdings must be used to set as font, cause arrow code is from Wingdings font. White is color.
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.
Hi,
I have seen many are looking for how to draw an arrow. I am writing this to explain how to draw an arrow in a Label.
I hope it will help some newbies.