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
HelpTrade Copying BehaviorHow Trade Copying Works

How Trade Copying Works: Under the Hood

A plain-language walkthrough of the technology behind MimikTrader — from the moment the leader fills to the moment the follower's order is confirmed.

9 min read

Trade copying looks simple from the outside: the leader buys, the followers buy. But under the surface, MimikTrader orchestrates a multi-step process that must be fast, reliable, and safe. This article explains how that process works in plain language, without requiring any technical background.

Step 1: Detecting the Leader's Trade

MimikTrader maintains a persistent WebSocket connection to your broker (Tradovate). A WebSocket is like an open phone line between MimikTrader and the broker — data flows in real time without needing to repeatedly ask for updates. Every time something happens on the leader's account — a fill, a new order, a position change — the broker pushes that information to MimikTrader instantly.

When the leader places a trade and it fills (executes), the broker sends a fill notification through the WebSocket. MimikTrader captures this fill event and extracts the key details: what contract was traded, which direction (buy or sell), how many contracts, and at what price.

This detection method is fundamentally different from polling (where the system would repeatedly ask "did anything happen?" every few seconds). WebSocket detection means MimikTrader becomes aware of the leader's fill immediately, in real time, as soon as the broker confirms it — there is no polling delay to wait out.

Step 2: Fill Deduplication

Before processing a fill, MimikTrader must ensure it has not already seen this exact fill. Duplicate fills can occur in several situations: WebSocket reconnections may replay recent events, broker systems may send the same fill notification multiple times, or network interruptions can cause retransmissions.

MimikTrader uses a three-layer deduplication system to prevent duplicate trades on followers:

  • Layer 1 — In-memory fill cache: Every fill is stored in a fast in-memory cache indexed by its unique broker fill ID. If the same fill ID arrives again within the cache window, it is immediately discarded.
  • Layer 2 — Fill ledger: Fills are recorded in a persistent database ledger. Before processing, MimikTrader checks whether a fill with this broker ID has already been recorded for this copy group.
  • Layer 3 — Leader event deduplication: At the replication layer, MimikTrader checks whether a leader event with the same broker fill ID has already been dispatched for this group. If it has, the entire replication is skipped.
Note
The three-layer approach is intentionally redundant. In a system that places real orders with real money, it is far better to have multiple safeguards against duplicates than to rely on a single check. Each layer catches duplicates that might slip through the others under different failure conditions.

Step 3: The Three-Phase Replication

Once a fill is confirmed as unique, MimikTrader processes it through three sequential phases. This structure ensures that risk is checked first, orders are placed in parallel for speed, and all results are recorded atomically.

Phase A: Risk Evaluation

For each follower in the copy group, MimikTrader runs the full risk evaluation. This is a sequential check through every condition: is the group active? Is the follower enabled? Is the connection online? Is the account locked? Are daily and weekly limits within bounds? Does the symbol pass the whitelist? Does it pass the hedging check?

Each follower gets an independent pass/fail decision with a calculated quantity. A follower that fails risk evaluation is immediately recorded as rejected — no broker communication happens for rejected followers.

Phase B: Broker Order Placement

All followers that passed risk evaluation have their orders placed in parallel. MimikTrader sends all follower orders simultaneously rather than one at a time. This parallel execution minimizes the total time to get every follower filled — if you have five followers, all five orders go out together, rather than sequentially waiting for each to confirm.

During this phase, cross-contract conversion happens if configured (NQ to MNQ, for example). The order is submitted to the broker as a market order by default, ensuring immediate execution. Each order includes a group tag for identification in your broker platform.

Phase C: Database Recording

After all broker orders complete (or fail), MimikTrader records everything in a single atomic database transaction. This means either all records are saved or none are — there is no partial state. The records include:

  • The leader event (the original fill from the leader).
  • A follower order attempt for each follower — whether it was accepted or rejected, the quantity, price, and any rejection reason.
  • Updated position and P&L data for each follower account.
  • Activity log entries for auditing and the dashboard feed.
  • Fill ledger entries for the deduplication system.
Tip
The three-phase structure means risk evaluation never depends on broker latency, and database writes never block order placement. Each phase handles a single concern, making the system more reliable and easier to troubleshoot when something goes wrong.

Rate Limiting

Tradovate imposes rate limits on API requests. Sending too many orders in a short window can result in temporary throttling or blocked requests. MimikTrader includes a built-in rate limiter that queues outgoing requests and spaces them appropriately to stay within broker limits.

The rate limiter operates transparently — you do not need to configure anything. If a burst of leader activity would exceed the rate limit, follower orders are queued and dispatched as fast as the rate limit allows. Under normal conditions (a few trades per minute), the rate limiter adds no perceptible delay.

Position Reconciliation

Over time, small discrepancies can develop between the leader's position and a follower's position. This can happen due to partial fills, rejected orders, or momentary connection issues. MimikTrader tracks positions in its database and updates them after every trade. If a follower's position drifts from what is expected:

  • Close signals use the follower's actual position to calculate the close quantity, not the leader's. This prevents over-closing or under-closing.
  • When the leader goes completely flat, MimikTrader sends a close-all signal to every follower with an open position in that instrument, regardless of how many contracts they hold.
  • The Cockpit page shows real-time position data for every follower, making it easy to spot discrepancies at a glance.

Real-Time Risk Monitoring

Separately from the trade copying pipeline, MimikTrader runs a continuous risk monitoring loop that evaluates every open position on every price tick. This monitor operates independently of trade events — it does not wait for the leader to trade. Instead, it watches market prices and compares each follower's equity against its configured risk limits in real time.

If a limit is breached between trades (for example, the market moves sharply against an open position), the risk monitor can trigger an auto-flatten and lock the account without any leader activity. This provides protection even during fast-moving markets where the leader has not yet reacted.

End-to-End Timing

Copying happens in real time: as soon as the leader's fill is confirmed by the broker, MimikTrader evaluates risk and places follower orders immediately, with no manual step and no polling delay in between. The main stages in that pipeline are:

  • WebSocket propagation of the fill from the broker to MimikTrader.
  • Risk evaluation per follower — a fast, pure in-memory check with no external calls.
  • Broker API round-trip for order placement, which varies by broker and current market/network conditions.

Actual end-to-end timing depends on your broker's API responsiveness and market conditions at the moment of the trade — MimikTrader's own processing is designed to add negligible overhead on top of that.

Related Articles

  • OCO Bracket Orders
  • Supported Futures Contracts
  • Connection Issues
  • Tradovate API Rate Limits
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.