
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
It's not true!
Result
So what ? Why are you saying "it's not true" ?
Because the terminal and the trading server are synchronized.
Because the terminal and the trading server are synchronized.
Of course not. You can have a position on the server while the terminal is not yet aware about it.
Forum on trading, automated trading systems and testing trading strategies
How to check that an order is executed after calling PositionOpen
fxsaber, 2018.08.09 20:35
Try this script there ForexTimeFXTM-Demo01 (or FXOpen-MT5)
Sometimes two new positions will open, not one.
Of course not. You can have a position on the server while the terminal is not yet aware about it.
You are wrong. The function exposes the order to the trading server. Further third-party programs this order from MT5 are sent outside. The result is sent back to the trading server MT5. Then - to the terminal.
I will not argue. This is the answer of the developers. You can ask them about it yourself. Unfortunately, the history of the servicedesk is no longer available ...
You are wrong. The function exposes the order to the trading server. Further third-party programs this order from MT5 are sent outside. The result is sent back to the trading server MT5. Then - to the terminal.
I will not argue. This is the answer of the developers. You can ask them about it yourself. Unfortunately, the history of the servicedesk is no longer available ...
Please explain why the above code open 2 positions ?
The OrderSend exposes the order to the trading server. The trading server tells the terminal that the order is set and returns true.
Orders became one more, but not positions.
The OrderSend exposes the order to the trading server. The trading server tells the terminal that the order is set and returns true.
Orders became one more, but not positions.
Yes because the Terminal is not aware about the Trading server position yet. Not synchronized. It's obvious.
Yes because the Terminal is not aware about the Trading server position yet. Not synchronized. It's obvious.
Forum on trading, automated trading systems and testing trading strategies
PositionsTotal() return 0 after a call of function trade.PositionOpen()
fxsaber, 2018.08.09 21:27
I will not argue. This is the answer of the developers. You can ask them about it yourself. Unfortunately, the history of the servicedesk is no longer available ...
It's you who are coming here to affirm things which are obviously wrong, without serious argumentation, referring to unavailable reference.
PositionTotal() returns 0, while there is a position in the trading server. So it opens a second position. You reported it yourself.
This is a synchronisation issue, it's how MT5 works and people have to deal with it.
Results