MQL4参考 物件函数 ObjectGet

ObjectGet

Returns the value of the specified object property.

double  ObjectGet(
   string   object_name,   // object name
   int      index          // object property
   );

Parameters

object_name

[in]  Object name.

index

[in]  Object property index. It can be any of the Object properties enumeration values.

Returned value

The value of the specified object property. To check errors, one has to call the GetLastError() function.

Example:

  color oldColor=ObjectGet("hline12"OBJPROP_COLOR);

See also

ObjectSet()