Opens a position with the specified parameters.
[in] Name of trade instrument, by which it is intended to open position.
[in] Order type (trade operation) to open position from ENUM_ORDER_TYPE enumeration.
[in] Requested position volume.
[in] Price at which the position must be opened.
[in] Price at which the Stop Loss will trigger.
[in] Price at which the Take Profit will trigger.
[in] Position comment.
true - successful check of the basic structures, otherwise - false.
Successful completion of the PositionOpen(...) method does not always mean successful execution of the trade operation. It is necessary to check the result of trade request (trade server return code) using ResultRetcode() and value returned by ResultDeal().