When this MA crosses that MA, it could be a signal indicating a potential change in trend, thereby providing you with a good entry opportunity.
The price quickly moves upwards after breaking above the upper edge of the rectangle. If we have a buy order placed at the upper edge of the rectangle, we have made a profit. Just as the rectangle declines, here, once the price breaks out, it will move a distance equal to the width of the rectangle.