Store and add closed orders.
-
Hello friends, I would like to know how I can store and add the values of closed orders.
Separated by assets.For example:
I have the current balance of $ 1000.
I have 2 currencies closing orders, EURUSD and USDCHF.
The balance is now $ 1200
I want to find out about this $ 200 when it corresponds to trades closed by EURUSD, and how much it corresponds to trades closed by USDCHF.
Obtaining this, I want to store it in a variable and display it on the screen.Can someone help me?
-
@fabiobioware My first suggestion would be to store the time moment where the balance hit those $1000 and then filter all closed trades AFTER that moment by using a 'For each closed trade' block. You can filter by symbol there. Then store the value into a variable.