Trailing drawdown is the prop-firm rule that moves your failure threshold up as your account makes new highs — and it comes in at least three distinct flavours (end-of-day, intraday, and locked) that behave very differently for identical trading. This guide defines each mode precisely, works the breach-distance math by hand, and shows how to track a trailing floor against a strategy equity curve in Pine Script v6. It is educational material only, not financial advice: passing or failing a drawdown rule says nothing about whether a strategy has an edge, and trading always carries a real risk of loss.
Trailing drawdown is a failure threshold that follows your account's high-water mark instead of sitting at a fixed level. The firm records the highest value your account has reached, subtracts the allowed drawdown from that peak, and if the account ever touches the resulting floor, the evaluation or funded account is breached. Because the peak can only rise, the floor can only rise too — profits ratchet the tripwire up behind you, and it never moves back down.
Contrast this with a static drawdown, where the floor is fixed relative to the starting balance. On a hypothetical $100,000 account with a $5,000 static drawdown, the floor is $95,000 forever, no matter how high you climb. With a $5,000 trailing drawdown, if your account reaches $103,000 the floor is now $98,000 — you can breach while still being $3,000 above where you started, at a level the static rule would have survived comfortably.
Three details decide almost everything about how harsh the rule is in practice, and firms genuinely differ on all three. First, what counts as the peak: the closed balance at end of day, or live equity including open-trade profit sampled continuously. Second, whether the floor ever stops trailing — some firms lock it at the starting balance (or starting balance plus a buffer) once you are far enough in profit. Third, what value is tested against the floor: usually live equity, so an open trade's unrealised loss can breach you even if you would have closed it in profit.
Before paying for any challenge, pull the exact definitions from the firm's own rules page and model them deterministically — the same trade sequence can pass one firm's rule and fail another's. Nothing in this article endorses any firm or implies a challenge is winnable; it only makes the arithmetic explicit.
End-of-day (EOD) trailing updates the high-water mark only from the account value at a defined daily close. Intraday spikes in open profit do not raise the peak, so the floor moves in one discrete step per day at most. This is the gentlest form for strategies that hold through open-profit excursions: a trade can run up, pull back, and close flat without the run-up ever tightening your floor.
Intraday (real-time) trailing updates the peak from live equity, tick by tick or bar by bar, including unrealised profit. This is the mode that surprises people most. If a position goes $4,000 into open profit and then retraces to break even, your floor rose $4,000 while you banked nothing. Strategies with wide targets, scale-outs, or trailing exits — anything that deliberately tolerates giving back open profit — interact badly with this rule, because the rule converts every open-profit peak into a permanent obligation.
Locked trailing is a hybrid: the floor trails (by either definition) until it reaches a cap, most commonly the starting balance, and then freezes there. Once your peak exceeds the starting balance by the full drawdown amount, the account effectively converts to a static rule with the floor at breakeven. Under a $5,000 trailing drawdown that locks at $100,000, reaching $105,000 in peak equity is the safety milestone: after that point you can no longer lose the account while above your starting balance.
When you compare offerings, the drawdown number matters less than the mode. A larger intraday-trailing allowance can be materially stricter for a given strategy than a smaller EOD or locked one. The honest way to compare is to replay one fixed trade history through each rule set and see which configurations survive — a deterministic calculation, not an opinion.
The breach distance is one subtraction, but you must feed it the right inputs. The general form is:
floor = peak − allowed drawdown (capped at the lock level, if the rule locks), and
distance to breach = current equity − floor.
Take a $100,000 account with a $5,000 trailing drawdown, intraday mode, locking at $100,000. Suppose your best moment so far was an open-equity peak of $102,300, and right now you hold a position with $1,100 of unrealised loss on a closed balance of $101,000, so current equity is $99,900.
Peak = $102,300. Floor = $102,300 − $5,000 = $97,300 (below the $100,000 lock cap, so the cap is not binding yet). Distance to breach = $99,900 − $97,300 = $2,600. That is your entire remaining budget for adverse excursion — not per trade, but cumulative from this moment, measured on live equity.
Now rerun the same numbers under EOD trailing, assuming the $102,300 spike happened intraday and the best daily close was $100,800. Floor = $100,800 − $5,000 = $95,800, and distance = $99,900 − $95,800 = $4,100. Same trader, same trades, 58% more room — the mode alone changed the answer.
Two practical implications follow. First, position sizing against a trailing rule must reference the floor, not the starting balance: risking 1% of $100,000 per trade means a run of a few losers plus one open-profit giveback can consume the whole buffer. Second, your worst-case per-trade loss (stop distance times position size, plus realistic slippage) should be a small fraction of the current breach distance, because the distance shrinks every time you make a new high. A calculator only automates this subtraction; the discipline is keeping the inputs honest.
A backtest that reports maximum drawdown almost always measures peak-to-trough decline on the equity curve — which corresponds to a static high-water-mark measure, evaluated at whatever resolution the tester uses. That number does not tell you whether the same trade sequence survives a trailing rule, for two reasons.
First, open-profit excursions are invisible in trade-level statistics. A strategy whose closed-trade equity curve never draws down more than $3,000 can still routinely see $6,000 of open profit evaporate before exits trigger. Under intraday trailing, those excursions raise the floor; under a closed-balance backtest metric, they never existed. Trend-following systems with wide trailing exits are the canonical case: their published drawdown looks modest precisely because the giveback happens inside trades.
Second, the trailing floor couples losses to prior wins. With a static rule, a $2,000 loss costs $2,000 of buffer. With a trailing rule, a $2,000 open-profit spike followed by a $2,000 loss costs $4,000 of buffer. Sequences matter: the same set of trades in a different order can produce a breach or a pass, which is exactly the kind of path-dependence that summary statistics hide.
The correct procedure is to simulate the firm's rule against your strategy's equity series, not its trade list: reconstruct bar-by-bar equity including open positions, update the peak according to the firm's sampling (EOD close or every bar), apply the lock if there is one, and flag the first touch of the floor. Run it across many historical start dates, because a rule that passes from one start date and fails from another is telling you the outcome is luck-of-the-draw. And keep the conclusion honest: surviving a drawdown rule in backtest is a statement about the past path, not evidence of edge — a point the overfitting literature (Bailey and López de Prado's work on backtest overfitting) makes forcefully for any backtest-derived claim.
You can watch a trailing-drawdown floor chase a strategy's equity curve directly on TradingView. The script below wraps a deliberately plain SMA-cross entry (a vehicle, not a recommendation) and plots live equity, the running peak, and the floor, with an optional lock at the starting balance. Note that strategy.equity updates per bar, so this approximates intraday trailing at bar resolution — a real firm sampling every tick can be slightly stricter, and an EOD rule would sample only daily closes.
//@version=6
// Educational only — validate before trading; not financial advice.
strategy('Trailing drawdown tracker', overlay = false, initial_capital = 100000)
ddAmount = input.float(5000.0, 'Trailing drawdown ($)', minval = 1.0)
useLock = input.bool(true, 'Lock floor at initial balance')
// Demo entries so the equity curve moves — replace with your own logic.
fastMa = ta.sma(close, 20)
slowMa = ta.sma(close, 50)
if ta.crossover(fastMa, slowMa) and barstate.isconfirmed and strategy.position_size == 0
strategy.entry('Long', strategy.long)
if ta.crossunder(fastMa, slowMa) and barstate.isconfirmed and strategy.position_size > 0
strategy.close('Long')
var float peakEquity = strategy.initial_capital
peakEquity := math.max(peakEquity, strategy.equity)
float rawFloor = peakEquity - ddAmount
float floorLvl = useLock ? math.min(rawFloor, strategy.initial_capital) : rawFloor
plot(strategy.equity, 'Equity', color = color.teal)
plot(peakEquity, 'Peak equity', color = color.gray)
plot(floorLvl, 'Trailing floor', color = color.red)
breached = strategy.equity <= floorLvl
plotshape(breached and barstate.isconfirmed, 'Breach', style = shape.xcross, location = location.bottom, color = color.red)Reading the output is the point of the exercise: watch how open-profit spikes drag the red floor upward and how much closer each new high leaves you to a breach. If the floor touches equity anywhere in the test window, that configuration of your strategy and that rule set were incompatible on that historical path. It says nothing about future paths — markets need not repeat, and a pass here is not a forecast. Treat the tracker as a constraint checker, and remember that trading under any drawdown rule still carries a full risk of loss.
Educational only — not financial advice. Trading involves substantial risk of loss.