Errors, bugs, questions - page 1790
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
And when an order is already placed, something is returned?
ORDER_STATE_PLACED.
Identifier
Description
ORDER_STATE_STARTED
Order checked for validity, but not yet accepted by broker
ORDER_STATE_PLACED
Order_state_placed
You send a trade request (OrderSend) - its correctness is checked and if it is OK, the return is true. I.e., this is a response about correctness of trade request. The server has not yet received this request.
Further, when the request is accepted by the server, the response will be returned: ORDER_STATE_PLACED - order is set.
I cannot be sure, but that is how it logically works. I do not know any pitfalls.
Well it is already described:
Identifier
Description
ORDER_STATE_STARTED
Order checked for validity, but not yet accepted by broker
ORDER_STATE_PLACED
Order_state_placed
Send trade request (OrderSend) - its correctness is checked and if OK, it returns true. I.e. it is a response that the trade request is correct. The server has not yet received this request.
Further, when the request is accepted by the server, the response will be returned: ORDER_STATE_PLACED - order is set.
I cannot be sure, but that is how it logically works. I do not know what to avoid.
You send a trade request (OrderSend) - its correctness is checked and, if OK, it returns true. I.e., this is a response that the trade request is correct. The server has not yet received this request.
Then how is OrderSend different from OrderSendAsync (apart from the name) ?
I wrote above - just my idea of logic. I've been working in 4 for a long time. Therefore, I am unlikely to answer this question ;)
Look at paragraph 7 here https://www.mql5.com/ru/forum/23/page19#comment_2632240
Look here https://www.mql5.com/ru/forum/23/page19#comment_2632240
The explanation to the described case may be that the server on the old build
Forum on trading, automated trading systems and strategy testing
Changes in MetaTrader 5 Client Terminal builds
MetaQuotes Software Corp., 2016.07.14 15:30
Below is a schematic representation of the previous (red arrow) and current behaviour of the function:
The old build has nothing to do with it.
Good afternoon everyone!
For my EA to work in a crash recovery block, I need to know how many commissions, swaps and charges were made in the last period. How can I get this information programmatically?