Server-side temporary trading lock for an individual MT5 account

Is there any official mechanism that allows an individual MT5 account holder to temporarily prevent new risk-increasing trades at the account level, while preserving the ability to close existing positions?

The intended restriction should apply across desktop, mobile, web, Expert Advisors and external trading interfaces.

I am specifically looking for preventive order rejection before execution, not reactive liquidation through an EA.

Is this possible through MQL5, the official Python integration or another supported interface?

If it requires broker-side administration, is there a supported mechanism that allows the broker to expose or delegate this specific capability to the account holder, ideally with automatic expiration?

Thank you.

Andy G:

Is there any official mechanism that allows an individual MT5 account holder to temporarily prevent new risk-increasing trades at the account level, while preserving the ability to close existing positions?

The intended restriction should apply across desktop, mobile, web, Expert Advisors and external trading interfaces.

I am specifically looking for preventive order rejection before execution, not reactive liquidation through an EA.

Is this possible through MQL5, the official Python integration or another supported interface?

If it requires broker-side administration, is there a supported mechanism that allows the broker to expose or delegate this specific capability to the account holder, ideally with automatic expiration?

Thank you.

this cannot be implemented universally through MQL5, Python, or an external application alone.

The restriction must be enforced at the broker's trading server level to ensure that new risk-increasing orders are rejected before execution, regardless of whether they originate from MT5 Desktop, Mobile, Web, Expert Advisors, or external interfaces.

Without the broker's cooperation and server-side support, a truly account-wide solution is not possible. In my opinion, direct API integration with the broker is the simplest and most practical approach.