Learn › Strategies › First-to-Last Day of Month › IEI

First-to-Last Day of Month on IEI

iShares 3-7 Year Treasury Bond ETF: shorter-duration Treasuries with milder swings. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.

Result: monthly cycle on IEI turned $10,000 into $9,528 (−4.7% total, −0.8% CAGR): it trailed buy-and-hold by 0.5% per year, with a maximum drawdown of 15.0% (buy-and-hold: 13.8%).

The First-to-Last Day of Month template goes long on a month's first session open and exits on its last session open, then sits out until the new month starts. No indicator or price signal is involved. The fund here is IEI, the iShares 3-7 Year Treasury Bond ETF, which holds Treasuries of shorter duration. Between 2021-01-04 and 2026-10-02 there were 69 closed round trips, with a 70th opened on 2026-10-01. The result was -0.84% a year: $10,000 became $9,527.78, the maximum drawdown was 15% and the Sharpe ratio came to -0.18.

A holder of IEI lost 0.36% a year over the same dates, ended at $9,793.36 and saw a 13.8% drawdown and a Sharpe ratio of -0.06. The rule ended $265.58 lower, 0.48 points a year behind, with a drawdown 1.2 points deeper. Both lines lost money, so the calendar effect added nothing on this fund.

Thirty-four of the 69 trades won, which is 49%. Average win 0.95%, average loss -1.05%, profit factor 0.85. With 95.2% exposure, the rule is a lightly interrupted copy of holding. Last place, 12th of 12, is its rank among strategies on IEI, and 40th of 59 is IEI's rank among funds for the rule. The headline run charges no fees or slippage, and that matters more than usual for a rule with 139 fills.

−0.8%CAGR
−0.4%buy & hold CAGR
−15.0%max drawdown
-0.18Sharpe ratio
69round trips
49%win rate
■ monthly cycle   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yearmonthly cyclebuy & hold
2021−2.8%−2.5%
2022−10.9%−9.3%
20233.5%4.3%
20241.6%1.9%
20256.1%6.6%
2026−1.5%−2.4%

Calendar years against holding IEI

The rule returned -2.8% in 2021, -10.9% in 2022, 3.5% in 2023, 1.6% in 2024, 6.1% in 2025 and -1.5% so far in 2026. Holding returned -2.5%, -9.3%, 4.3%, 1.9%, 6.6% and -2.4%. The gaps were -0.3 points in 2021, -1.6 in 2022, -0.8 in 2023, -0.3 in 2024, -0.5 in 2025 and 0.9 in 2026. Only 2026 went the rule's way.

Boundary days at each month's end are the only time the rule is out of the fund. On a fund whose up days average 0.22% and down days -0.21%, those days carry little return either way, so the gap in every year is small. All six yearly gaps are within 1.6 points, and five of the six are negative.

2022 was the worst year for both lines. The fund lost 9.3% and the rule lost 10.9%. The monthly table shows only three winning months in the year: May at 0.99%, July at 0.79% and November at 0.97%. The rest lost money, with March at -3.43%, August at -2.55%, September at -2.25% and April at -1.49%. The fund's drawdown ran from 2021-01-04 to 2022-10-20, and the calendar rule had no way to step aside during it.

2023 and 2024 were small gains. The rule made 3.5% in 2023, with a 2.73% March and a 2.57% November, and 1.6% in 2024. The calendar rule lost 2.47% in February 2023 and 2.35% in October 2024 even as the fund finished each year higher. A bond fund that moves within a narrow range gives a month-sized holding period a coin-flip outcome, and the win counts by year show it: 6 wins from 12 trades in 2023 and 8 from 12 in 2024.

2025 was the best year at 6.1% against 6.6% for holding. Ten of the 12 trades closing that year won, the most for any year in the test. In 2026 the rule is down 1.5% against -2.4% for the fund. Nine trades closed so far in 2026 with 3 wins, and the 2026-10-01 entry at $112.99 was up 0.16% at the last close. The rule's lead in 2026 is small, and the rule has no signal that could explain it.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
2021−0.4%−1.4%−0.8%0.3%0.3%−0.1%0.9%−0.3%−1.0%−1.1%0.6%−0.1%
2022−1.2%−0.7%−3.4%−1.5%1.0%−0.8%0.8%−2.5%−2.3%−1.1%1.0%−0.7%
20231.4%−2.5%2.7%0.7%−0.8%−1.4%−0.0%0.1%−1.2%−0.2%2.6%2.2%
20240.4%−1.6%0.5%−1.5%0.9%1.2%2.1%1.1%0.9%−2.4%0.4%−0.5%
20250.5%1.4%0.8%1.1%−1.0%1.1%−0.3%0.7%0.4%0.2%0.9%0.1%
2026−0.1%1.3%−1.2%0.1%−0.1%0.5%−0.5%−0.0%−1.7%0.2%––

Strongest and weakest months

March 2023 was the best month at 2.73%, with the fund at 2.83%. The worst was March 2022 at -3.43%, against -3.04% for the fund. The fund finished a few tenths of a point apart from the rule in both months, since the rule holds from first open to last open and leaves out the final session.

Other strong months were November 2023 at 2.57%, December 2023 at 2.16% and July 2024 at 2.11%. The weakest after March 2022 were August 2022 at -2.55%, February 2023 at -2.47%, October 2024 at -2.35% and September 2022 at -2.25%. The range from -3.43% to 2.73% is narrow because IEI's annualized volatility is only 4.57%.

Runs of the same sign are the main feature of the table. From January 2022 to April 2022 the rule lost in every month, at -1.21%, -0.68%, -3.43% and -1.49%. August, September and October 2022 lost 2.55%, 2.25% and 1.09%. In 2021 the pattern was milder: February -1.36%, March -0.78%, September -0.98% and October -1.05%. The 2025 table is the opposite, with 10 gains in 12 months and small losses of 0.98% in May and 0.25% in July.

Calendar months do not show a stable seasonal pattern on this fund. Averaged by calendar month, the fund gives 1.32% for November and 0.67% for July against -0.98% for September and -0.72% for October, with 5 or 6 observations behind each. The rule's own record agrees on November 2023 and on September and October 2022, but November 2021 made 0.61% and October 2024 lost 2.35%, so each month-of-year average rests on a few events. A seasonal story would need far more history than 5.74 years.

Every trade

monthly cycle on IEI made 69 closed round trips and one position still open at the end of the test, an average hold of 28 days, an average winner of 0.95%, an average loser of −1.05%, a profit factor of 0.85, a longest losing streak of 5. It held a position at the close on 95.2% of trading days.

Best 10 round trips

EntryEntry priceExitExit priceReturnDays held
2023-03-01$101.612023-03-31$104.472.8%30
2023-11-01$101.532023-11-30$104.212.6%29
2023-12-01$104.142023-12-29$106.452.2%28
2024-07-01$106.062024-07-31$108.372.2%30
2023-01-03$102.552023-01-31$104.081.5%28
2025-02-03$109.132025-02-28$110.741.5%25
2026-02-02$116.082026-02-27$117.681.4%25
2024-06-03$105.472024-06-28$106.781.2%25
2024-08-01$108.852024-08-30$110.111.2%29
2025-06-02$112.072025-06-30$113.361.1%28

Worst 10 round trips

EntryEntry priceExitExit priceReturnDays held
2022-03-01$111.122022-03-31$107.22−3.5%30
2022-08-01$106.912022-08-31$104.12−2.6%30
2023-02-01$104.302023-02-28$101.65−2.5%27
2024-10-01$111.332024-10-31$108.65−2.4%30
2022-09-01$103.722022-09-30$101.32−2.3%29
2026-09-01$115.262026-09-30$113.28−1.7%29
2024-02-01$107.142024-02-29$105.35−1.7%28
2024-04-01$105.732024-04-30$104.11−1.5%29
2022-04-01$106.532022-04-29$104.90−1.5%28
2023-06-01$104.792023-06-30$103.24−1.5%29

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.

Sixty-nine one-month trades

Seventy trades appear, 69 closed and 1 open. Each lasted 25 to 30 days, the median being 29 and the mean 28.4. A median return of -0.01% shows how evenly the results split. Wins averaged 0.95% and losses -1.05%. Neither a winning streak nor a losing streak went beyond 5 trades. Every trade lasts about a month by construction, so the table has no long holds and no quick scalps.

The five best trades were 2.81% (entered 2023-03-01), 2.64% (2023-11-01), 2.22% (2023-12-01), 2.18% (2024-07-01) and 1.49% (2023-01-03). The five worst were -3.51% (2022-03-01), -2.61% (2022-08-01), -2.54% (2023-02-01), -2.41% (2024-10-01) and -2.31% (2022-09-01). Adjusted prices sit under the quotes printed back then. The best entry was bought at $101.61 and sold at $104.47. The worst entry cost $111.12 and sold at $107.22.

The first trade, from 2021-01-04 at $115.63 to 2021-01-29 at $115.33, lost 0.26%. Entry prices fall from that $115.63 to $101.61 in March 2023 and rise again to $112.99 by October 2026. That path is the fund's own drawdown, seen one month at a time. The rule never changed its behaviour along the way.

Counting by exit year gives 4 wins in 12 trades for 2021, 3 in 12 for 2022, 6 in 12 for 2023, 8 in 12 for 2024, 10 in 12 for 2025 and 3 in 9 for 2026. The share of wins follows the fund's direction: low in 2021 and 2022 when the fund fell, higher from 2023 to 2025 when it rose. A rule with no signal picks up the market's direction and nothing else.

Profit factor was 0.85. The average loss is slightly larger than the average win, and the win rate is under 50%, so the account drifts down by a small amount per trade. Across 69 trades that adds up to -4.72% in total return. The open trade stands at 0.16% and sits outside the win rate.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2021-01-042023-10-19−15.0%1018not yet–

Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2022-10-20 and reached −13.8%.

One long drawdown

The record holds one drawdown, 15%, running from the 2021-01-04 start to a low on 2023-10-19 after 1,018 days. It was still open on 2026-10-02, and no day after the first closed at a new account high. Buying on the first session of 2021 meant buying near the top for this fund.

Holding IEI had the shallower number: 13.8% from 2021-01-04 to 2022-10-20, 654 days, with recovery on 2025-10-16 after 1,092 days. Two later drawdowns followed: 3.88% (2026-02-27 to 2026-09-28, unrecovered) and 0.73% (2025-11-26 to 2026-02-05). The rule's maximum was 1.2 points deeper and its trough came a year later, on 2023-10-19 against 2022-10-20 for the fund.

Why the rule's low came later is visible in the monthly table. The fund bottomed in October 2022, and the rule's account kept sliding through February 2023 at -2.47% and then June 2023 at -1.44% and September 2023 at -1.18%. The rule is invested 95.2% of the time, so it took most of the fund's pullbacks in those months. The fund's own profile has the matching shape, a peak on 2021-01-04, a low on 2022-10-20 and recovery on 2025-10-16.

For a Treasury fund running at 4.57% annualized volatility, 15% is a large drawdown. The fund's worst single day was -1.09% on 2022-06-13, and its best was 1.45% on 2022-11-10. The drawdown came from many months of small losses, not from a single shock, and a calendar rule has no stop to cut a slow decline. The comparison with the fund shows the same shape, only slightly better.

With trading costs

The headline run fills at the bar price. These runs charge slippage on every fill.

Slippage per fillCAGRMax drawdownFinal valueSharpe
None (headline)−0.8%−15.0%$9,528-0.18
5 basis points−2.0%−17.7%$8,906-0.45
10 basis points−3.1%−20.3%$8,322-0.72

Cost runs on a low-volatility fund

Costs change the conclusion here. The rule made 139 fills, two for each round trip plus the open position. At 5 basis points per fill the CAGR fell from -0.84% to -2%, the maximum drawdown rose from 15% to 17.68% and the end equity dropped from $9,527.78 to $8,906.23. The Sharpe ratio went from -0.18 to -0.449. At 10 basis points the CAGR was -3.15%, the drawdown 20.27%, the end equity $8,322.02 and the Sharpe ratio -0.718.

The reason is the size of each trade against the size of the charge. The average win was 0.95% and the average loss was -1.05%. A charge of 5 basis points is 0.05% on each fill, and a round trip pays it twice, so each month pays that charge before the position has moved. Against a 0.95% average win that is a heavy toll. Across 69 round trips the cost runs add up to far more than the rule's own gap to holding.

Liquidity is not the issue here. IEI changes hands for $172,230,207 on an average day, and its median minute carries 1,292 shares, so a $10,000 account would not move the price. The cost runs are flat charges, and the real spread on IEI is likely to be narrow. The result is that the template has no edge to pay for any friction at all. It earned -0.84% before costs and its headline run is already below holding.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules−0.8%−15.0%6949%$9,528
Only after a positive month−0.9%−8.9%3746%$9,483
Only above the 200-day SMA0.8%−5.3%3762%$10,493
With a 5% profit target−0.8%−15.0%6949%$9,528

Gates and a profit target

Three variants alter the rule. Trading only after a positive month made -0.92% a year with an 8.94% drawdown, 37 trades and 17 wins, ending at $9,482.59. Trading only above the 200-day SMA made 0.84% with a 5.25% drawdown, 37 trades and 23 wins, ending at $10,493.28. Adding a 5% profit target gave the same result as the base case: -0.84%, a 15% drawdown, 69 trades and 34 wins, ending at $9,527.78.

The profit target changed nothing because no trade came close to it. The best monthly trade was 2.81%, so a 5% limit never filled. The variant is a useful check that the base result is not hiding a stop effect.

The trend gate is the one that mattered. With the 200-day SMA condition the rule took only 37 trades, won 23 of them and cut the maximum drawdown to 5.25%. It made 0.84% a year with a Sharpe ratio of 0.308, the only positive Sharpe among the four runs. The gate keeps the account out while the fund sits under its long-term average, which probably covers much of the 2022 slide. The fund spent 59.2% of sessions above the 200-day line and crossed it 42 times, so the gate was active but not hyperactive.

The momentum gate did not help. Waiting for a positive prior month made -0.92%, slightly worse than the base, with 17 wins from 37 trades. It did cut the drawdown to 8.94% by skipping months, but it earned less per trade.

The trend-gated variant is still a different rule from the one on this page, and it rests on 37 trades from one fund in one window. The result suggests that a filter on the trend does more than a filter on last month's return, and it does not show that either one works in another period.

How IEI behaved

MeasureIEI
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold−2.3%
Annualized volatility4.6%
Deepest drawdown−14.2% (2021-01-04 to 2022-10-20)
Up days48.2%
Average daily range0.25%
Average overnight gap0.16%
Correlation to SPY0.08
Correlation to QQQ0.09
Correlation to TLT0.80
Sessions above the 200-day average59.2%
Crossings of the 200-day average42
Falls of 10% or more from a 20-day high0

How IEI behaved

Over 1,444 sessions IEI lost 2.25% in total, or 0.39% a year, at annualized volatility of 4.57%. The fund's deepest fall was 14.21% from 2021-01-04 to 2022-10-20, with recovery on 2025-10-16, and its longest drawdown ran 1,201 sessions. Calendar returns were -2.55%, -9.54%, 4.43%, 1.92%, 6.83% and -2.48%.

Up days made up 48.23% of sessions. Moves were tiny: 0.22% on a typical up day, -0.21% on a typical down day, a 0.25% intraday range and a 0.16% overnight gap. Returns split oddly between the two halves of the day, with an overnight log return of 4.78% and an intraday log return of -6.95%. The positive part came while the market was closed, and the regular session lost money on net.

Rates, not equities, drive this fund. Its beta to SPY was 0.02 and to QQQ 0.02, with correlations of 0.08 and 0.09, and its beta to TLT was 0.24 with a correlation of 0.8. Its closest relatives in the library were IEF (0.97), AGG and BND (0.94), UST (0.91) and IGIB (0.89). At the far end sat TBF (-0.8), KMLM (-0.43), USDU and CTA (-0.39) and RINF (-0.32).

A 10% fall from a 20-day high never happened, so a dip rule has nothing to trigger on. After the 64 sessions with RSI(14) under 30, the median 5-day return was -0.11% where the all-days baseline was -0.03%, and the 20-day median was -0.65% against 0.04%. RSI(2) below 10 appeared on 183 sessions, with medians of -0.04% over 5 days and -0.02% over 20. Oversold readings did not mark bounces on IEI in this window. The day-of-week averages all sit within 0.04% of zero, with Monday at -0.04%, and the fund closed above its 200-day average on 59.2% of sessions.

The largest gains came on 2022-11-10 (1.45%), 2022-09-28 (1.37%) and 2023-03-13 (1.2%), and the largest losses on 2022-06-13 (-1.09%), 2024-04-10 (-0.98%) and 2022-08-05 (-0.97%). Moves of that size are small, which is why the calendar rule's monthly results stay inside a few percent.

The rules

Buy the first session of each month and sell the last, as a calendar-seasonality test.

  1. WHEN the first session of the month opens · IF not invested · THEN buy with 98% of the sleeve (once per month)
  2. WHEN the last session of the month opens · IF invested · THEN sell the whole position

This template uses no indicators. It tests the turn-of-the-month effect by holding from each month's first open to its last. Whatever it earns or loses comes from calendar seasonality alone, so it is a useful comparison against buy-and-hold on the same page.

Good for: measuring how much of an asset's return accrues inside the month versus across month boundaries.
Watch out: this is a research template. It holds ~95% of all sessions, so results usually track buy-and-hold minus the boundary days.

How the other templates did on IEI

Last of 12 is where the monthly cycle ranks on IEI. The trend + trailing stop rule led at 1.43% (5.2% drawdown). The RSI(2) snapback followed at 1.42% and 6.87%, and SMA 10/50 at 1.24% and 3.21%. The golden cross made 1.09%, the 200-day filter 1.03% and the EMA 12/26 0.87%. The dip buyer and the momentum breakout show 0% and a 0% drawdown, the sign of a template that never traded. The RSI mean reversion made -0.2%, the weekly 7% target -0.26% with an 11.78% drawdown and 3-month momentum -0.59% with 3.76%.

The pattern is the same one the gated variant showed. The trend rules, which step aside when the fund is below an average or a moving-average pair, made small gains with drawdowns under 7%. The templates without a trend condition, the monthly cycle and the weekly target, absorbed the whole 2022 decline, with drawdowns of 15% and 11.78%.

Among bond ETFs the monthly cycle made 2.98% on SGOV with a 0.06% drawdown, -0.27% on IGIB, -0.84% on IEI, -0.91% on AGG, -0.95% on BND, -2.69% on IEF and -8.08% on TLT with a 46.24% drawdown. Every fund in the category had 69 round trips, since the calendar rule trades on dates and not on prices. The category median CAGR is -0.91%, against 5.46% across all 59 funds, which leaves IEI a little above the category median and far under the all-fund median. The longest Treasury funds in the group, IEF and TLT, lost the most over this window.

Evidence here is one fund, 5.74 years and 69 closed trades. On IEI a first-to-last-day calendar rule lost 0.84% a year before costs and trailed holding in five of six years. A period of falling yields falls outside the test. All numbers are hypothetical backtests, not advice. The strategy hub covers all 59 funds.

Run monthly cycle on IEI yourself, free →

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 monthly cycle beat buy-and-hold on IEI?

Over 2021-01-04 to 2026-10-02, monthly cycle on IEI returned −0.8% annualized vs −0.4% for buy-and-hold: it trailed buy-and-hold by 0.5% per year, with a maximum drawdown of 15.0% (buy-and-hold: 13.8%).

How many trades did it make?

69 completed round trips over 5.7 years (139 fills), with 49% of round trips closing profitably.

Is the turn-of-the-month effect real?

It has appeared in long historical studies, but it depends on the market regime and is small. These pages show the recent five and a half years per ETF.

How did the monthly cycle perform on IEI?

It lost 0.84% a year between 2021-01-04 and 2026-10-02, ending at $9,527.78 from a $10,000 start with a 15% maximum drawdown. Of 69 round trips, 34 won. A holder of IEI lost 0.36% a year and finished at $9,793.36.

Does the first-to-last-day pattern add anything on IEI?

No, not in this window. Holding led in every calendar year except 2026, and the rule placed last among the 12 templates on IEI. At 95.2% exposure its path stays close to the fund's.

How much do costs change the IEI result?

Quite a lot, since 139 fills land on a fund that moves little. The CAGR was -2% with 5 basis points and -3.15% with 10, against -0.84% with no costs. The end equity dropped from $9,527.78 to $8,906.23 and $8,322.02.

Did any filter improve the rule?

Trading only above the 200-day SMA made 0.84% a year with a 5.25% drawdown over 37 trades. Trading only after a positive month made -0.92%. A 5% profit target changed nothing because the best trade was 2.81%.

What were the best and worst trades?

The best was 2.81%, entered on 2023-03-01 at $101.61 and sold on 2023-03-31 at $104.47. The worst was -3.51%, entered on 2022-03-01 at $111.12 and sold on 2022-03-31 at $107.22.

How does IEI rank for this rule?

IEI ranks 40th of 59 funds for the monthly cycle. Among bond ETFs the rule made 2.98% on SGOV and -8.08% on TLT, with a category median of -0.91%.

Related

First-to-Last Day of Month on all 59 ETFsfull results table All strategies on IEI12 templates compared RSI(14) Mean Reversion on IEIsame ETF, different rulesRSI(2) Dip Snapback on IEIsame ETF, different rules

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.