Counting sl COMMENTS

 

Hello everyone!


I want to create an MQL5 application that is able to count sl Comments in history tab..

What's the best way to achieve it?

I am trying to use OnTrade() function (https://www.mql5.com/en/docs/event_handlers/ontrade) along with HistoryDealGetString().