Script / EA to close positions and move sl or tp

I hope someone can help me with this. I am looking for an EA that will do the following once I add it to a chart.
Take all the open trades
When the price is going my way lets say n pips, close part of the trade and move sl to be
After that for every x pip move, move sl by y pips or add a trailing sl

Not sure whether there are any EAs that could do this. I am trying to demo trade and noticed that most of the time, my trade hit the sl as I am away from my pc (got a day job and can’t be looking at charts during work hours).
If I could have an EA that will do the above, maybe I won’t loose that much.

Any help is greatly appreciated.

Are you trading on the Metatrader platform? Do you have any experience with the setting up and running EAs? I maybe able to help you.

Yes, I am using MT4 and have experience running EAs

Here is a useful Free Scrip from FreshForex, sCloseOrders(All-Profit-Loss) MT4 Script. Closure of trading positions depending on profit in shortest time - this is the main goal of this scipt! Close market positions, depending on profit on them in shortest time - that’s the goal of this script! You can close all your active positions in the market, or just loss trades to limit the losses. For a quick take profit, you can close all profitable positions. Profitability of the position is calculated as the sum of profits for active position, plus commission and accrued swap.

Script notifies about start and completion of it’s work.

Thanks for this script. Really appreciated. Is there a script that will close portion of the trade and move sl to be or add a trailing stop?