Counting results rows in Exploration

how to count results rows in exporaiton based on certain condiitions.

I am trying to do the following.

  1. Count number of Long / Short trades
  2. Calculate Cumulative Profit / Loss for Long and Short trades
  3. Caclulate Profit / Loss per ticker

tried using static variable I not successful.

1 Like