Hi,
Welcome to health care magic,
Thanks for writing your query.
It would be helpful if you get your stool examined (Routine/Microscopic,ova,cyst and for Occult blood).
This foul smelling or ammonia like smell could be because of intestinal worms or parasites.
You can take
Metronidazole 400 mg thrice a day, antihistamines (tab.avil or
cetirizine available over the counter) along with an antacid like
Ranitidine 150 mg twice day and a
probiotic preparation.
Take tab. Albenazole 400 mg once dosage for deworming under your doctor's guidance.
I
Antibiotic like
Ciprofloxacin 500 mg twice a day, if needed can be added according to the report of the stool examination.
Take care of your diet. You should eat light food, prepared in hygienic conditions.
Drink pure water only.
If the problem persists, get yourself examined clinically by gastro-physician.
I hope this is helpful to you.
Regards,