One of the reasons your chlorine is not holding, aside from the algae, is that it is being broken down by the UV rays in the sun. CYA also known as stabilizer or conditioner, protects the chlorine from the sun. Think of it as sunscreen for your chlorine. The ideal range for CYA is 30-50ppm. During a slam it should be 20-30. If the pucks you were using contained trichlor or dichlor they would also contain CYA. If your pucks were calcium hypochlorite then they did not contain CYA, only calcium. Dry chlorine granules will either be trichlor/dichlor or calcium hypochlorite. You can buy CYA/stabilizer/conditioner in granule form and add just what you need to the pool. We recommend putting 1-2 pounds at a time in a clean white sock, tying it off and placing it in the skimmer with the pump running until fully dissolved. Once it has fully dissolved you will be able to run the CYA test and check the level. While waiting for it to dissolve, dose your pool as if the full amount of CYA you added was already active. You do not want to over shoot your CYA, since the only way to remove excess is to drain and replace water. It degrades too slowly to go away on its own, and it does not evaporate out with the water.