You have to give each object a separate object name.
string obj_name = "up_arrow" + IntegerToString((int)this_bar_time); ObjectCreate(0, obj_name, OBJ_ARROW, 0, 0, 0, 0, 0); : :
This is just one example. Do it as you like.
Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Properties
- www.mql5.com
All objects used in technical analysis are bound to the time and price coordinates: trendline, channels, Fibonacci tools, etc. But there is a number of auxiliary objects intended to improve the user interface that are bound to the always visible part of a chart (main chart windows or indicator subwindows): – defines the chart corner relative to...
exactly, this works,
thanks for the insight!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
Just testing to draw dots on the chart in its simplest way. So i wrote this simple piece of code :
So i check once per minute the bid price and put a dot on that place, this works.
But now, the next minute the dot moves along with the new price check. How can we keep the series of previous dots?
Sorry for the newbie question, i can make EA's quite well but chart functions are completely new for me;
thanks!