MQL4 Reference Object Functions ObjectGetFiboDescription


Returns the level description of a Fibonacci object.

string  ObjectGetFiboDescription(
   string   object_name,   // object name
   int      index          // level index



[in]  Fibonacci object name.


[in]  Index of the Fibonacci level (0-31).

Return Value

The level description of a Fibonacci object. To get the detailed error information, one has to call the GetLastError() function.


The amount of Fibonacci levels depends on the object type. The maximum amount of Fibonacci levels is 32.

When this function is used on the current chart, this chart is accessed directly, while in order to receive the properties of an object on a different chart, a synchronous call is used. The synchronous call means that the function waits for the execution of all commands that have been enqueued for this chart prior to its call, that is why this function can be time consuming. This feature should be taken into account when working with a large number of objects on a chart.


#include <stdlib.mqh>
  string text;
  for(int i=0;i<32;i++)
     //---- check if your object has less than 32 levels
     if(GetLastError()!=ERR_NO_ERROR) break;
     Print(MyObjectName," level index: ",i," description: ",text);

See also