I need to identify days when trades were executed and closed (FROM HISTORY) and count them (days).
For example,
Day3 - closed 10 orders
Total as of today (Day 4) = 3