Skip to main content
MimikTrader
PricingFAQ
LoginSign up
All Articles
Getting Started
  • What is MimikTrader?
  • Quick Start Guide
  • Connect Your Tradovate Account
  • Setting Up Copy Groups
Connections & Brokers
  • Supported Brokers & Platforms
  • Using NinjaTrader Accounts
  • Reconnect, Reauthorize & Remove Accounts
  • Supported Futures Contracts
Copy Groups & Leaders
  • Leaders & Followers
  • Symbol Restrictions on Copy Groups
Trade Copying Behavior
  • How Trade Copying Works
  • TradingView Webhook Strategies
  • Position Sizing
  • OCO Bracket Orders
  • Cross-Contract Copying
  • Position Flips & Reversals
  • Partial Fills & Copying
  • Closing Positions & Flatten
Risk Management
  • Risk Management Overview
  • Daily Loss Limits & Profit Targets
  • Weekly Loss Limits & Profit Targets
  • Trailing Drawdown Protection
  • Position Limits & Account Risk Rules
  • Auto-Flatten & Account Locking
Journal & Reports
  • Trading Journal: Automatic Capture
  • Reports & Analytics Guide
  • Journal Numbers Look Wrong?
Notifications, Billing & Account
  • Notifications & Alerts
  • Plans, Billing & Trials
  • Account Access & Security
Troubleshooting & Support
  • Trades Not Copying
  • Tradovate API Rate Limits
  • Connection Issues
  • Rejected Orders Explained
  • Hedging Prevention
  • Follower Position Doesn't Match
  • TP/SL Changes Didn't Apply
  • Can't Log In or Locked Out?
  • Contact Support
  • Frequently Asked Questions
HelpRisk ManagementAuto-Flatten & Account Locking

Auto-Flatten and Account Locking: What Happens When Limits Are Hit

The two-stage protection system that ensures your positions are closed safely before locking the account.

7 min read

When a risk limit is breached — whether it is a daily loss limit, weekly loss limit, profit target, or trailing drawdown — MimikTrader does not simply reject future trades. It actively intervenes by closing all open positions and locking the account to prevent further trading. This article explains the exact sequence of events, the intermediate states your account passes through, and how to recover after a lock.

The Two-Stage Protection Sequence

When the real-time risk monitor detects a breach, the account goes through two distinct stages. This two-stage approach exists because closing positions requires broker communication that can take a few seconds, and the account must be protected during that window.

Stage 1: LIQUIDATE_ONLY

The moment a breach is detected, the account's risk status transitions to LIQUIDATE_ONLY. In this state:

  • All new opening trades are blocked. If the leader enters a new position, the follower will reject the trade with the reason: "Account is in LIQUIDATE_ONLY mode — only closing trades allowed."
  • Closing and reducing trades are still permitted. If the leader closes a position, the follower is allowed to close as well. This is critical — you never want a follower stuck with an open position it cannot close.
  • MimikTrader simultaneously sends flatten orders to the broker to close all open positions via market orders.
Note
The LIQUIDATE_ONLY state exists as a safety net. If the automatic flatten fails (due to a network issue or broker timeout), the account is still protected from opening new trades. Any subsequent closing signals from the leader will still be processed, giving the positions additional chances to close naturally.

Stage 2: LOCKED

Once the account's position reaches zero (flat), MimikTrader automatically transitions the status from LIQUIDATE_ONLY to LOCKED. In the fully locked state:

  • New opening trades are blocked. Closing and reducing are never blocked by the lock — the account is already flat in this state, so there is nothing left to close.
  • No new opening exposure is copied to this account while it is locked.
  • The lock persists until it is cleared automatically by the appropriate reset timer (daily at 5 PM CT for daily breaches, Sunday at 5 PM CT for weekly breaches). There is no manual release.

What Triggers Auto-Flatten

The real-time risk monitor runs on every price tick for instruments with open positions. It can trigger auto-flatten for any of these conditions:

  • Daily loss limit: The sum of realized daily P&L plus unrealized P&L drops to or below the negative of the configured daily loss limit.
  • Daily profit target: The sum of realized daily P&L plus unrealized P&L reaches or exceeds the configured daily profit target.
  • Trailing drawdown: The equity (balance plus total daily P&L) drops below the high-water mark by the configured drawdown distance.
  • Weekly loss limit: The accumulated weekly P&L plus current unrealized P&L drops to or below the negative of the configured weekly loss limit.
  • Weekly profit target: The accumulated weekly P&L plus current unrealized P&L reaches or exceeds the configured weekly profit target.

The Flatten Process in Detail

When a breach is detected, here is the exact sequence of operations:

  1. 1

    Flatten request sent to broker

    MimikTrader sends market orders to close all open positions on the affected account. For Tradovate accounts, this uses the liquidatePosition API endpoint which closes the entire position in a single call.
  2. 2

    Risk status set to LIQUIDATE_ONLY

    The risk profile is updated to LIQUIDATE_ONLY status. This happens concurrently with the flatten request so the account is immediately protected from new trades even if the flatten takes a moment to execute.
  3. 3

    Follower replication disabled

    A disable reason is written to the follower record in the copy group, providing visibility in the dashboard as to why the follower stopped receiving trades.
  4. 4

    Account state updated

    The account's position is set to zero, the symbol is cleared, and the unrealized P&L is zeroed out. The realized daily P&L is updated to include the P&L from the closed position.
  5. 5

    Activity log entry created

    A warning-level activity log entry is created recording the breach reason, the P&L at the time of breach, and the flatten action taken.
  6. 6

    Transition to LOCKED when flat

    If the flatten was successful and the position is now zero, the status automatically transitions from LIQUIDATE_ONLY to LOCKED.
Warning
The flatten uses market orders, which means you may experience slippage during volatile conditions. This is why we recommend setting your loss limits slightly below your prop firm's actual limits — the buffer accounts for the gap between breach detection and fill execution.

How a Locked Account Clears

A locked account clears automatically — how and when depends on what caused the lock:

Automatic Unlock

  • Daily lock: Automatically unlocked at the daily reset (5 PM CT every trading day). The next morning, the account starts fresh with zero daily P&L and a status of OK.
  • Weekly lock: Automatically unlocked at the weekly reset (Sunday 5 PM CT). The new trading week starts with zero weekly P&L and a status of OK.

No Manual Unlock

Risk-breach locks can’t be cleared manually — MimikTrader has no unlock button. Daily and weekly locks clear at their reset (above); a trailing-drawdown lock is preserved across resets (see Lock Reasons below). Letting you clear a breach lock yourself would defeat the limit. Closing and reducing trades stay allowed while an account is locked — only new opening trades are blocked.

A temporary lock you apply yourself from the Risk Management panel also expires automatically at the time you set (up to 48 hours); there is no manual early unlock for it either.

Lock Reasons and Their Persistence

Each lock carries a reason that determines how long it persists and which reset clears it:

  • risk_breach_daily — Cleared by the daily reset at 5 PM CT. Triggered by a daily loss limit, daily profit target, or profit-drawdown breach.
  • risk_breach_weekly — Cleared by the weekly reset on Sunday at 5 PM CT. Triggered by a weekly loss limit or weekly profit target breach. Not affected by daily resets.
  • risk_breach_drawdown — Triggered by a trailing-drawdown breach. Preserved across BOTH the daily and weekly resets (TC v2.3 parity) — it is not cleared by an automatic reset.

What Happens to Open Positions

When auto-flatten triggers, every open position on the account is closed with a market order. After the flatten:

  • The account's position is set to zero across all instruments.
  • Unrealized P&L becomes zero (since there are no open positions).
  • Realized daily P&L is updated to include the P&L from the now-closed positions.
  • All pending orders (working limit orders, stop orders) are canceled at the broker level.

Related Articles

  • Daily Loss Limits and Profit Targets
  • Weekly Loss Limits and Profit Targets
  • Trailing Drawdown Protection
  • Understanding Rejected Orders
MimikTrader

Futures trade copier with built-in risk enforcement for prop firm traders running multiple accounts.

info@mimiktrader.com

Product

  • Trade Copier
  • Risk Management
  • Trading Journal
  • TradingView Automation
  • Pricing
  • FAQ
  • Log in

Brokers

  • Tradovate
  • NinjaTrader
  • Rithmic
  • ProjectX

Prop firms

  • Apex Trader Funding
  • Topstep
  • MyFundedFutures
  • Tradeify
  • Alpha Futures
  • Lucid
  • Bulenox
  • Take Profit Trader
  • All prop firms

Resources

  • Futures trade copier
  • Prop firm trade copier
  • Prop firm risk management
  • Free calculators
  • Consistency rule
  • Multiple accounts
  • Cloud trade copier
  • Help center
  • Glossary
  • Blog

Legal

  • Terms
  • Privacy
  • Risk disclosure
  • Contact

© 2026 MimikTrader. All rights reserved.

The R | Protocol API™ software is Copyright © 2026 by Rithmic, LLC. All rights reserved.

Futures trading involves substantial risk. MimikTrader is a software platform, not a broker, financial adviser, signal provider, or guarantee against losses.