Indicator for Calculation P/L for orders with the same comments

 

Hello 

 

i am looking for any indicator or scripts for  Calculation P/L for all orders which have the same comments

 

If i have this opening orders 

Buy EURUSD : comment S1 
Sell EURCAD : comment S1 
Sell GBPUSD : comment S1 

Buy EURUSD : comment S2 
Sell EURCAD : comment S2 
Sell GBPUSD : comment S1 

when i apply the indicator on the chart i want it to show how much the total profit for all trades with the same comments like this 

Trade S1 : +25 

Trade S2 : -50