Buy:
Opens a long position with specified parameters by current Ask price.
Related MQL function:
bool Buy(
double volume, // position volume
const string symbol=NULL, // symbol
double price=0.0, // execution price
double sl=0.0, // stop loss price
double tp=0.0, // take profit price
const string comment="" // comment
)
Sell:
Opens a short position with specified parameters by current Bid price.
Related MQL function:
bool Sell(
double volume, // position volume
const string symbol=NULL, // symbol
double price=0.0, // execution price
double sl=0.0, // stop loss price
double tp=0.0, // take profit price
const string comment="" // comment
)
Buy: Opens a long position with specified parameters by current Ask price. Related MQL function: bool Buy( double volume, // position volume const string symbol=NULL, // symbol double price=0.0, // execution price double sl=0.0, // stop loss price double tp=0.0, // take profit price const string comment="" // comment )
Sell: Opens a short position with specified parameters by current Bid price. Related MQL function: bool Sell( double volume, // position volume const string symbol=NULL, // symbol double price=0.0, // execution price double sl=0.0, // stop loss price double tp=0.0, // take profit price const string comment="" // comment )