# Disable MetaMask Popups for Auto Stop Loss/Take Profit Closures in ethers.js dApp

**URL:** <https://community.metamask.com/t/disable-metamask-popups-for-auto-stop-loss-take-profit-closures-in-ethers-js-dapp/31004>\
**Category:** Feature Requests\
**Created:** [November 18, 2025, 8:08am UTC](https://community.metamask.com/t/disable-metamask-popups-for-auto-stop-loss-take-profit-closures-in-ethers-js-dapp/31004 "2025-11-18T08:08:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PheonixDevs](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@PheonixDevs](https://community.metamask.com/u/PheonixDevs)\
**Post date:** [November 18, 2025, 8:08am UTC](https://community.metamask.com/t/disable-metamask-popups-for-auto-stop-loss-take-profit-closures-in-ethers-js-dapp/31004/1 "2025-11-18T08:08:15Z")

</div>

## D **escription:**

I’m building a trading dApp where users can open futures positions with Stop Loss (SL) and Take Profit (TP) levels. When the price reaches SL or TP, the trade should close **automatically**.

However, in my current implementation, when SL/TP is hit, MetaMask automatically opens a confirmation popup. The trade only closes **after** the user clicks **“Confirm.”**

**Expected behavior:**  
SL/TP auto-close should happen **without any MetaMask popup** and without user confirmation. Only manual trade closure should require MetaMask.

I want guidance on the correct approach:

- Is MetaMask able to auto-confirm a transaction?

- Should SL/TP auto-close be executed by a backend keeper/bot using its own wallet instead of the user’s MetaMask signer?

- What is the recommended architecture for automatic executions in an ethers.js + MetaMask dApp?

* * *

## **Purpose:**

To understand the correct pattern for implementing automated SL/TP trade closures **without requiring MetaMask confirmation** , and confirm if this must be handled by a backend keeper/bot instead of the user’s wallet.

* * *

## **Extension/Mobile/Both:**

**Browser Extension** (main issue), but the behavior should be consistent across **extension + mobile** MetaMask.

* * *

## **Images/Attachments:**

 ![image](https://europe1.discourse-cdn.com/metamask/original/3X/0/e/0effe4b602a6bda2b2cff698f3b7889179efe1f3.png)

---

<div class="post-metadata">

**Author:** ![Coffee7643](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/coffee7643/32/36480_2.png) [@Coffee7643](https://community.metamask.com/u/Coffee7643)\
**Post date:** [November 18, 2025, 12:26pm UTC](https://community.metamask.com/t/disable-metamask-popups-for-auto-stop-loss-take-profit-closures-in-ethers-js-dapp/31004/2 "2025-11-18T12:26:13Z")

</div>

Hi, could you please create a post regarding this on our new Builder Hub [https://builder.metamask.io/](https://builder.metamask.io/) as everything developer-related was moved there?  
Thank you! 😀 ☕
