Table that adds the profits and losses of Purchase and Sale
-
Hello, can you help me create a table that adds the profits and losses of Purchases and Sales and that is shown on the graph.
Surely it is with modifying variables but how to obtain the profit or loss of each of the open positions of purchases or sales? -
@rodrigo-ortuzar Pink for each trade with a variable under and a trade loop inside will give you an individual trade price, bucket of trades block will give you average of all running, not sure how to put this into a table though.
-
Hi @jstap, I share with you what if I managed to do with three elements total purchases, total sales and general total and placed on the graph. https://fxdreema.com/shared/iZT5i6uF
But I did not understand how to do it as you tell me if you can share an example. Am I missing the profitable and losable buy and sell positions?Thank you very much Rodrigo
-
@rodrigo-ortuzar What I meant by loop is in the picture, not sure if you can have more than 1 bucket before the comment, if it works though it's good.

-
@jstap If yours is good and the difference in results is that mine includes Sawp, the difference is very minimal. The help I was referring to is how to differentiate the profitable ones from the losses within purchases, for example, is this what I need?
Thanks
-
@rodrigo-ortuzar I think for each closed trade with a blue check closed trade profit, if > 0 = win, if< 0 = loss. means lot of work to get this working though.
-
Look at this AE, it is for open positions and I think it fails because I don't know how to add each position to the variable, could you help me in this step.
https://fxdreema.com/shared/33DgSzpqb -
@rodrigo-ortuzar bucket won't work under pink, need to use trade/order in loop:
