This forum is now read-only. You can discuss you questions on Forums of MQL4.community and MQL5.community
How to position an arrow?Back to topics list |
|
ivo
2005.05.26 11:27
Hello
I cannot find any working example about OBJPROP_XDISTANCE. I would like to position and arrow ObjectSet(up_ar, OBJPROP_ARROWCODE, SYMBOL_ARROWUP);
ObjectCreate(up_ar, OBJ_ARROW, 0, iTime(NULL, 0, 0), iClose(NULL, 0, 0) ); // create the arrow
ObjectSetText(up_ar, "Buy!", 10, NULL, Lime); // attach a lable to the arrow
ObjectSet(up_ar, OBJPROP_ARROWCODE, SYMBOL_ARROWUP); // chose symbol
ObjectSet(up_ar, OBJPROP_COLOR, Lime); // and color
ObjectSet(up_ar, OBJPROP_WIDTH, 5); // and width
ObjectsRedraw(); // let's see what is done ;-)
|
4464 |
Slawa
2005.05.26 11:54
x-distance and y-distance are applied to TextLabel object only
for Arrow object should be used time and price coordinates |
|
ivo
2005.05.26 12:50
x-distance and y-distance are applied to TextLabel object only for Arrow object should be used time and price coordinates Would you give me a sample please? 10x Ivo |
|
ivo
2005.05.26 22:52
|
4464 |
Slawa
2005.05.27 11:17
Thank You, Ivo, for collaboration :-) |
