name=ObjectName(i-1);
===
string ObjectName( int index)
The function returns the object name by its index in the objects list. To get the detailed error information, one has to call the GetLastError() function.
Parameters:
index - Object index in the objects list. Object index must exceed or equal to 0 and be less than ObjectsTotal().
===
===
string ObjectName( int index)
The function returns the object name by its index in the objects list. To get the detailed error information, one has to call the GetLastError() function.
Parameters:
index - Object index in the objects list. Object index must exceed or equal to 0 and be less than ObjectsTotal().
===
Thanks a lot, Slawa. That made a breakthrough for me ! Now I have got my first break_alert indicator, very useful.
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
Beginner.....I wrote a very simple code. Please help me find out why "name" and "typ" turned out empty or something ?
MT4 says:
object name passed to ObjectType function cannot be an uninitialized or empty string
BTW, "int start()" runs once when every tick happens once, am I right ?