How to check bucket of Profitable Trade
-
Hello guys
How to check and store value of bucket profitable trade?
Ex: I have 10 buy trade, there are 6trade that profit and another 4trade are holding loss. How to get the total profit of those 6trades?i have done some block and variable but it get only one profitable trade.
Beleive you guys has the way. Thanks . . . .
 -
maybe you will need check profit pink block > 0 , and then store all that in 1 variable
-
@Pheaktra-Capo You can do it this way:

-
do this don't forge to do "+Sum_Profit" in the 2nd Modify variable

Explanation:
Start by resetting the variable to 0. Then create a loop that goes through each trade. In every iteration, the script calculates the profit for that individual trade and adds it to the Sum_Profit variable. Once all trades have been processed and their profits have been accumulated, the yellow output activates, allowing you to log the message and print the total sum. -
Thank you very much guys. Now i fixed it out properly.