To buck the trend is to do the opposite of the majority so, for example, if the majority believe the stock market will fall and so sell stock, a person who buys stock is ‘bucking the trend’. The term is usually used approvingly of somebody who is successful by ignoring/acting against majority opinion