@CyberKewl the answer to your both your question is yes.
Whenever you buy something and sell at a price higher than your buy price that is profit. When you have some accumulation then you sold some of it when the price increased then you have profit. If you sold more shares that time then bigger profit compared to selling lesser amount of shares.
However you're right that when price go up further, of course your remaining shares (assuming they lesser now than your previous number of shares since you sold off) will have lesser profit. However if held on long enough and price goes up more, there'd be a time when the value may equal or even exceed your previous profits (which consisted of more shares before).
I'm not sure of your investing behavior, but when I read those scenarios, some people when they see that their target price is reached, they would sell some to realize the profit, then preserve the others for long hold. Of course when price is high, there would be impending correction, and when the dip comes, they just reinvest the profit to buy back the dip. Then repeat. In that way they earn abit by taking advantage in every run-up, while their longterm hold stays for maximum gain in time.
Btw, this assumes that the trend keeps going up, and the dips don't really go much below the previous dips.
jtdc, thanks for the explanation. I have a better and clearer understanding now