Recently started investing on the stock market and am wary of selling stocks at a relative peak (already missed one) because I'm unsure how it will affect my return.

Every website I search gives a slightly different answer. Am I taxed differently based on how long I hold the stock, how much my income tax is, and then I read a little bit about a wash rule?