MQL5 Reference: missing POSITION_COMMISSION

 

Hi

during these corona flawed days/weeks/months/years/decades  I have a lot of time: I discovered a little problem in the MQL5 documentation.

In   MQL5 Reference / List of MQL5 Constants there is an entry

POSITION_COMMISSION

Commission

PositionGetDouble



But I cannot find this information in

MQL5 Reference / Constants, Enumerations and Structures / Trade Constants / Position Properties:

ENUM_POSITION_PROPERTY_DOUBLE

Identifier

Description

Type

POSITION_VOLUME

Position volume

double

POSITION_PRICE_OPEN

Position open price

double

POSITION_SL

Stop Loss level of opened position

double

POSITION_TP

Take Profit level of opened position

double

POSITION_PRICE_CURRENT

Current price of the position symbol

double

POSITION_SWAP

Cumulative swap

double

POSITION_PROFIT

Current profit

double



Where is POSITION_COMMISSION??

I'm working with build 2755.

Matthias

-- weltenweiter Wanderer --

 
There is no POSITION_COMMISSION. There only is DEAL_COMMISSION https://www.mql5.com/en/docs/constants/tradingconstants/dealproperties
 
Enrique Dangeroux:
There is no POSITION_COMMISSION. There only is DEAL_COMMISSION https://www.mql5.com/en/docs/constants/tradingconstants/dealproperties
But in 
MQL5 Reference / List of MQL5 Constants there is an entry
POSITION_COMMISSION
????
 

The documentation can use a revision or two.

Note that with Forex, the total round trip commission is known only after the position is closedMost likely the reason why there is no POSITION_COMMISSION. Thus, there is DEAL_IN commission and DEAL_OUT commission. Due to difference in exchange rate it is possible for them not to be the same.