Download MetaTrader 5

Unable to set OBJ_ARROW_BUY and _SELL properties

To add comments, please log in or register
niquedegraaff 2016.04.25 02:28 
Not sure if this is a known problem but I'm unable to set the OBJ_ARROW_BUY and OBJ_ARROW_SELL properties.

string obj_name = PREFIX + " Arrow:" + TimeToStr(Time[i])
ObjectCreate(0, obj_name, OBJ_ARROW_SELL, 0, Time[i], Low[i] - (WindowPriceMax() - WindowPriceMin()) / 15);
ObjectSetInteger(0, obj_name, OBJPROP_STYLE, STYLE_SOLID);
ObjectSetInteger(0, obj_name, OBJPROP_COLOR, Red);


Results in
Wrong arrows

What am i doing wrong here?

Keith Watford
Keith Watford 2016.04.25 03:37  
string obj_name = PREFIX + " Arrow:" + TimeToStr(Time[i])

will not compile because you have missed the ; at the end of the line.

There does seem to be limitations to these arrows. You can change the colour, but not the size.

They do not print as they are described, in fact there seems to be no difference between OBJ_ARROW_BUY and OBJ_ARROW_SELL

If you are tring to emulate the trade open and close arrows use


for the trade open and arrow code 3 for the close

To add comments, please log in or register