What happens if I have both buy and sell position? What is the overall profits based on?

 
stargazer:
Thx for all your answers.

docs says:

"For each symbol, at any given moment of time, only one position can be open, which is the result of one or more deals. Do not confuse current pending orders with positions, which are also displayed on the "Trade" tab of the "Toolbox" of the client terminal." 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
Reason: