Technical analysis of stock trends