Download MetaTrader 5

InfoDouble

Gets the value of specified double type property.

bool  InfoDouble(
   ENUM_POSITION_PROPERTY_DOUBLE  prop_id,     // property ID
   double&                        var          // reference to variable
   ) const

Parameters

prop_id

[in]  ID of double type property from ENUM_POSITION_PROPERTY_DOUBLE enumeration.

var

[in]  Reference to double type variable to place result.

Return Value

true — success, false — unable to get property value.

Note

The position should be selected using the Select (by ticket) or SelectByIndex (by index) methods.


Updated: 2016.05.30