Create arrow object

 

Hello,

What is the code to create an arrow object? How do you tell it which direction to point? I want to be able to have an arrow point up or down depending on some internal indicators of my own. It doesn't matter where on the screen it is, but I would like to be able to control the position in pixals just like labels and text objects.

Thank you ahead of time for any help.

 

ObjectCreate(name, OBJ_ARROW, time, price, 0, 0)

ObjectSet( name, OBJPROP_ARROWCODE, 241) -- see WingDings for where 241 comes from

Can't directly control it by pixels.

Create a text label and give it a character from the wingding list to do that.

 

Thank you for the fast accurate reply! It's very much appreciated.

Reason: