Hi,
This code is problem because if not exists returns 0.
I think is problem because the code use for all OrdersTotal in the same time, but I need to get only ticketId for OP_BUY first, and OP_SELL first.
So, I need to get Open price from ordertotal OP_BUY and OP_SELL.
How to do this?
- Problem with retrieving first row with my code
- op_buy not work
- Problem with total amount of open orders
- You are selecting by ticket number. Therefor you will get pending orders, deleted pending orders, and closed orders.
- Remove the semicolon after the select.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register