Hi ! From your history, the following actions could be suggested :
1) Get your stool tested for bacterial/amebic infections and if positive, you will get relief with proper medications by your doctor.
2) If the above doesnot help you, go for a CECT scan abdomen for ruling out inflammatory bowel diseases.
3) If you suspect appendix
by any chance, I will not advise you to go for a barium enema