I have placed this in onTick() method.
https://www.mql5.com/en/forum/131405
Have found example, but I see by docs ObjectCreate requires more paramters, tried adding them also. No errros , no arrow.
Noticed that arrow actually is drawed but it is at the end of chart. And when turned on visual mode, I noticed it moves as time goes. When I draw object, I expect it to not move.
Inserted Code
ObjectCreate("pasol", OBJ_ARROW, 0, Time[0], 104.9, Time[0], 104, Time[0], 104.1); //draw an up arrow ObjectSet("pasol", OBJPROP_STYLE, STYLE_SOLID); ObjectSet("pasol", OBJPROP_ARROWCODE, SYMBOL_ARROWUP); ObjectSet("pasol", OBJPROP_COLOR,LineColor);
https://www.mql5.com/en/forum/131405
Have found example, but I see by docs ObjectCreate requires more paramters, tried adding them also. No errros , no arrow.
Noticed that arrow actually is drawed but it is at the end of chart. And when turned on visual mode, I noticed it moves as time goes. When I draw object, I expect it to not move.