here is another example of trade from today (ibm), look at those 5 minute bars closing on there high.. its going higher.
The ideal moment to buy can be a correction or pullback, when the price returns to a support level or to a trend line, but the trend remains up. Usually, such pullbacks end, and the market continues to move in the direction of the uptrend.