Is there an expert advisor that protects the account?

Good evening everyone.. Is there an expert advisor or scripts that close losing deals based on the percentage of capital, for example, 3% or 5%?
Recommendations about products are not allowed in this forum, you should make your own search in the Market, Codebase or post your requirements as a job in Freelance section.