Drawing Arrows in MQL4 Tutorial

 

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.

   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.

I hope it will help some newbies.

Reason: