Chronic constipation since childhood , your diet appears decent enough. First of all who diagnosed it as piles . Do you have any other Comorbid issues like
diabetes and hypothyroid. Ideally as you appear already diet conscious and enough intelligent to taken care in that aspect you need to rule cause for constipation. Confirmation whether it is piles!
Next Steps
I suggest get evaluated with blood tests , colonoscopy and yes colon transit study to actually know your colon motility per se.
Health Tips
Get Evaluated