Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CTrade functions Buy/Sell #202

Closed
vdemydiuk opened this issue Sep 4, 2020 · 1 comment
Closed

Implement CTrade functions Buy/Sell #202

vdemydiuk opened this issue Sep 4, 2020 · 1 comment

Comments

@vdemydiuk
Copy link
Owner

vdemydiuk commented Sep 4, 2020

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
Copy link
Owner Author

Implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant