Typical mistakes and how to deal with them when dealing with the trading environment - page 10
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
10009 TRADE_RETCODE_DONE - you have described it yourself - the order has been executed. This is simply the fact that the order has been successfully queued to the server for execution.
Further, if this order is executed (after all, it can be rejected by the server), then there is a trade - this is the result of the trade, with an opening price.
Read about
OnTradeTransaction
It is called in Expert Advisors when a TradeTransaction event occurs. The function is intended for processing the results of trade request execution.
voidOnTradeTransaction( )
const MqlTradeTransaction&trans,// structure of a trade transaction
const MqlTradeRequest&request,// request structure
const MqlTradeResult& result// structure of response
);
My own experience.
There is another option, but it is 'advanced'.
My own experience.
There is another option, but it is 'advanced'.
Can you tell me, please, what is the "advanced" option?
Can you tell me, please, what is the "advanced" version?
https://www.mql5.com/ru/code/22166
https://www.mql5.com/ru/code/22166