The terms & conditions of all frequent flyer programs prohibit, among other things, the bartering of miles. Trading miles would constitute bartering, and the practice is thus in violation of the rules. But that doesn't mean the practice of trading miles doesn't occur.