There is a inexpensive program that keeps all your trades in order and even gives you a report to use for your taxes. It is Personal Stock Monitor ( standred or gold). It uses FIFO calulations for the report also the report lists long and short term gains/losses.