check if the object already exists then skip creation once it is found.
ObjectFind
The function searches for an object having the specified name. There are two variants of the function:
The function searches the object with the specified name:
int ObjectFind( string object_name // object name ); |
Parameters
chart_id
[in] Chart identifier.
object_name
[in] The name of the object to find.
Return Value
If successful the function returns the number of the subwindow (0 means the main window of the chart), in which the object is found. If the object is not found, the function returns a negative number.
thank you.
That helpt
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.
I'm very new to coding so this is probobly done horobly wrong but i still get what i want to happen to happen but to often.
In the code bellow i creat objects at specific creatiria but my problem is that it keeps creating objects with every pip.
How can i make this code just creat one object if the createria is meet?
Hope to get some helpful pointers here.
// Mathias