To MeataQuotes:
Unless I am missing something the following function appears illogical since there may be more than one object assign to (i).
name=ObjectName(i);
How do you get all objects assign to (i)?
In addition, even if only one object is assign to (i) the function returns wrong name.
Never mind I did figured it out.
To MeataQuotes:
Unless I am missing something the following function appears illogical since there may be more than one object assign to (i).
i is not a name! it is a index of an object. you can retrieve names of all objects from 0 to ObjectTotal()-1
// object count on the chart. int obj_total=ObjectsTotal(); string name; for(int i=0;i<obj_total;i++) { // retrieving name of object number i name=ObjectName(i); Print(i,"Object name is " + name); }
only one index can refer to only one object at one moment, but the same object can have different indexes at different moments
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
Unless I am missing something the following function appears illogical since there may be more than one object assign to (i).
How do you get all objects assign to (i)?
In addition, even if only one object is assign to (i) the function returns wrong name.