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
Hello,
All is in the title. If anyone can explain, when closing a position, the difference between TRADE_ACTION_DEAL and TRADE_ACTION_CLOSE_BY.
Apparently is it the same? In the Trade.mqh file, it is closing using TRADE_ACTION_DEAL. With my broker, in certain occasions, Trade.ClosePosition opened an opposite position. So I'm trying to change this with TRADE_ACTION_CLOSE_BY, but is is a wild guess.
So if anybody could put some light on this. What should I use? TRADE_ACTION_CLOSE_BY or TRADE_ACTION_DEAL?
Thanks.