Did you set Avast to pup-detection, by default pup-scanning is off.
Open Candy came as adware PUP with a particular bundled software install.
First uninstall the bundled software that brought it and then install a new version without the additional bundled adware OpenCandy.
If that is not enough you could always ask help from the qualified removal experts here to help you get rid of it.
polonus