Is it possible to make EA that can count how many closing trade at that moment?

 

Hello i want to ask is it possible to make EA that can count closing trade in that pair in some spesiific range of time (ex: a day or a week)?

since as long i know EA can only count order trade only, and i try to find it in google but found nothing

please anyone who knows tell me anything you could share link, article ebook etc or just simple answer possible or not

so i know that my find is not in vain. thank you

Reason: