Yes, always. The main thing is not to confuse the concept of POSITION and PENDED ORDER.
That is, PositionTotal () shows the positions that are open at the moment.
Vladimir Karputov:
Yes, always. The main thing is not to confuse the concept of POSITION and PENDED ORDER.
That is, PositionTotal () shows the positions that are open at the moment.
oh, that's my confusion, sure. Do you know where should i read for make that statement more clear to me?
thank's
5ariel_92 :
oh, that's my confusion, sure. Do you know where should i read for make that statement more clear to me?
thank's
Read the reference documentation: PositionsTotal

Documentation on MQL5: Trade Functions / PositionsTotal
- www.mql5.com
PositionsTotal - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
i red before but i didn't understand quite well

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
This is my code and i want to know if PositionTotal() always return 0
Thanks in advance
Ariel P.