vdemydiuk / mtapi

MetaTrader API (terminal bridge)
MIT License
530 stars 285 forks source link

Implement CTrade functions Buy/Sell #202

Closed vdemydiuk closed 4 years ago

vdemydiuk commented 4 years ago

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 )

vdemydiuk commented 4 years ago

Implemented.