The function calculates the profit for the current account, based on the parameters passed. The function is used for pre-evaluation of the result of a trade operation. The value is returned in the account currency.
[in] Symbol for trade operation.
[in] Type of trade operation from ENUM_ORDER_TYPE enumeration.
[in] Volume of trade operation.
[in] Open price.
[in] Close price.
If successful, it returns amount of profit or EMPTY_VALUE in the case of error.