Well... Think again.
Your first example Sets coordinates to what exactly?
You set them to zero.
Where on the chart is that?
An arrow is not a label. Your X/Y calls are meaningless/ignored.
William Roeder #:
An arrow is not a label. Your X/Y calls are meaningless/ignored.
An arrow is not a label. Your X/Y calls are meaningless/ignored.
In the mql4 version i wrote the following and it worked okay
if(PRICE>0.0) { // TP1 Arrow Colour Change & Tick ObjectSetInteger(0,"tp1",OBJPROP_COLOR,TakeProfitColor); ObjectCreate("artp1",OBJ_LABEL,0,0,0,0,0); ObjectSet("artp1",OBJPROP_XDISTANCE,xdist); ObjectSet("artp1",OBJPROP_YDISTANCE,47); ObjectSetText("artp1",CharToStr(252),16,"Wingdings",TakeProfitColor); }
Using OBJ_LABEL worked with OBJPROP_XDISTANCE okay and using ObjectSetText() i was able to make the winding 252 appear
But ObjectSetText() i cant find in mql5? Thats the problem? When i use OBJ_LABEL I cant find a way to use the windings?
On viewing https://www.mql5.com/en/articles/81 i can see ObjectSetText() but it looks like i use ObjectSetInteger but i cant see how to get the windings using ObjectSetInteger()?

Migrating from MQL4 to MQL5
- www.mql5.com
This article is a quick guide to MQL4 language functions, it will help you to migrate your programs from MQL4 to MQL5. For each MQL4 function (except trading functions) the description and MQL5 implementation are presented, it allows you to reduce the conversion time significantly. For convenience, the MQL4 functions are divided into groups, similar to MQL4 Reference.

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
Hi, when used as mql5 in the following code why does Example 2 display objects on chart okay but, in Example 1 it does not?