Get open positions tickets based on the symbol

 

Hi ,Thanks for helping me figure out how to get tickets based on a specific symbol. I used loop positiontotal but if I open a position in another chart it also displays it, I want a list of chart  tickets Have current symbols 

THIS HELP 

https://www.mql5.com/en/code/32739

merge sort - a merging method comparison-based sorting algorithm
merge sort - a merging method comparison-based sorting algorithm
  • www.mql5.com
an efficient, general-purpose sorting algorithm
Reason: