This is one thing I can't find the answer. Is it possible for a first Deal NOT to open a Position? I am trying to get Position/Deal history in order to NOT open a second position within the same hour. Since MQL5 does not seem to have a Position History like MQL4 did, I want to be sure that I am getting info from the last open Position. Thanks.
- Errors, bugs, questions
- Questions from Beginners MQL5 MT5 MetaTrader 5
- [Deals] How to get only opened deals?
omega13lives: This is one thing I can't find the answer. Is it possible for a first Deal NOT to open a Position? I am trying to get Position/Deal history in order to NOT open a second position within the same hour. Since MQL5 does not seem to have a Position History like MQL4 did, I want to be sure that I am getting info from the last open Position. Thanks.
On a Netting account, the first Deal of the first Order will always result in a new position! Subsequent deals and orders will update the existing position (provided it is for the same symbol).
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