so, the EA is from live removed because of the last performance and the question is, what is the best, to close also its position from live or leave it there till SL/TP is touched? The EA let’s say is closing the order not only because of SL/TP but also because of the internal rules.
The choice is yours whether to close the position or not. If you remove an EA from your chart, the trade will stay open until SL or TP is hit. Once the EA is no longer on the chart, the strategy rules are no longer applied, but the SL / TP remains in place.
Personally, when I update my EAs on my live account, I close all positions, delete all EAs, load the new EAs into the platform, open new charts, and attach the new EAs to the charts.