MQL4参考 物件函数 ObjectGetFiboDescription

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

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

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()