Frequently Asked Questions
What are leveraged ETFs?
Leveraged ETFs try to move by a multiple of an index each day. If the index is up 1% today, a 3x fund tries to be up about 3% today. If the index is down 1%, the fund tries to be down about 3%.
- UPRO — about 3x the S&P 500
- TQQQ — about 3x the Nasdaq 100
- SSO — about 2x the S&P 500
- QLD — about 2x the Nasdaq 100
The important catch is that the leverage resets every day. Over months or years, the result will not be exactly 2x or 3x the index's total return.
What is a leveraged SMA strategy?
It is a rule for when to be aggressive and when to step aside. The strategy compares the market price with its moving average, which is just the average price over the last N trading days.
- Price above the moving average: hold the leveraged ETF
- Price below the moving average: move to the selected safer asset
The goal is to stay invested during long uptrends and reduce exposure during major bear markets. Shorter moving averages react faster but can switch too often. Longer moving averages are calmer but react later.
What is the volatility gate?
The volatility gate is an optional second risk-off rule layered on top of the SMA rule. It measures the index's realized volatility from its last few daily log returns (the window is set per index, below), annualized by the square root of 252.
When volatility closes above the exit threshold, the strategy moves to its selected risk-off asset even if the SMA still says to stay invested. It remains risk-off until volatility closes below the lower re-entry threshold; after that, the SMA decides whether to re-enter. The gate never buys on its own.
- SPX: 20-day volatility; exit above 32%; re-enter below 22%.
- NDX: 10-day volatility; exit above 50%; re-enter below 31%.
It is enabled by default on the site, but you can turn it off with the Volatility + RSI checkbox, which also controls the RSI crash brake below. Each index's thresholds were selected for stable historical behavior together with its SMA band, but they are separate settings from the SMA period and buffer.
What is the RSI crash brake?
The RSI crash brake is a third risk-off rule that ships with the volatility gate and is switched by the same checkbox. It watches the index's Wilder RSI, a 0-100 measure of how one-sided recent closes have been. A very low reading means a steep, steady slide.
When RSI closes below the exit level, the strategy moves to its risk-off asset even if the SMA and the volatility gate both say to stay invested. It releases once RSI closes back above the re-entry level, and then the other rules decide. Like the gate, it never buys on its own.
- SPX: 14-day RSI; exit below 18; re-enter above 62.
- NDX: 14-day RSI; exit below 18; re-enter above 62.
It targets grinding sell-offs whose daily moves are too even to lift short-term volatility, such as late 2018 or August 1990. It fires rarely, and most of its historical benefit comes from a handful of such episodes, so treat it as insurance rather than a source of extra return.
Why consider holding leveraged ETFs long term?
The basic idea is that stocks have historically gone up over long periods. If the market return is high enough to overcome borrowing costs, fees, and bad periods, leveraged stock exposure can compound strongly.
The moving-average rule is a way to avoid some of the worst crashes. It is not free: it can sell too early, buy back too late, or switch back and forth in choppy markets.
This app lets you test that idea over long history. The simulated UPRO data goes back more than 140 years, and the simulated TQQQ data goes back about 100 years, to 1926, using a proxy before the Nasdaq-100 launched in 1985.
This approach tends to look best when markets trend upward or when the rule avoids major crashes. It can look bad in sideways markets, where leverage costs and repeated switches can eat away returns. Historical results are not a guarantee.
Why is higher real CAGR so important?
CAGR means the average yearly growth rate. Real CAGR means the average yearly growth rate after inflation. It is closer to your real buying-power growth.
Small yearly differences become large over time. For example, $10,000 growing at 8% for 20 years ends around $46,600. At 16%, it ends around $194,600.
That is why the app focuses on real CAGR and real end value instead of only short-term gains.
What does the Score mean?
Score is a quick ranking number for comparison tables. It is not a return, and it is not a recommendation. It is just a shortcut for comparing strategies.
A higher score usually means the strategy had a better mix of:
- Higher inflation-adjusted returns
- Better results in bad historical periods
- Smaller losses from peak to bottom
- Trading frequency near one risk-on/off switch every three years
The trading-frequency penalty is lowest at 0.3 switches per year. One switch per year has a modest penalty, and the penalty increases for both rarer and more frequent switches, with a stronger penalty for rare switching. An exit and a later re-entry count as two switches. This is a scoring preference, not proof that more switches make a strategy more reliable.
Calibration also tests neighboring parameters: one SMA day and 0.1 percentage point in either buffer. A neighbor may score up to 5% below the band's base score without penalty; beyond that, the final score subtracts half of the remaining gap to the worst neighbor. This tolerates small dips nearby while penalizing sharp cliffs. Better neighbors never increase the base score. If the plateau center shares the highest final score, calibration keeps that center.
Use it as a sorting aid, then look at the actual return, drawdown, and trade-count numbers before drawing conclusions.
What are risk-off assets?
Risk-off assets are what the strategy holds when it is not holding the leveraged ETF. Think of them as the defensive parking place.
The choices include:
- SGOV and VGSH — short-term Treasury bond funds.
- GLDM — gold.
- BRK.B — Berkshire Hathaway. Before its 1980 price history, a stand-in: 70% large value stocks and 30% short Treasuries back to 1926, and 70% S&P 500 / 30% short Treasuries before that.
- VOO — S&P 500 exposure.
- QQQ — Nasdaq 100 exposure.
Tool pages choose a risk-off asset separately for SPX and NDX, so each sleeve can use the defensive asset that matches its index. The current tool-page defaults are BRK.B + GLDM for SPX and VGSH for NDX, and the SMA calibration scores each index with these same defaults. The MCP API for AI agents takes a single risk-off asset, defaulting to BRK.B + GLDM + VGSH.
For long backtests, the app extends these series backward with historical proxy data when the ETF did not exist yet. You can also use equal-weight mixes such as VGSH + GLDM or BRK.B + GLDM + VGSH.
What trading costs are built into the simulations?
When the strategy switches, the app subtracts an estimated trading cost. A switch means selling one asset and buying another, so the cost is charged on the leveraged ETF side and on the risk-off side. If the risk-off asset is a mix, the cost is averaged across the assets in the mix.
Regular-session trades assume a marketable limit order priced 2 cents through the current price and filled at that limit, the worst case for such an order. The cents are converted to a percentage using each fund's recent share price, so a cheaper share pays a larger percentage. Many fills land at the bid or ask instead, so this leans slightly conservative. Same-day close execution uses wider extended-hours spreads.
Assumed cost per side: regular session / close execution
- TQQQ: 0.036% / 0.101%
- UPRO: 0.016% / 0.101%
- QLD: 0.026% / 0.121%
- SSO: 0.031% / 0.121%
- SGOV: 0.021% / 0.061%
- VGSH: 0.036% / 0.081%
- GLDM: 0.026% / 0.101%
- BRK.B: 0.005% / 0.081%
- VOO: 0.011% / 0.061%
- QQQ: 0.011% / 0.081%
A percentage is of the traded amount for that side of the trade (1 basis point = 0.01%). It includes the regulatory fees charged on sales: the SEC fee (20.60 dollars per million sold) and FINRA's trading activity fee ($0.000195 per share sold). Since every round trip sells each asset once, half of those fees is charged on each side. Commissions are not modeled, since most US brokers charge none for ETFs.
Should I use market or limit orders, and how large can a market order be?
For a typical account, a market order placed after the opening rush (around 10:00 am Eastern) is fine. By then spreads have settled to about a penny for these funds, and commission-free brokers route retail orders to market makers who usually fill them at the quoted bid or ask or slightly better. That matches the cost the simulation charges.
Larger orders are different. Only a limited number of shares sit at the best price at any moment, so a very large market order fills through several price levels and pays more. Nothing is liquidated; you just get a worse average price. Rough upper limits for a single market order (rules of thumb from typical liquidity, not measured):
- TQQQ: about $500k–$1M
- UPRO: about $200k–$300k
- SGOV: about $200k–$500k
- BRK.B: about $500k
- VGSH, GLDM: about $100k–$200k
A quick check before sending: if your share count is smaller than the size shown at the ask (when buying) or the bid (when selling), a market order fills at that price.
Above those sizes, use a marketable limit order a cent or two through the price (above the ask to buy, below the bid to sell). It fills just as fast as a market order when there is enough liquidity, but caps what you pay. If the price runs away, the order fills partially and the rest waits at your limit until it fills, you cancel it, or it expires; re-price the remainder. For very large switches (millions of dollars), split the order into pieces of $250k–$1M over 15–60 minutes, especially in UPRO, the least liquid of these funds. A single multi-million-dollar market order can cost 10–40 times the simulated spread.
Timing also matters, though it is not a cost: the default simulation fills at the next day's official open, while a 10:00 am trade fills about 30 minutes later. A 3x fund can move 0.5–1% in that half hour either way, so any single switch can land somewhat better or worse than the backtest.
How does the Futures page differ from the ETF backtest?
The Futures page simulates SMA strategies with index futures and risk-off securities executing at the next open.
- Uses explicit futures costs such as IBKR-style fees and spread assumptions.
- Caps position size by a maintenance-margin requirement on each contract's notional.
- Holds idle collateral in short-term Treasury ETFs (SGOV and VGSH). Those routine top-ups are not urgent, so they are modeled as limit orders 1 cent through the price.
- Tracks futures-specific diagnostics like leverage delta, excess liquidity, and transaction-level roll behavior.
It is still a model, but it is designed to emulate real futures workflow more closely than ETF-only backtests.
How do simulations extend into the future when a full rolling window needs more data?
Some pages test fixed-length periods, such as 10-year or 30-year windows. Near the end of the data, there may not be enough future days left to complete the full window.
On the Strategies, Holding Period, SMA Buffer, SMA Period, and Risk-Off Assets pages, the app can still include those recent starting months.
The app does not look past your selected end date. Instead, it fills the missing tail by wrapping back through older history. This avoids using future data that would not have been known at the time.
This is a modeling choice. It gives newer start dates a full-length test window, but the tail is historical stand-in data, not a prediction.
What do the start-date shortcuts mean, and why do SPX and NDX use 1988 and 1985?
The shortcut buttons choose practical starts for modern index regimes. They are not the earliest dates available in the app. The default, SPX/NDX start, runs SPX from 1988 and NDX from 1985 in the same run; picking any single date starts both indices there.
- April 6, 1988 — SPX. The S&P 500 moved away from fixed industry quotas, making this a cleaner start for its modern composition regime.
- January 31, 1985 — NDX. This is the Nasdaq-100 launch date. L-ETF uses Nasdaq's history through September 1985, then Yahoo's
^NDX, so this shortcut uses actual NDX history. Early Nasdaq data has closes only; opens are carried forward from the prior close. - March 17, 1980 — BRK start. The first day of real Berkshire Hathaway prices. Before it, the BRK.B risk-off asset is a stand-in (see risk-off assets above), so start here to test BRK.B on its own history.
- August 15, 1971 — Gold std end. The Nixon shock ended the dollar's convertibility to gold, opening the era of floating exchange rates, the 1970s inflation and freely priced gold. It was a Sunday, so a run starting here begins on the next trading day.
- July 1, 1926 — NDX proxy. Before the launch, L-ETF uses a cap-weighted portfolio of U.S. computer, software, semiconductor and electronic-equipment stocks (Ken French's Business Equipment industry), scaled to meet NDX, with its own dividends and QQQ expense drag. It is not actual Nasdaq-100 history, but it matches NDX's volatility and trend far better than the Nasdaq Composite, whose 1970s prices were smoothed by thinly traded stocks.
- July 1, 1926 — SPX proxy. Through April 5, 1988, L-ETF uses a cap-weighted portfolio of roughly the largest 30% of U.S. stocks by market capitalization, built from Ken French's data. It is not the actual S&P 500, but it is a closer large-cap proxy than the older reconstructed S&P history. Dividends are included.
- March 20, 1885 — SPX proto. Before July 1926, the series is G. William Schwert's daily index of Dow Jones industrial and railroad stocks, with Robert Shiller's annual dividends added and rescaled to meet the 1926 proxy. It is not the S&P 500, and it is the least reliable historical stretch in the app.
Use 1988 SPX and 1985 NDX for cleaner index comparisons. Earlier starts add useful regimes but also add proxy uncertainty.
Historical references: S&P 500 history, 1988 constituent-change note, Nasdaq-100 history, and Nasdaq Composite history, Kenneth French data.
What is an SMA Buffer?
A buffer is a cushion around the moving-average line. It prevents the strategy from switching just because the price barely crossed the line.
The buffer is a pair of values: the lower (sell-side) threshold for falling below the SMA, and the upper (buy-side) threshold for rising above it. They're shown in the input field as −[lower] , [upper] %.
Symmetric example: set both to 5% and the strategy exits when price falls 5% below the SMA and re-enters when price rises 5% above it.
Asymmetric example: set −4 / 8% to exit relatively quickly on the way down (4% below SMA) but wait for a clearer recovery before buying back in (8% above SMA). The reverse — −8 / 4% — is more reluctant to sell but eager to re-enter. Tuning the two sides independently lets you bias toward fewer whipsaws or earlier exits.
Buffers can reduce false switches and trading costs. The tradeoff is that they can also delay exits or delay buying back in.
What does the Inflation adjusted SMA Buffer checkbox do?
It runs the SMA rule on the index divided by CPI, so the price and its moving average are both in real dollars. A rise that only keeps pace with inflation no longer keeps the strategy invested. With prices rising 10% a year, a 200-day average trails the price by about 4% more than it would in real terms, so the exit and re-entry levels move up by about that much.
Each day uses only the CPI that had been published by then (a month's CPI counts from the 15th of the next month), so there is no look-ahead. The volatility gate and the RSI brake still read the index as quoted.
It is on by default, with the inflation-adjusted calibration's bands as the default rule. A band only means what it was scored with, so the two settings are calibrated separately. The Signals page lists each set in its own card, and choosing a band turns the checkbox on or off to match. The MCP API for AI agents runs nominal bands.
How does this app simulate leveraged ETFs?
Why simulate at all? The real ETFs are young — UPRO and SSO launched in 2006-2009, TQQQ and QLD in 2006-2010. That's not enough history to test how a strategy would have done through, say, the 1929 crash or the 1970s. So the app builds a synthetic version of each ETF going back as far as the underlying index data exists (the S&P 500 and its predecessors since 1885; Nasdaq 100 since 1985, with a computer-and-electronics stock proxy back to 1926).
How a real leveraged ETF works in plain terms. A 3x fund like UPRO doesn't hold $3 of stock for every $1 you put in — it holds roughly $1 of stock plus a $2 swap with a bank that mirrors the index. The bank essentially lends UPRO $2 of exposure, and UPRO pays for that loan every day. So your daily return is:
- 3 × what the index did today, minus
- the fund's expense ratio (a tiny daily slice), minus
- the cost of borrowing the extra $2 of exposure (interest + a bank fee).
That's exactly what the simulation does. Step 1 is the index. Step 2 is the published expense ratio. Step 3 is what we have to model.
Modeling the borrowing cost. The base borrowing rate is a real short-term funding rate in every era: New York commercial paper from 1885, the effective fed funds rate from mid-1954, 1-month LIBOR from 1986, and the overnight SOFR rate from 2018 onward. On top of that base rate the bank charges an extra premium (called the "swap spread"). The premium isn't fixed — when interest rates are higher, banks charge a higher premium. So we model it as a slope and an intercept: rate-sensitivity (how much the premium rises when rates rise) plus a small base-spread (the fee when rates are zero).
How we know those two numbers are right. We have actual UPRO, TQQQ, SSO, and QLD prices going back to their launch dates. The app runs the simulation against those real prices and adjusts the two numbers until the simulated NAV tracks the real ETF as closely as possible day by day, over the full 15-20 year history. The fitter looks at five kinds of error at once (day-to-day tracking, long-term drift, average gap, worst gap, and the final-return gap) and picks the parameters that minimize the combined score. This calibration re-runs automatically on the first Monday of each month, and the table below is read straight out of the model the simulation uses.
Current calibrated values:
| ETF | Index / Leverage | Rate sensitivity | Base spread |
|---|---|---|---|
| SSO | S&P 500 / 2x | 0.7307 | 0.179% |
| UPRO | S&P 500 / 3x | 0.7321 | 0.364% |
| QLD | Nasdaq 100 / 2x | 0.7021 | 0.082% |
| TQQQ | Nasdaq 100 / 3x | 0.8192 | 0.059% |
A sanity check falls out of this: in the current fit, each 3x fund is at least as rate-sensitive as its 2x sibling, and TQQQ, the 3x fund on the more volatile index, is the most rate-sensitive of all. That fits the intuition that more leverage on a more volatile index makes for a more expensive swap book.
Where the model stops extrapolating. Those two numbers can only be fitted where the real ETFs exist — 2006 onward for SSO and QLD, 2009-10 for UPRO and TQQQ — and across that entire window the base rate never rose above 5.8%. Inside that range the slope is well supported: forcing it to zero throws UPRO's simulated final return off by about 6%. Outside it there is no evidence at all, and a straight line runs away quickly — at 1981's average fed funds rate of 16.4% it would have banks charging a 12-13%/yr premium on top of that rate, several times anything a funding market has charged. So above 6% the premium holds flat at its end-of-range value while the base rate keeps passing through in full. Every backtest that stays inside the fitted range — anything from 2006 on — is completely unaffected.
If you want the math. The daily formula is:
R_LETF(t) = L × R_index(t)
− ER_daily
− (|L| − 1) × (R_borrow(t) + swapSpread_daily(t))
swapSpread_daily(t) = (rateSensitivity × min(R_borrow_annual(t), 6%)
+ baseSpread
+ 0.4286 × max(0, R_borrow_annual(t) − 6%)) / 360
NAV(t) = NAV(t-1) × (1 + R_LETF(t)) (floored at 0)The third term in the spread is what keeps the cap honest above 6%. Because the borrow rate is quoted on a 360-day year but charged only on the ~252 days the market is open, the borrow term by itself delivers 252/360 of the annual rate; the extra 0.4286 slope carries the remaining rate through. Without it, freezing the premium would make a 1981 backtest borrow more cheaply than the risk-free rate.
The (|L| − 1) factor is "you only pay financing on the borrowed portion" — a 3x fund borrows 2x its own capital, so it pays the borrow + spread on that 2x slice. Compounding day by day is what produces volatility decay over long horizons.
How well does it match reality? After the latest calibration, simulated UPRO, TQQQ, SSO, and QLD each end within about 0.15% of the real fund's final value over 15-20 years, about one basis point a year of CAGR or less. You can verify this yourself on the backtest with simulated and real ETFs side-by-side — the simulated and -real lines should overlap.
What this simulation does not capture. Intraday rebalancing slippage, bid/ask widening during stress, dividend timing quirks, and any future regime change in how banks price these swaps. Treat the synthetic history as a reasonable approximation for research, not a guarantee.
Where can I find the source code or discuss this app?
- Source code on GitHub: github.com/ravelab/l-etf
- Reddit discussion (r/LETFs): r/LETFs thread
Are past results a guarantee of future performance?
No. Past performance does not guarantee future results.
This site is for education and research only. Market conditions change, borrowing costs change, and strategies that worked historically may fail later. Leveraged ETFs can lose money very quickly and are not suitable for everyone.