Hi Jhn

First off, how old is your tank? How many fish and what kinds of fish do you have in there? Your tank is either cycling or going through a mini-cycle because you have ammonia. Ammonia is present usually in new tanks, during the cycle, or in established tanks that have too much bioload, during the mini-cycle. If you have any fish in the tank, I'd perform daily 50% water changes until ammonia = 0, as even smallest amounts of ammonia (and nitrite) can kill your fish. What is your nitrite level? As for the nitarte, fish can handle it up to 40ppm, however, I'd never want to go above 20 ppm with nitrate. Nitrate above 40 ppm is toxic to fish as well.
You have algae because there are probably too many nutrients available in your water to cause algae. Nutrients for algae are no other than fish wastes, meaning you probably have too many fish wastes in your water (ammonia would be the proof of that). Also, every fish keeper will always have more or less algae - which is why most of fish keepers have algae eaters in their tanks - but as long as they don't have ammonia and nitrite in their water, their fish are OK. And as I've said before, nitrate shouldn't exceed 40 ppm either. The higher the nitrate, the bigger algal problems you'll have.