How to block automatically new trades in platform after reaching a certain percentage (P/L)

Hi everyone,

I was wondering today if it’s possible to set MetaTrader or cTrader to disable new trades daily after reaching a certain percentage, be it profit or loss. Let’s say that for each trading day I put in example 2/3/4% as target for profit and 0,5/1/2% for max dd. When I reach either one of the percentages, the platform would disable new trades until the next day. Is it possible?

Thanks