Download MetaTrader 5

OBJ_ARROW_SELL Question

To add comments, please log in or register
Hai Nguyen
116
Hai Nguyen  

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  
can we c the relevant code ?
Hai Nguyen
116
Hai Nguyen  
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  

please use SRC for code

Hai Nguyen
116
Hai Nguyen  

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  

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
9641
Keith Watford  
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