Opens a long position with specified parameters.
[in] Requested position volume.
[in] Position symbol. If it is not specified, the current symbol will be used.
[in] Price. If the price is not specified, the current market Ask price will be used.
[in] Stop Loss price.
[in] Take Profit price.
true - successful check of the structures, otherwise - false.
Successful completion of the Buy(...) 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().