I know that for a label I can use:
ObjectCreate("MN1", OBJ_LABEL, 0, 0, 0); ObjectSetText("MN1", "MN1", 10, "Arial", Yellow); ObjectSet("MN1", OBJPROP_CORNER, 4); ObjectSet("MN1", OBJPROP_XDISTANCE, 1127); ObjectSet("MN1", OBJPROP_YDISTANCE, 231);
And for objects I can use this:
ObjectCreate("SignalSell_"+Time[0], OBJ_ARROW, 0, Time[0], price); ObjectSet("SignalSell_"+Time[0], OBJPROP_ARROWCODE, 234); ObjectSet("SignalSell_"+Time[0], OBJPROP_COLOR, Red);
...but the arrow objects only allow for a position with candlesticks....I want it to stay fixed with an (X,Y) position. Is that possible?
irusoh1:
Try OBJ_LABEL with "Wingdings" for font and corresponding charcater for arrow
So...
ObjectCreate("MN1", OBJ_LABEL, 0, 0, 0); ObjectSetText("MN1", 74, 10, "Arial", Yellow); // <---where 74 would be the wingding? ObjectSet("MN1", OBJPROP_CORNER, 4); ObjectSet("MN1", OBJPROP_XDISTANCE, 1127); ObjectSet("MN1", OBJPROP_YDISTANCE, 231);
Doing so didn't actually change it to a wingding. It just made it not work at all...or am I using the wingding wrong?
Sweet, just saw a good example....here's what I did:
ObjectCreate("M30", OBJ_LABEL, 0, 0, 0); ObjectSetText("M30", CharToStr(241), 10, "Wingdings", Yellow); ObjectSet("M30", OBJPROP_CORNER, 4); ObjectSet("M30", OBJPROP_XDISTANCE, 1127); ObjectSet("M30", OBJPROP_YDISTANCE, 171);
Thanks for the push!
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
How can I add an arrow to a fixed position using x,y coordinates?
Labels allow you to do that but not the arrows...so what other tricks are there for doing this?