Creating a variable with the total number of all winnings; and a variable with the total number of all losses. In mql5

 

Hi guys.I would like to put in a variable all closed positions, both Buy and Sell winning. And the same thing I would like to do with the losing ones, to be able to compare them with the Condition block. How can I do with mql5??

thank you.

Obviously I am referring to the positions already closed.
 

Just search for: history analysis: https://www.mql5.com/en/search#!keyword=history%20analysis

There are plenty of answers.

Search - MQL5.community
Search - MQL5.community
  • www.mql5.com
Searching is based on morphology and is insensitive to case. All letters, no matter of their case, will be processed as lowercase. By default, our search engine shows pages, that...