Download MetaTrader 5

Anchor (Get Method)

Gets the value of "Anchor" property.

ENUM_ANCHOR_POINT  Anchor() const

Return Value

Value of "Anchor" property of the object assigned to the class instance. If there is no object assigned, it returns WRONG_VALUE.

Anchor (Set Method)

Sets new value for "Anchor" property.

bool  Anchor(
   ENUM_ANCHOR_POINT  anchor      // property value



[in]  New value for "Anchor" property.

Return Value

true - success, false - cannot change the property.