How does external trade help in stabilizing the prices of a product?

By increasing the supply of good across country in case of overproduction and by importing the goods from foreign countries in case of shortage or less production in the country thus, preventing the fall and rise in the price of goods.