See the book Capital Gains at http://www.fairmark.com/books/cgmt.htm Part V: Taxation of Traders is the relevant section. The author is a Harvard Trained Tax attorney.
I think there are already enough free articles on this subject, such as Green, Ted Tesser, etc. to not have to pay $24 to read one chapter...