You can enter the market for buying at any point on the uptrend trendline until the bottom of the rectangle, when you see a reversal pattern.
Trade closed: target reached