Medicines can only reduce the symptoms associates with piles.... pain , bleeding, and constipation. They can't cure the problem.
In grade 4 piles even medicines are not very effective.
The only definitive treatment for piles is surgery.
Stapled or laser surgery can be done with minimal pain and bleeding, without any painful wounds with quick recovery.
Next Steps
Consult a surgeon right away