MQL4 Reference Object Functions ObjectGetFiboDescription

MQL4 Help as One File:

ObjectGetFiboDescription

Returns the level description of a Fibonacci object.

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

Parameters

object_name

[in]  Fibonacci object name.

index

[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.

Note

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.

Example:

#include <stdlib.mqh>
  ...
  string text;
  for(int i=0;i<32;i++)
    {
     text=ObjectGetFiboDescription(MyObjectName,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

ObjectSetFiboDescription()