Buy
Opens a long position with specified parameters.
bool Buy(
double volume,
const string symbol=NULL,
double price=0.0,
double sl=0.0,
double tp=0.0,
const string comment=""
) |
Parameters
volume
[in] Position volume.
symbol=NULL
[in] Position symbol. If the symbol isn't specified, the current symbol will be used.
price=0.0
[in] Price. If the price isn't specified, the current market Ask price will be used.
sl=0.0
[in] Stop Loss price.
tp=0.0
[in] Take Profit price.
comment=""
[in] Comment.
Returned value
Note