![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi Everyone
If somebody would please be so kind to help a new guy out here:
I started learning to code about 4 months ago and the more I try and practice, the more I learn but I'm stuck at the moment and maybe I'm interpreting it wrong but
I want to get the total profit separately for Buy and Sell positions but no matter what I do, I keep getting only the first Position's information displayed.
I'm curious as to Where I'm going wrong as well as Why? if possible
The code I've got is as follows: and I will add the resulting image below as well if helps visually.
Thank you in advance