Count number of buy/sell trades in profit/loss
-
Hello,
I am trying to figure out a method to count the number of
- Buy trades in profit
- Buy trades in loss
- Sell trades in profit
- Sell trades in loss
I know how to get a count of all the buy and sell trades.. And getting the total profit/loss is not a problem. But I seem to get stuck with getting the counts of those profitable and non-profitable trades... Any position near to the current price should not be counted.
Any help will be greatly appreciated.
-
-
Thank you, but as I understand that would only show the closed trades.
I am looking to find the count for the currently open positions.
-
@ebenv Do you mean only those open right now?
-
@l-andorrà Yes. I want to count how many current open positions are in profit/loss.
-
@ebenv You will need to create two variables to stor bot values, then you can do this:
