Download MetaTrader 5
To add comments, please log in or register
You can test an application before buying it. Find out how to do that!
Hai Nguyen
116
Hai Nguyen 2014.03.11 22:51 

Hello,

I am trying to make the OBJ_ARROW_SELL point down, but not sure what is the problem. Can any one help?

qjol
3243
qjol 2014.03.11 22:52  
can we c the relevant code ?
Hai Nguyen
116
Hai Nguyen 2014.03.11 22:55  
qjol:
can we c the relevant code ?

I am sorry that attaching the image was unsuccessful the first time. Please reference the image in the initial post.
qjol
3243
qjol 2014.03.11 23:00  

please use SRC for code

Hai Nguyen
116
Hai Nguyen 2014.03.11 23:05  

I thought the picture would be easier to see. The code is nothing fancy.

int OnInit()
  {
   ObjectCreate    (0, "Arrow", OBJ_ARROW_SELL, 0, Time[1], High[1]);
   ObjectSetInteger(0, "Arrow", OBJPROP_COLOR, clrBlue);
   ObjectSetInteger(0, "Arrow", OBJPROP_ANCHOR, ANCHOR_BOTTOM);   
   return(INIT_SUCCEEDED);
  }
qjol
3243
qjol 2014.03.11 23:08  

OBJ_ARROW_DOWN or use Arrow codes

https://docs.mql4.com/constants/objectconstants/wingdings

aquarchitecture:

I thought the picture would be easier to see. The code is nothing fancy.

the code is needed in order to check it out so we use copy paste
Keith Watford
Moderator
7866
Keith Watford 2014.03.12 00:13  
aquarchitecture:

I thought the picture would be easier to see. The code is nothing fancy.


Your problem is because you have probably already created an object called "Arrow"

You can't create a new object with the same name.

Delete the object in OnDeinit

/
To add comments, please log in or register