MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Screenshot
EURJPY, M15
Real
Murrey Math Lines (support and resistance) Indicator
Murrey Math Lines (support and resistance)
Author: vdv2001
Step on New Rails: Custom Indicators in MQL5 Step on New Rails: Custom Indicators in MQL5 Ticks MomentumTicks Momentum Try product
Ticks Momentum
Author: dupter
Subscribe to signal
Rancheira Strategy ZK2 King
785.95%, 62 695.92 USD

InfoInteger

Gets the value of specified integer type property.

bool  InfoInteger(
   ENUM_POSITION_PROPERTY_INTEGER  prop_id,     // property ID
   long&                           var          // reference to variable
   ) const

Parameters

prop_id

[in]  ID of integer type property (value of ENUM_POSITION_PROPERTY_INTEGER enumeration).

var

[out]  Reference to long type variable to place result.

Returned value

true – in case of success, false – if unable to get property value.

Note

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


Updated: 2010.12.15