The correct sentence that follows grammatical conventions is:
The horses in the barn call loudly at the farmer.
This sentence correctly uses the plural noun "horses" with the plural verb "call," and "barn" and "farmer" are correctly used in their singular form.