If you're water is cloudy or solid green, something is most likely out of balance.
What you are describing can also be due to "new pond syndrome ". How old is your pond? Or more specifically, how old is the water in your pond? If it was just recently filled, the beneficial bacteria hasn't had time to colonize.
I wouldn't spend money on a UV light. I would try to get to the root of the problem.
But...there are some people who do use UV lights, so get some different opinions and make up your own mind.
Here are some ideas. Some you may already know, but I'll mention them just in case.
You may have too much of a fish load. How many fish, what type and how large are they?
Your filtration may be inadequate (refer back to too much fish load) and how many gallons does your pond hold?
Not enough plant life to feed on the excess nutrients that your filter can't handle. Plants will help your filter by competing with algae for the excess nutrients. Remember, algae is a plant too.
Don't use chlorinated water to rinse your filter pads, that will kill the beneficial bacteria. Use pond water in a bucket.
Don't drain and power wash your pond, that kills off the bio-film growing on your liner and you'll have to wait for your pond to cycle all over again. (New pond syndrome)
Sometimes lawn fertilizer can wash into a pond, the algae will feed on that.
Don't try to control the algae with chemicals such as algaecides. There are too many horror stories here where people used so-called fish safe chemicals and all their fush died.
That's just some ideas off the top of my head. The most common one would be an overstocked pond. Too many fish for the amount of water.
If you have koi, they excrete a lot of waste, especially as they grow larger.
So, tell us a bit more about your pond...