i would say the direct sunlight is causing your algae bloom, do you have any live plants in the tank? if not then there is nothing competing for nutrients in the tank, so algae will take over very quickly.
i would recommend finding a way to shade the tank from direct sunlight and also only leaving the lights on 6-8 hours a day.
to get rid of the algae bloom, and im no expert of this since i use alot of live plants and Co2, but i think some people suggest doing a blackout to the tank, cover it with blankets or whatever you have to allow no light to enter the tank and leave your lights off. i dont remember how long you should do this. anywhere from 24-72 hours.