The stock does not "know" what you paid, nor does it care. For practical purposes, it only "knows" where supports and resistances are (regions of demand and supply in the market for that stock).
Your personal gain or loss is of absolutely no consequence to the stock. Though you may suffer some loss by selling a declining stock that is below your purchase price, you actually improve your portfolio by moving to a stock that is currently in a rising trend rather than declining.