If you have a pool, you need to make sure it is free from bacteria and algae. What I use is Chlorinating Tabs. I try to keep 1 1/2 tablets in a floating dispenser. Mine is a large yellow duck. I have cut out all of the holes in the dispenser to allow maximum water flow over the tabs. When one tablet gets down to 1/2, I add another one. My pool is 18 foot round by 52 inches high. Your number of tablets required may vary based on the size of your pool.
I highly recommend getting a chlorine tablet which contains COPPER. The copper sulfate in the tablet is what keeps the algae from forming. It does wonders to keep the algae from growing in your pool. I use HTH Pace Dual Action 3 inch Chlorinating Tabs - Part number 76531 and Item number 41204. After switching to these tablets I have had no algae.
I also shock periodically - every two weeks or so. Use a shock which contains COPPER as well.
Hope this helps.