Copy Trading Infrastructure
Copies trades from a master account to followers, each with their own sizing and risk limits.
MirrorFlow models the core of a copy trading service: a master account opens and closes positions, and each follower account replicates those trades according to its own allocation rules and risk limits.
The interface makes the invisible visible. You can watch each replicated order flow through the system, see when a risk rule scales or blocks it, and understand exactly why each follower's result differs from the master's.
Copy trading platforms must replicate trades across accounts with different balances and risk appetites. When sizing rules or risk checks are opaque, followers lose trust, and operators struggle to diagnose drift between master and follower positions.
An architecture where every master event is replicated through a per-follower pipeline of allocation, risk check and execution, with every outcome recorded. Followers choose proportional, fixed or multiplier allocation and set their own exposure caps.
Switch between the master's trading desk and each follower's perspective.
Master trades (synthetic) replicate to followers with visualized propagation latency.
Proportional-to-equity, fixed size or multiplier allocation per follower.
Max position size, max open trades and a drawdown pause per follower.
Open positions and unrealized P&L across all accounts, updated live.
A complete log of copied, scaled and blocked orders with reasons.
This is the working application, not a recording. Every control works, and everything runs locally in your browser on sample data.
Illustrative only. Accounts, balances and trades are synthetic and do not reflect real performance. No broker or exchange is connected.
Items marked “production path” describe how the showcase would be extended into a deployed system. They are not part of this in-browser showcase.
The same application adapts its layout for phones, tablets and desktops. These frames render the live interface at each width.
Each master event carries a unique ID, so a follower can never execute the same trade twice.
Sizing functions are isolated and unit-tested, independent of any broker API.
Blocked or scaled orders always record the rule that triggered, visible to operator and follower.
Challenge
Followers with very different balances.
Solution
Proportional allocation sizes trades by equity ratio, with rounding to instrument lot sizes.
Challenge
Partial risk breaches.
Solution
Orders are scaled down to the remaining allowance where possible, rather than rejected outright.
Challenge
Showing real-time updates without overwhelming the UI.
Solution
Batched state updates and subtle highlight transitions for changed rows.
Tell me what you're working on. I usually reply within one or two business days, and if it isn't something I can help with, I'll say so.