vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
514 stars 277 forks source link

Implement CTrade functions Buy/Sell #202

Closed vdemydiuk closed 3 years ago

vdemydiuk commented 3 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 3 years ago

Implemented.