20-Day Momentum + Trailing Stop on UDN
Invesco DB US Dollar Index Bearish Fund: profits when the US dollar weakens against major currencies. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
The 20-day momentum breakout makes no trades on UDN. The rule waits for a fund to gain more than 10% over 20 sessions, buys when that happens, and then holds under a 10% trailing stop. On the Invesco DB US Dollar Index Bearish Fund the entry condition never came true between 2021-01-04 and 2026-10-02. The account stayed at $10,000 for the whole 5.74 years: That is 0 fills and 0 round trips, with CAGR, maximum drawdown and Sharpe ratio all at 0.
Buy-and-hold on UDN lost money over the same dates. It earned -1.12% a year, ended at $9,375.49, drew down 22.74% and had a Sharpe ratio of -0.12. Standing aside therefore finished $624.51 ahead of the fund and 22.74 points shallower on drawdown. The rule beat the fund in 2021, 2022, 2024 and 2026 and trailed it in 2023 and 2025.
Those gaps are not a measure of skill. A cash balance beat a fund that fell, and the rule never held UDN on any day. They show what the fund did, and they show that the template's trigger is far from the fund's normal range of movement. The numbers on this page are best read as a description of UDN under a rule that never fires.
Among the 12 templates on UDN, the momentum breakout ranked 9th with a CAGR of 0%, tied with the dip buyer, the only other template with no trades here. UDN ranked 35th of 59 funds for this rule, and the other two currency funds in the category, FXE and USDU, produced the same empty result. The median CAGR across all 59 funds was 0%, and so was the category median. The momentum breakout hub lists every fund this rule was run on, and the UDN page describes the fund.
The test is a daily-decision rule on minute-resolution data, no margin, with the headline run charging no fees. Because nothing traded, fees and slippage would change nothing here.
Year by year
| Year | momentum breakout | buy & hold |
|---|---|---|
| 2021 | 0.0% | −6.9% |
| 2022 | 0.0% | −7.8% |
| 2023 | 0.0% | 4.6% |
| 2024 | 0.0% | −4.3% |
| 2025 | 0.0% | 12.1% |
| 2026 | 0.0% | −2.3% |
Six calendar years of 0%
The rule shows 0% in every year, 2021 through 2026. The fund did not. UDN returned -6.9% in 2021 on the buy-and-hold run, -7.8% in 2022, +4.6% in 2023, -4.3% in 2024, +12.1% in 2025 and -2.3% so far in 2026. The gaps in favour of the rule were +6.9, +7.8, +4.3 and +2.3 points in 2021, 2022, 2024 and 2026. The gaps against it were -4.6 in 2023 and -12.1 in 2025.
2025 is the only year when the fund rose by a meaningful amount, and it is the year the rule would have been expected to trade. On the fund's profile 2025 returned 12.42%, and its best days were bunched around April: +2.09% on 2025-04-10 and +1.7% on 2025-04-03. Even in that year, the gain arrived spread across many sessions and months. A 10% gain over 20 sessions needs a fast and sustained move, and 2025's best day of 2.09% was a long way from that pace. The rule did not enter, and the account ended the year at its starting value.
2023 shows +4.69% for the fund, and the largest single days were +1.6% on 2023-11-14 and a drop of -1.3% on 2023-03-07. This is again a year of slow drift. The lines for 2021, 2022, 2024 and 2026 all describe a fund that spent most of the window declining or moving sideways, which is the wrong environment for a rule that buys only after a strong run-up.
The fund's own profile lists -7.07%, -7.95%, +4.69%, -4.36%, +12.42% and -2.36% for the same six years, a little different from the buy-and-hold run above. The two sets agree on direction in every year.
2022 shows the weakest signal of all. The fund lost 7.8% over the year in the buy-and-hold run, yet it also produced its best month, November 2022 at +5.38%, and its best day, +2.37% on 2022-11-10. A rebound of that size inside a falling year is the closest the fund came to a burst, and it still fell far short of a 10% gain across 20 sessions. The same year held its worst days, -1.59% on 2022-09-23 and -1.42% on 2022-09-13, so the largest moves in both directions fell in 2022 and none of them triggered the rule.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2022 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2023 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2024 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2025 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2026 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | – | – |
Every month is 0
Every cell of the month table reads 0, from January 2021 through a partial October 2026. The best and worst months of the strategy are both labelled January 2021 at 0, and that label means nothing, because there is no return to rank.
The fund had months. Its best month was November 2022 at +5.38% and its worst April 2022 at -4.68%. Those are modest by equity standards. A fund whose worst month is under 5% and best month is just over 5% is unlikely to string together the 10% in 20 sessions that the rule requires.
The fund's average return by calendar month was highest in November at +1.11% and December at +0.72%, and lowest in September at -1.32% and October at -0.88%. Each of these averages rests on 5 or 6 observations. They describe the fund over this window, and none of them could produce a trade, since a monthly average of 1% is far below a 10% threshold.
No trades, and what that means for the statistics
Nothing was bought. That leaves no first or last trade, no best or worst trade, no median return and no hold time to describe. The win rate, profit factor, average win, average loss and winning and losing streaks are all blank for the same reason, and no position was open on the final day.
The 0 round trips do not show the rule failing. They show that its entry test is strict. The test asks for a return of more than 10% in 20 sessions. UDN's annualized volatility over the window was 7.06%. A fund with an annual volatility of 7.06% rarely moves anywhere near 10% in a month. The template's own description says it suits high-momentum assets, and names semiconductor and leveraged tech funds, whose daily moves are far larger than UDN's.
The trailing stop is the second half of the rule and it never operated either. It follows 10% below the highest close of an open position, and with no position there was no high-water mark to follow.
The same absence applies to every other measure that normally fills this section. There is nothing to say about the longest hold, about trades by exit year, or about a position open at the end.
No drawdown for the strategy, a long one for the fund
The strategy's equity curve is flat at $10,000, so the drawdown table has no entries and the maximum drawdown is 0%.
The fund had one drawdown that never finished. Buy-and-hold on UDN peaked on 2021-01-06 and reached a trough of 22.74% below that peak on 2022-09-27, 629 days later. The fund was still under that peak on the last day of the window. On the fund's own profile the numbers are slightly different, a 23.24% decline over the same dates, and the longest stay below a prior peak was 1,441 sessions, nearly the entire 1,444-session window.
The long stay under water matters for a different reason. A fund that spends nearly the whole window below its starting peak never offers the kind of fresh high-momentum breakout this template is named for, since the rule looks for strength and the fund spent the window recovering from a fall and then slipping again.
The Sharpe ratio of 0 for the rule compares with -0.12 for the fund. A flat line has no volatility and no return, so the ratio is 0 by construction. A positive result would need a positive return on the 10,000, and the rule never exposed the account to one.
The rule's drawdown of 0% should not be set against a fund that fell 22.74%. It reflects a decision not to hold UDN at any point, and the same decision would have missed a rise as easily as a fall.
With trading costs
The headline run fills at the bar price. These runs charge slippage on every fill.
| Slippage per fill | CAGR | Max drawdown | Final value | Sharpe |
|---|---|---|---|---|
| None (headline) | 0.0% | −0.0% | $10,000 | 0.00 |
| 5 basis points | 0.0% | −0.0% | $10,000 | 0.00 |
| 10 basis points | 0.0% | −0.0% | $10,000 | 0.00 |
Costs: nothing to charge
The headline run has 0 fills. Both cost runs, at 5 and 10 basis points, repeat the base figures: CAGR 0%, drawdown 0%, equity $10,000, Sharpe 0. A cost applies to each fill, and a rule with no fills pays no cost.
UDN is a small fund by trading volume. Its average daily dollar volume was $2,009,419 and its median minute volume 400 shares. Had the rule traded, a $10,000 sleeve would have been a noticeable share of a typical minute, and fills could have differed from the minute-bar prices in the test. That question did not arise in this run, and it is relevant to any rule that does trade this fund. On other pages the weekly 7% target made 0.26% a year on UDN with a 17.26% drawdown, and those results depend on fills in a thin fund.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 0.0% | −0.0% | 0 | – | $10,000 |
| 5% trailing stop | 0.0% | −0.0% | 0 | – | $10,000 |
| 15% trailing stop | 0.0% | −0.0% | 0 | – | $10,000 |
| 20% return entry | 0.0% | −0.0% | 0 | – | $10,000 |
Other settings: still no trades
The grid held three variants: a 5% trailing stop, a 15% trailing stop and a 20% return entry. Each one finished with 0 trades and $10,000, and with every return statistic at 0.
The two trailing-stop variants behave the same as the base case for a simple reason: the stop only acts once a position is open, and the entry never fired. The 20% entry makes the entry harder, so it could only trade less than the base case, and it did not trade either.
The variant that matters is the entry threshold, and the table did not include a lower one. A lower threshold such as 5% might have produced trades, but no such test was run, so no statement about it can be made. The result of the parameter grid is that none of the three settings changed anything, and the template needs a different fund before the question of the best stop can be asked.
How UDN behaved
| Measure | UDN |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | −6.0% |
| Annualized volatility | 7.1% |
| Deepest drawdown | −23.2% (2021-01-06 to 2022-09-27) |
| Up days | 44.8% |
| Average daily range | 0.40% |
| Average overnight gap | 0.25% |
| Correlation to SPY | 0.28 |
| Correlation to QQQ | 0.24 |
| Correlation to TLT | 0.23 |
| Sessions above the 200-day average | 57.6% |
| Crossings of the 200-day average | 40 |
| Falls of 10% or more from a 20-day high | 0 |
Why a quiet currency fund gives this rule nothing to buy
UDN is built to rise when the US dollar falls against major currencies, and in this window it mostly did not. Total return was -5.99%, or -1.07% a year, and annualized volatility was 7.06%. That volatility figure explains the empty trade list better than anything else on the page.
Consider the sizes of its moves. A typical up day added 0.37% and a typical down day took away 0.35%, and only 44.84% of sessions closed up. The usual intraday range was 0.4% and the usual overnight gap 0.25%. Its biggest daily gain was 2.37% on 2022-11-10 and its biggest daily loss 1.59% on 2022-09-23. To clear the rule's bar, the fund would have needed a run of strong days summing to more than 10% inside 20 sessions, and its best single day was a fraction of that. The profile also records no episode in which the fund fell 10% from a 20-day high, which is the same kind of move in reverse.
Log returns split into -4.68% overnight and -1.87% during sessions, so most of the slide happened between the close and the next open. Daily autocorrelation was 0, which means a good day gave no information about the next one.
Correlations place the fund among currencies. FXE, a euro fund, was the closest match at 0.96, and USDU, the long-dollar fund, the opposite at -0.9. Equity links were weak: correlation 0.28 and beta 0.12 to SPY, correlation 0.24 and beta 0.08 to QQQ. The next closest funds were IAU at 0.44, EEM at 0.43, IGIB at 0.41 and IEI at 0.4. The fund finished above its 200-day average on 57.59% of sessions, with 40 crossings.
RSI gave 61 oversold sessions on the 14-day measure and 37 overbought ones, plus 200 sessions with RSI(2) under 10. Forward medians were small. Five days after an RSI(14) reading under 30 the median move was 0.25% against a baseline of -0.05%, and twenty days after it was 0.48% against -0.11%. For RSI(2) under 10 the figures were 0.03% and -0.3%. A reading of small forward medians fits a fund that rarely strays far from where it started.
The rules
Buy after a +10% four-week burst and let a 10% trailing stop manage the exit.
- WHEN the market opens · IF not invested AND the 20-day return > +10% · THEN buy with 98% of the sleeve
- WHILE invested · a managed trailing stop follows 10% below the position's high-water mark
Momentum entry, trailing-stop exit. A +10% gain over 20 sessions marks a burst of momentum. The template buys the strength and exits on a 10% trailing stop that ratchets up beneath the highest close and never moves down. There is no profit target, so winners run until the trail is hit.
Good for: high-momentum assets where trends extend, such as semiconductor and leveraged tech ETFs.
Watch out: buying strength means buying high; when a burst immediately reverses, the trail exits about 10% below the entry.
The ranking of 12 templates on UDN, and the two that stayed out
Ten templates traded UDN and two never did. The trend plus trailing stop came first at 1.88% (drawdown 8.28%). Behind it were the SMA 10/50 at 1.53% (6.05%), the 200-day filter at 1.26% (5.38%) and the EMA 12/26 at 0.99% (9.91%). The two mean-reversion rules, RSI mean reversion and the RSI(2) snapback, made 0.62% and 0.4% with drawdowns of 14.61% and 17.34%. The weekly 7% target made 0.26% with 17.26%.
Three templates lost money: the 3-month momentum at -0.47%, the monthly cycle at -0.67% (drawdown 22.64%) and the golden cross at -1.06% (11.06%). Every positive figure is small, and the slow trend rules led. Each of those traded a few times and used wide, slow signals. A rule whose entry needs a +10% run in four weeks has a much higher bar than a moving-average crossover, and a fund this quiet never cleared it.
The dip buyer, which waits for a large fall, was the other template with no trades, so the two rules that need big moves in either direction both found none.
Both currency peers behave the same way. FXE and USDU also finished at 0% with no round trips, so the median for the category is 0%. The 59-fund median is 0% too, which means more than half of the funds in the universe produced nothing or less for this rule.
What to take from this page: the rule is built for assets that burst, and UDN does not burst. The test covers one window of 5.74 years and one fund. It cannot say how a lower entry bar or a tighter stop would do on this fund, because no such variant was run, and it says nothing about how the template behaves on funds that do produce 10% moves. The strategy hub lists those results.
Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.
Frequently asked questions
Did momentum breakout beat buy-and-hold on UDN?
Over 2021-01-04 to 2026-10-02, momentum breakout on UDN returned 0.0% annualized vs −1.1% for buy-and-hold: it beat buy-and-hold by 1.1% per year, with a maximum drawdown 22.7 points shallower than holding (0.0% vs 22.7%).
How many trades did it make?
0 completed round trips over 5.7 years (0 fills).
How does the trailing stop work in the backtest?
The stop sits 10% below the highest price since entry and only ratchets up. When a bar trades through it, the position sells at the stop, or at the open if the price gaps below it. Trailing-stop exits can be backtested now; deploying them live is not available yet.
How did the momentum breakout perform on UDN?
It made no trades. The account stayed at $10,000 from 2021-01-04 to 2026-10-02, a CAGR of 0% with 0 fills and a drawdown of 0%. Buy-and-hold on UDN lost 1.12% a year.
What kept the rule from ever buying UDN?
The entry needs a gain above 10% across 20 sessions. UDN has annualized volatility of 7.06% and a best day of +2.37%, and the entry condition never held in the window.
Is a 0% return better than buy-and-hold here?
It finished $624.51 higher because the fund fell, with a 22.74% drawdown. The result reflects the rule never holding UDN, and it does not show the rule picking good times to be out.
Do other trailing stops or entry levels change the result?
No. A 5% stop, a 15% stop and a 20% entry all made 0 trades and left $10,000 in the account.
Did trading costs matter?
No. With 0 fills, 5 and 10 basis points of cost leave the CAGR at 0% and the ending equity at $10,000.
Which templates made money on UDN?
The trend plus trailing stop was first at 1.88%, the SMA 10/50 made 1.53% and the 200-day filter 1.26%. The golden cross lost 1.06% and the monthly cycle lost 0.67%.
Related
Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.