Calculate sum profit and loss trades closed
-
https://fxdreema.com/shared/NHyzCVWKc

I'm just trying to get the calculation of the sum of gains and losses for the current day (only for the current day) and I'm not getting it.
Does anyone have any ideas?
My attempt is to loop in all the closed orders of the current day and separate the gains from the losses, add them all up and give the result for both the losing and winning sides, then I want to count the amount of winning operations and losing operations that happened on the day to be able to create my filters and my management of this information. -
This is what you need:
https://fxdreema.com/shared/bKbTjhrse
My example is counting pips, but you can change it for profit.
-
@l-andorrà If I understand your answer, you are counting but not doing loops during the day.
I believe it runs away from my idea that is to get the losses and gains separately just for the current day. -
@OntradingX Sorry, I didn't get the full idea. Then what you need is combining my previous loop with the following structure for a 'daily' close: