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

How to open an order using OrderSend #236

Open
raykavin opened this issue Nov 22, 2020 · 1 comment
Open

How to open an order using OrderSend #236

raykavin opened this issue Nov 22, 2020 · 1 comment

Comments

@raykavin
Copy link

I'm trying to open an order, but some arguments like stoploss and takeprofit are not sent with the score due to conversion to double, when the order arrives in MetaTrader it informs that the levels of stop loss or take profit are incorrect.
If possible give me some examples of how to use OrderSend.
Thanks!

@eabase
Copy link
Contributor

eabase commented Nov 23, 2020

@RKDEVSYS

  1. This repo is for both MT4 and MT5, please edit your post and make sure to tell us what you are using.
  2. Please provide a code snippet of what you have tried, and what part is not working.
  3. Error messages?
  4. Re-compile the EA and remove the comment (so to enable debug.
    5, Make sure you are able to execute the same trade also in your terminal, to be sure that your broker have not blocked too tight trades.

https://github.com/vdemydiuk/mtapi/blob/master/mq4/MtApi.mq4#L48

//#define __DEBUG_LOG__

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

No branches or pull requests

2 participants