MQL4 Reference
Object functions
ObjectGetFiboDescription
| string ObjectGetFiboDescription( |
string name, int index) |
The function returns the level description of a Fibonacci object.
The amount of Fibonacci levels depends on the object type. The maximum amount of Fibonacci levels is 32.
To get the detailed error information, one has to call the GetLastError() function.
See also ObjectSetFiboDescription() function.
Parameters:
| name |
- |
Fibonacci object name. |
| index |
- |
Index of the Fibonacci level (0-31). |
Sample:
#include <stdlib.mqh>
...
string text;
for(int i=0;i<32;i++)
{
text=ObjectGetFiboDescription(MyObjectName,i);
//---- checking whether the objects has less than 32 levels
if(GetLastError()!=ERR_NO_ERROR) break;
Print(MyObjectName,"level: ",i," description: ",text);
}
|
|
|