You need to add Borax and you can also add baking soda.

Remember, when it rains, your pool still needs chlorine. We see this many times each season where somebody posts that it was rainy and the pool turned green. Rain does not turn pools green. Rather, people don't check on their pools when it rains and then chlorine gets low and algae gets started.