- Login
- TradeMode
- TradeModeDescription
- Leverage
- StopoutMode
- StopoutModeDescription
- MarginMode
- MarginModeDescription
- TradeAllowed
- TradeExpert
- LimitOrders
- Balance
- Credit
- Profit
- Equity
- Margin
- FreeMargin
- MarginLevel
- MarginCall
- MarginStopOut
- Name
- Server
- Currency
- Company
- InfoInteger
- InfoDouble
- InfoString
- OrderProfitCheck
- MarginCheck
- FreeMarginCheck
- MaxLotCheck
OrderProfitCheck
La fonction calcule le profit du compte courant basé sur les paramètres passés. La fonction est utilisée pour pré-évaluer le résultat d'une opération de trading. La valeur est retournée dans la devise du compte.
double OrderProfitCheck(
|
Paramètres
symbol
[in] Symbole de l'opération de trading.
trade_operation
[in] Type de l'opération de trading (énumération ***ENUM_ORDER_TYPE).volume[in] Volume de l'opération de trading.price_open[in] Prix d'ouverture.price_close[in] Prix de clôture.Valeur de retourEn cas de succès, retourne le montant du profit, ou EMPTY_VALUE en cas d'erreur.