SMA-200 Trend + 15% 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.
On UDN, the trend with a trailing stop rule has two parts. The 200-day average opens a position when yesterday's close sits above it, and a 15% trail from the high-water mark is the only way out. Once the trade is open, the average is ignored. UDN is the Invesco DB US Dollar Index Bearish Fund, a currency fund that gains when the dollar weakens. Over the window from 2021-01-04 to 2026-10-02, $10,000 became $11,131 under the rule: 1.88% a year, 11.31% in total. Buy-and-hold on UDN ended at $9,375, a CAGR of -1.12%.
The rule made one trade. It bought on 2022-12-02 at 15.97 and was still holding on the last day, with an open return of 11.55%. The trailing stop never fired, so there are no closed round trips, no win rate and no profit factor on this page. The max drawdown was 8.28% against 22.74% for holding, and the Sharpe ratio was 0.38 against -0.12. The rule was invested 66.6% of the time, which is the share of the window after the entry.
This page is therefore a record of one entry date and one long hold. The rule ranks 1st of 12 strategies on UDN by CAGR, and UDN ranks 32nd of 59 funds for this rule. The first rank is narrow: the next best rule, the SMA 10/50 trend, returned 1.53%. The test is a single hypothetical window of 5.74 years, and the headline run charges no fees.
Year by year
| Year | trend + trailing stop | buy & hold |
|---|---|---|
| 2021 | 0.0% | −6.9% |
| 2022 | 1.5% | −7.8% |
| 2023 | 4.6% | 4.6% |
| 2024 | −4.3% | −4.3% |
| 2025 | 12.2% | 12.1% |
| 2026 | −2.3% | −2.3% |
How each year looked
The rule returned 0% in 2021, 1.5% in 2022, 4.6% in 2023, -4.3% in 2024, 12.2% in 2025 and -2.3% in 2026 to date. Buy-and-hold returned -6.9%, -7.8%, 4.6%, -4.3%, 12.1% and -2.3%. The gaps were +6.9 points in 2021, +9.3 in 2022, 0 in 2023, 0 in 2024, +0.1 in 2025 and 0 in 2026.
The whole advantage over holding comes from the first two years. In 2021 the rule held cash and UDN lost 6.9%. In 2022 the rule held cash until 2022-12-02 and UDN lost 7.8% over the year, while the rule gained 1.5% from its December trade. From 2023 onward the rule was fully invested, so its yearly returns match the fund's to within a tenth of a point.
The reason for the long wait is the entry condition. UDN sat below its 200-day average through 2021 and most of 2022, and the entry test needs yesterday's close above it. The fund fell from 2021-01-06 to 2022-09-27 in a drawdown of 22.74%, and the rule did not buy during that decline. A 200-day average also needs about 200 sessions of history, so the window itself delays the earliest possible entry.
2023 to 2026 are the same as buy-and-hold in every column. The rule gained 4.6% in 2023, lost 4.3% in 2024, gained 12.2% in 2025 and lost 2.3% in 2026 to date. The 2025 gain of 12.2% is the largest of the six years, and 2024 and 2026 were losses that the trailing stop did not cut. The 2026 figures cover only part of the year. The rule's total return of 11.31% comes from a flat period followed by four years that look like holding.
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% | 1.5% |
| 2023 | 1.5% | −2.5% | 2.5% | 1.1% | −2.2% | 1.4% | 1.3% | −1.5% | −2.1% | −0.2% | 3.2% | 2.2% |
| 2024 | −1.8% | −0.3% | −0.1% | −1.5% | 1.9% | −0.9% | 2.1% | 2.4% | 1.0% | −2.9% | −1.7% | −2.5% |
| 2025 | 0.4% | 1.1% | 3.4% | 4.5% | 0.4% | 2.6% | −3.1% | 2.5% | 0.2% | −2.0% | 0.6% | 1.3% |
| 2026 | 1.2% | −0.4% | −2.1% | 1.9% | −0.6% | −2.0% | 1.3% | 0.8% | −1.9% | −0.4% | – | – |
Months in the market and months out
The monthly table has 23 zero months, which are every month from January 2021 to November 2022. The first month with a return was December 2022 at 1.47%. After that every month carries a number.
The best month was April 2025 at 4.49%, and the worst was July 2025 at -3.15%. Buy-and-hold had its best month in November 2022 at 5.38%, and its worst in April 2022 at -4.68%. The rule was in cash for both of those months. The 5.38% month came right before the entry, and the rule missed it.
Other strong months for the rule were March 2025 at 3.39%, November 2023 at 3.17%, June 2025 at 2.63%, August 2025 at 2.54% and March 2023 at 2.5%. The weak months were February 2023 at -2.5%, May 2023 at -2.24%, September 2023 at -2.08% and October 2024 at -2.86%. December 2024 lost 2.47% and March 2026 lost 2.07%. No month in the table is worse than -3.15%, and the monthly swings are small because UDN is a quiet fund.
The run of losses from October to December 2024 is the rule's largest drawdown. October lost 2.86%, November lost 1.73% and December lost 2.47%, and the account fell until 2025-01-13. January 2025 then gained 0.36%, February gained 1.08% and March gained 3.39%, which led into the best month in April.
The fund's extreme days against the entry date
The entry on 2022-12-02 sat between two sets of large days. UDN's best day of the window, +2.37% on 2022-11-10, and its third best, +1.96% on 2022-11-04, both came before the rule bought, and so did three of its five worst: -1.59% on 2022-09-23, -1.42% on 2022-09-13 and -1.31% on 2022-07-05. The fund's drawdown had bottomed on 2022-09-27, and the rule bought after the trough and after the November rally. Being late cost it the early part of the recovery, and being absent kept it out of the three worst falls.
From the entry on, the account owned every extreme day. The fund's second best, +2.09% on 2025-04-10, and fourth best, +1.7% on 2025-04-03, fell in the month the rule made 4.49%, the best of the test. The 2023-11-14 gain of 1.6% fell inside November 2023, which returned 3.17%. The two worst days after entry were -1.36% on 2025-05-12 and -1.3% on 2023-03-07, and the rule absorbed both without any exit. Neither was close to a 15% fall, and the largest single day in the whole record was a fraction of that.
By calendar month, the fund averaged 1.11% in November, 0.72% in December and 0.56% in April, and lost 1.32% in September and 0.88% in October. The rule's own Septembers returned -2.08% in 2023, 1.02% in 2024, 0.16% in 2025 and -1.94% in 2026, and its Octobers returned -0.18%, -2.86% and -1.99% in 2023, 2024 and 2025. The weak autumn in the fund's averages shows up as a weak autumn in the rule's account, on 5 or 6 observations per month.
Every trade
trend + trailing stop on UDN made 0 closed round trips and one position still open at the end of the test. It held a position at the close on 66.6% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2022-12-02 | $15.97 | open | – | 11.6% | – |
Prices are adjusted for splits and dividends, so they sit below the quotes printed at the time. An open position is marked at the last close.
The one trade
The rule has one trade, and it is still open. The price below is an adjusted figure, so it sits under the quote that was printed on the day.
- 2022-12-02 at 15.97, still open on 2026-10-02: 11.55% open return.
The open return of 11.55% is the trade's own figure, and the 11.31% total return is the account's. There are no entries to compare, no best or worst trades and no hold lengths. The trailing stop was never hit, which means price never fell 15% from any high reached after the entry.
A one-trade record limits what can be said about the rule's exit. It was designed to let winners run past the point where a crossover would have exited, and on UDN it did exactly that for almost four years. The statement holds for this fund over these dates only. It says nothing about how the rule exits, because the exit never occurred.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2024-09-27 | 2025-01-13 | −8.3% | 108 | 2025-04-10 | 87 |
| 2023-07-13 | 2023-09-27 | −6.2% | 76 | 2023-12-27 | 91 |
| 2026-01-27 | 2026-06-24 | −5.0% | 148 | not yet | – |
Buy-and-hold's deepest drawdown ran from 2021-01-06 to 2022-09-27 and reached −22.7%.
The drawdowns
The deepest drawdown was 8.28%, from a peak on 2024-09-27 to a trough on 2025-01-13, 108 days later. It recovered on 2025-04-10 after 87 days. The second was 6.16%, from 2023-07-13 to 2023-09-27, and it recovered on 2023-12-27 after 91 days. The third fell 5.03% between 2026-01-27 and 2026-06-24, which took 148 days, and the account was still under that peak at the final date.
Buy-and-hold had one drawdown of 22.74%, from 2021-01-06 to 2022-09-27, and it never recovered. The rule's deepest drawdown was 14.46 points shallower, and the saving came entirely from the months in cash. Once the rule was invested, its drawdowns were the fund's own.
The deepest drawdown of 8.28% is below the 15% trail, so the stop never fired. A drawdown of that size also sits below a 10% stop, which is why the 10% variant gives the same result. The stop reads the position's high-water mark each day, and in none of these three declines did price fall 15% from it.
The third drawdown is open. The account peaked on 2026-01-27 and bottomed on 2026-06-24 at 5.03% down. The window ends 2026-10-02 with the account still below the January peak. The trailing stop remains in place, and its level moves with new highs.
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) | 1.9% | −8.3% | $11,131 | 0.38 |
| 5 basis points | 1.9% | −8.3% | $11,126 | 0.38 |
| 10 basis points | 1.9% | −8.3% | $11,121 | 0.37 |
What trading costs did
The headline run has no fees. At 5 basis points per trade the run ended at $11,126, with a CAGR of 1.88% and a max drawdown of 8.28%. A run of 10 basis points gave 1.87%, 8.29% and $11,121. The Sharpe ratio moved from 0.377 to 0.376 and then to 0.374.
Costs barely register because the rule made one fill. A single buy pays a cost once, and the account then holds. End equity moved by only a few dollars, from $11,131 to $11,121. A rule that sits in one position for almost four years is close to insensitive to trading costs. Liquidity is thin: average daily dollar volume was $2,009,419 and the median minute traded 400 shares. A $10,000 order is small beside that.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 1.9% | −8.3% | 0 | – | $11,131 |
| 10% trailing stop | 1.9% | −8.3% | 0 | – | $11,131 |
| 20% trailing stop | 1.9% | −8.3% | 0 | – | $11,131 |
| 25% trailing stop | 1.9% | −8.3% | 0 | – | $11,131 |
What other stops did
The variants changed only the trail width.
- 10% trailing stop: CAGR 1.88%, max drawdown 8.28%, end equity $11,131, with 0 trades.
- 20% trailing stop: CAGR 1.88%, max drawdown 8.28%, end equity $11,131, with 0 trades.
- 25% trailing stop: CAGR 1.88%, max drawdown 8.28%, end equity $11,131, with 0 trades.
All three match the base rule, which uses 15%. The reason is the same in each case. The stop never fired, so its width did not matter, and the result is the entry on 2022-12-02 and a hold. A stop tighter than the 8.28% drawdown would have fired at least once, and a stop wider than 25% would behave like these. The test did not try a stop under 10%, so the page does not say where the stop would start to matter.
This is a real limit of the parameter test. Three settings that give identical numbers show that the number was not driven by the stop. They do not show that the rule is stable in a general sense. The one setting that carries the result is the 200-day entry, which was not varied here.
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 |
How UDN behaved
UDN returned -5.99% over the window with a CAGR of -1.07% and annualized volatility of 7.06%. By calendar year the fund made -7.07% (2021), -7.95% (2022), 4.69% (2023), -4.36% (2024), 12.42% (2025) and -2.36% so far in 2026. The max drawdown on the fund was 23.24%, from 2021-01-06 to 2022-09-27, and it had not recovered by 2026-10-02. The longest drawdown lasted 1,441 sessions.
The fund is quiet. Average intraday range was 0.4%. Up days averaged 0.37% and down days -0.35%. The best day was +2.37% on 2022-11-10 and the worst was -1.59% on 2022-09-23. UDN was up on 44.84% of sessions. The fund recorded no 10% fall from a 20-day high at all, so a stop of 10% or wider had little to catch.
UDN is tied to the dollar. Its correlation to FXE was 0.96 and its correlation to USDU was -0.9, a strong negative link. Its beta to SPY was 0.12 and to QQQ was 0.08. UDN finished above its 200-day average on 57.59% of sessions, with 40 crossings of that line. The rule ignores those crossings after it has bought, which is the design: the 200-day average opens the position and the stop closes it.
The signal statistics are small. There were 61 sessions with RSI(14) under 30. The median 5-day return after them was 0.25%, where the all-days baseline was -0.05%. RSI(2) closed below 10 on 200 sessions with a median 5-day return of 0.03%. Those are fractions of a percent, in line with a fund whose typical day is a third of a percent.
How UDN compares with other currency funds
Only three currency funds are in the library, and none of the three had a closed round trip. USDU returned 4.67% with a max drawdown of 8.95%, and FXE returned 2.14% with a drawdown of 7.91%. UDN returned 1.88% with 8.28%. The stop did not fire on any of them. The category median was 2.14%, and the median across all 59 funds was 2.61%.
On UDN the rule ranked first by a narrow margin. The SMA 10/50 trend returned 1.53% with a drawdown of 6.05%. The 200-day regime filter returned 1.26% with 5.38%. The EMA 12/26 trend returned 0.99%, RSI mean reversion 0.62% and the RSI(2) snapback 0.4%. The weekly 7% target returned 0.26%. Two rules never traded and sit at 0%: the dip buyer and the momentum breakout. The 3-month momentum rule returned -0.47%, the monthly cycle -0.67% and the golden cross -1.06%.
The trend rules made small gains, and the SMA 10/50 trend and the 200-day filter had shallower drawdowns than the trailing stop rule. The 200-day filter gave 1.26% with a drawdown of 5.38%, below the trailing stop's 1.88% with 8.28%. The two rules share an entry condition, and they differ in the exit: the filter exits when the close falls below the average, and the trailing stop waits for a fall of 15%. On UDN the wider exit earned more and carried more drawdown.
Overnight drift, the dollar link and why the fund rarely tests a stop
UDN's overnight log return was -4.68% and its intraday log return was -1.87%, a split of 71.5% overnight and 28.5% intraday. Both parts are negative for the full window, which matches a fund whose total return was -5.99%. Weekday averages were between -0.01% and 0% on every day of the week, and the lag-1 autocorrelation was 0. The fund shows no weekday pattern and no momentum from one day to the next.
The fund's correlation to SPY was 0.28 and to QQQ 0.24, with a beta to SPY of 0.12, so equity moves explain little of it. Its one tight relationship is with FXE at 0.96, and its opposite is USDU at -0.9. Of the other funds in the library, IAU at 0.44, EEM at 0.43 and IGIB at 0.41 sat next on the list of positive correlations. On the negative side, EEV was at -0.43.
The trailing stop needs a 15% fall from a high, and UDN's volatility of 7.06% a year makes that rare. The fund recorded no 10% fall from a 20-day high, and its worst single day was -1.59%. A fall of that size did occur in the fund's own history, since its drawdown reached 23.24% between 2021-01-06 and 2022-09-27. The rule bought after that decline ended, so the stop never faced a comparable move.
The rules
Enter when price is above the 200-day average; exit only when a 15% trailing stop is hit.
- WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
- WHILE invested · a managed trailing stop follows 15% below the position's high-water mark
A hybrid of the regime filter and the trailing stop. The 200-day average decides when to get in, and a 15% trail from the position's high-water mark decides when to get out. Winners can run well past the point where a crossover would have exited, and the position gives back 15% from every peak.
Good for: long trends with moderate pullbacks; the 15% trail is wide enough to survive normal corrections.
Watch out: every exit gives back 15% from the peak, and on choppy assets it re-enters above the 200-day repeatedly after each stop-out.
How the rule's entry and exit work on this fund
The entry is a daily check at the open: was yesterday's close above the 200-day average. The exit is a managed stop that follows 15% below the highest price since the entry. The strategy page describes the trade-off: winners can run well past the point where a crossover would have exited, and the position gives back 15% from every peak. The same page lists a caveat for choppy assets, where the rule keeps re-entering above the 200-day average after each stop-out.
None of the caveats showed up on UDN. The fund moved slowly enough that a 15% fall from a peak did not occur, so there was no give-back and no re-entry. The rule behaved like a buy-and-hold that started on 2022-12-02. A fund with a typical day of about a third of a percent is a poor test of a stop that is set at 15%.
The limits are stated in the data. The evidence is one fund, one 5.74-year window and a single trade. The stop never fired, so the exit rule is untested here. Nothing was tuned to UDN, and the figures are hypothetical and not a forecast.
Exposure shows the same thing from another angle. The rule held a position for 66.6% of the window, and every one of those days was a single stretch that began on 2022-12-02. Buy-and-hold carried a 22.74% drawdown that was still open at the end, while the rule's three drawdowns were 8.28%, 6.16% and 5.03%. A reader comparing the two should keep in mind that the shallower drawdowns came from sitting out the decline, which is a property of the entry filter and of this one calendar.
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 trend + trailing stop beat buy-and-hold on UDN?
Over 2021-01-04 to 2026-10-02, trend + trailing stop on UDN returned 1.9% annualized vs −1.1% for buy-and-hold: it beat buy-and-hold by 3.0% per year, with a maximum drawdown 14.5 points shallower than holding (8.3% vs 22.7%).
How many trades did it make?
0 completed round trips over 5.7 years (1 fills).
Why 15% rather than 10%?
A wider trail survives routine corrections and gives back more at the end. Both numbers are one-field edits in DeployQuant, so you can backtest both and compare.
How did the trend with a trailing stop do on UDN?
From 2021-01-04 to 2026-10-02 it returned a CAGR of 1.88%, turning $10,000 into $11,131. The max drawdown was 8.28% and the Sharpe ratio was 0.38. It made one trade, entered on 2022-12-02, and still held it at the end.
Did the trailing stop ever trigger on UDN?
No. The rule's deepest drawdown was 8.28%, below the 15% trail. The 10%, 20% and 25% variants returned the same 1.88%, because none of them fired either.
Why did the rule wait until December 2022 to buy?
The entry needs yesterday's close above the 200-day average. UDN was below it for most of 2021 and 2022, and the rule bought on 2022-12-02 at 15.97. The monthly table shows no position from January 2021 to November 2022.
Did the rule beat buy-and-hold on UDN?
Yes. Buy-and-hold had a CAGR of -1.12% and ended at $9,375, with a max drawdown of 22.74%. The whole gap comes from 2021 and 2022, when the rule was in cash. From 2023 the two match.
Do trading costs matter on this rule?
Not here. The rule made one fill, so 5 basis points moved end equity from $11,131 to $11,126 and 10 basis points moved it to $11,121.
Is UDN a good test of a trailing stop?
It is a weak one. UDN's average up day was 0.37% and it never fell 10% from a 20-day high, so a stop at 10% to 25% had nothing to do. The page cannot say how the exit performs.
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.