Working on data collection for SimpleStats.

Extracted the task of collecting the trades to a single function, so that one can write the math without concern for how the data is obtained, only that it is there.