Well, you haven´t posted your script but based on your chart i assume it is a typical EMA trend trading strategy.

In general, i think the best thing you can do to improve your results is just diversify between assets and strategies. Appling equity curve trading will help you to avoid large losses and filter unprofitable periods. Trying to find an indicator to filter these periods is not an easy task, just let the equity tell you if you must stop.

Another resource is maybe changing your entry/exit style with limit orders instead of market orders, using trailing stops, etc.

Study the workshops in detail and pay special attention to the tips and tricks and tmf examples.

Also, read this:
https://www.financial-hacker.com/build-better-strategies-part-3-the-development-process/

That´s all i can tell you.

Bye.