PT
Macro · study series

Interest rate and inflation regimes

A layered quantitative model with fixed rules and public data. The macro regime comes from two signals (the 1-year fixed rate against the Selic, and 12-month inflation against its 3-year trend); sentiment, from four measures of stock behavior; the micro layer crosses a company's accounting quality with the spread on its debentures.

Personal study, not a recommendation. The page describes the past with fixed, public rules. It does not say what to buy or sell, does not consider anyone's goals, horizon or profile, and does not forecast returns. The sample is small (17 rate cycles and 21 inflation cycles since 2005), and each regime groups very different episodes.

Where we are

Macro regime

Dec 1, 2026
Inflation falling, rates rising
since Oct 26, 2026 · 36 days
Rates: LTN 1 year − Selic
−0.16 p.p.
13.59% versus 13.75%. Switches to cutting if the LTN falls below 13.25%.
Inflation: IPCA 12 months − 3 years
−0.06 p.p.
4.63% versus 4.69% a year, through 10/2026.

How to read: the horizontal axis is the rate signal (left, the market expects cuts; right, hikes); the vertical axis is the inflation signal (above, 12-month inflation exceeds the 3-year trend). Colored dots are weeks since 2005; the black line is the last year, from the hollow circle to today. In the gray band the rate signal keeps its previous state.

Equity sentiment

Dec 2, 2026
45
Neutral

From 0 (extreme pessimism) to 100 (extreme optimism). 50 is the average behavior of the last two years.

How the index gets to 45

Each component is compared with its own average over the last two years. The distance, in standard deviations, is the effect on the index: positive pulls toward optimism, negative toward pessimism.

Stocks below the 200-day average
More stocks below the average pulls toward pessimism.
Today
63.0 %
2-year average
48.6 %
Effect on the index
−0.72
52-week highs minus lows
More stocks at one-year highs than at lows pulls toward optimism.
Today
−2.0 p.p.
2-year average
1.1 p.p.
Effect on the index
−0.31
McClellan volume oscillator
Volume flowing into rising stocks pulls toward optimism.
Today
−1.7
2-year average
0.1
Effect on the index
−0.36
Low-risk factor over 3 months
Defensive stocks beating the market signal fear and pull toward pessimism.
Today
−1.7 p.p.
2-year average
0.7 p.p.
Effect on the index
+0.57
Average of the four effects
−0.20
→
(average + 2) ÷ 4 × 100
45
→
Zone
Neutral

The four regimes

Columns follow the rate signal, rows the inflation signal. Each circle summarizes every day that regime was in force from Jan 4, 2005 to the latest published IPCA (10/2026), adding up all episodes, not only the last one. The big number is the Ibovespa return above inflation, per year, on those days. The box alongside is today's episode.

Rates being cut
Rates rising
Inflation rising
Inflation rising, rates being cut
+9.3%
Ibovespa above inflation, per year
10 episodes · 13% of the time
Inflation rising, rates rising
−14.8%
Ibovespa above inflation, per year
8 episodes · 30% of the time
Inflation falling
Inflation falling, rates being cut
+16.7%
Ibovespa above inflation, per year
10 episodes · 36% of the time
We are here
Inflation falling, rates rising
+7.6%
Ibovespa above inflation, per year
9 episodes · 21% of the time

Returns annualized over 252 business days, without dividends for the Ibovespa (price index). The table of all episodes is further below.

What each regime favored

Pick a regime. The bars show how much each asset class returned above inflation, per year, across all days the regime was in force since 2005; on the right, in how many completed episodes the class beat the CDI. Blue is a real gain; red, a real loss.

While the regime lasted

Return above inflation, per year
Episodes above the CDI
Small caps (SMAL11)
since 2008
+12.4%
4 of 6 above the CDI
IDIV (dividend stocks)
+12.2%
5 of 7 above the CDI
Ibovespa
+7.6%
5 of 8 above the CDI
IMA-B 5+ (IPCA-linked over 5 years)
+7.3%
4 of 8 above the CDI
Gold in reais
+6.5%
4 of 8 above the CDI
IMA-B (IPCA-linked)
+6.0%
4 of 8 above the CDI
IMA-B 5 (IPCA-linked up to 5 years)
+5.1%
6 of 8 above the CDI
IRF-M (fixed-rate bonds)
+4.0%
3 of 8 above the CDI
IMA-S (floating-rate bonds)
+3.5%
6 of 8 above the CDI
CDI
+3.5%
benchmark
S&P 500 in reais
−1.7%
5 of 8 above the CDI
IFIX (real estate funds)
since 2010
−5.5%
3 of 5 above the CDI
US dollar (PTAX)
−11.8%
1 of 8 above the CDI

After entering the regime

Cumulative return above inflation from the first day of the regime, even if the regime changed during the window. Median of the episodes with a complete window; below, in how many the class beat the CDI.

Class3 months6 months12 months
CDI
+1.1%
benchmark
+1.4%
benchmark
+3.7%
benchmark
IMA-S (floating-rate bonds)
+1.1%
7 of 8 above the CDI
+1.4%
6 of 8 above the CDI
+3.7%
6 of 8 above the CDI
IRF-M (fixed-rate bonds)
+1.5%
3 of 8 above the CDI
+1.3%
4 of 8 above the CDI
+5.3%
4 of 8 above the CDI
IMA-B 5 (IPCA-linked up to 5 years)
+0.7%
4 of 8 above the CDI
+1.7%
5 of 8 above the CDI
+5.2%
6 of 8 above the CDI
IMA-B (IPCA-linked)
+0.8%
3 of 8 above the CDI
+2.8%
5 of 8 above the CDI
+5.8%
5 of 8 above the CDI
IMA-B 5+ (IPCA-linked over 5 years)
+1.1%
4 of 8 above the CDI
+3.3%
5 of 8 above the CDI
+6.4%
5 of 8 above the CDI
Ibovespa
+3.5%
4 of 8 above the CDI
+7.4%
5 of 8 above the CDI
+8.5%
7 of 8 above the CDI
Small caps (SMAL11)
−1.1%
2 of 6 above the CDI
+7.9%
4 of 6 above the CDI
+11.1%
5 of 6 above the CDI
IDIV (dividend stocks)
+6.5%
5 of 7 above the CDI
+8.2%
5 of 7 above the CDI
+15.0%
7 of 7 above the CDI
IFIX (real estate funds)
−2.3%
2 of 5 above the CDI
−1.1%
2 of 5 above the CDI
−1.5%
2 of 5 above the CDI
US dollar (PTAX)
−2.5%
3 of 8 above the CDI
−4.2%
2 of 8 above the CDI
−9.0%
2 of 8 above the CDI
Gold in reais
−2.8%
3 of 8 above the CDI
+5.5%
5 of 8 above the CDI
+1.1%
3 of 8 above the CDI
S&P 500 in reais
+2.5%
5 of 8 above the CDI
+8.1%
5 of 8 above the CDI
+8.5%
5 of 8 above the CDI

What the economic logic expects. The market still prices a higher Selic: floating-rate assets pay a high real rate, and long bonds suffer while the curve rises. Stocks depend on how much of the tightening is already priced in; the turn to cuts usually comes out of this regime.

What the sample showed across 8 completed episodes:

Highest real return
Small caps (SMAL11)
Lowest real return
US dollar (PTAX)

Beat the CDI in most episodes:

  • IMA-S (floating-rate bonds)
  • IMA-B 5 (IPCA-linked up to 5 years)
  • Ibovespa
  • Small caps (SMAL11)
  • IDIV (dividend stocks)
  • IFIX (real estate funds)
  • S&P 500 in reais

The dashed line marks the CDI in the regime. This describes the past and is not an allocation recommendation; when logic and sample disagree, the sample has few episodes and one of them can dominate the average.

Table with the four regimes
Real return per yearInflation falling, rates being cutInflation falling, rates risingInflation rising, rates being cutInflation rising, rates rising
CDI
+7.1%
benchmark
+3.5%
benchmark
+7.4%
benchmark
+2.6%
benchmark
IMA-S (floating-rate bonds)
+7.2%
8 of 10 above the CDI
+3.5%
6 of 8 above the CDI
+7.6%
8 of 10 above the CDI
+2.7%
5 of 8 above the CDI
IRF-M (fixed-rate bonds)
+8.4%
8 of 10 above the CDI
+4.0%
3 of 8 above the CDI
+9.8%
7 of 10 above the CDI
+2.3%
4 of 8 above the CDI
IMA-B 5 (IPCA-linked up to 5 years)
+8.4%
7 of 10 above the CDI
+5.1%
6 of 8 above the CDI
+8.5%
4 of 10 above the CDI
+3.8%
5 of 8 above the CDI
IMA-B (IPCA-linked)
+9.0%
5 of 10 above the CDI
+6.0%
4 of 8 above the CDI
+9.5%
5 of 10 above the CDI
+2.2%
5 of 8 above the CDI
IMA-B 5+ (IPCA-linked over 5 years)
+10.2%
4 of 10 above the CDI
+7.3%
4 of 8 above the CDI
+10.7%
5 of 10 above the CDI
+0.9%
4 of 8 above the CDI
Ibovespa
+16.7%
6 of 10 above the CDI
+7.6%
5 of 8 above the CDI
+9.3%
7 of 10 above the CDI
−14.8%
2 of 8 above the CDI
Small caps (SMAL11) since 2008
+10.6%
5 of 9 above the CDI
+12.4%
4 of 6 above the CDI
+12.5%
7 of 10 above the CDI
−15.6%
2 of 7 above the CDI
IDIV (dividend stocks)
+17.4%
6 of 9 above the CDI
+12.2%
5 of 7 above the CDI
+20.4%
7 of 10 above the CDI
−11.7%
2 of 8 above the CDI
IFIX (real estate funds) since 2010
+11.0%
5 of 8 above the CDI
−5.5%
3 of 5 above the CDI
+13.2%
6 of 9 above the CDI
−5.8%
2 of 6 above the CDI
US dollar (PTAX)
−2.5%
4 of 10 above the CDI
−11.8%
1 of 8 above the CDI
−1.4%
5 of 10 above the CDI
+5.6%
4 of 8 above the CDI
Gold in reais
+11.7%
6 of 10 above the CDI
+6.5%
4 of 8 above the CDI
+1.3%
2 of 10 above the CDI
+9.2%
6 of 8 above the CDI
S&P 500 in reais
+17.4%
9 of 10 above the CDI
−1.7%
5 of 8 above the CDI
+2.0%
3 of 10 above the CDI
+9.3%
6 of 8 above the CDI

Year by year: the asset class table

Each column is a year, with the asset classes from highest to lowest return. The color gives the class group and the name is written in each box; the IPCA appears as a reference, so everything above it beat inflation that year.

  • Cash and floating rate
  • Fixed rate
  • Inflation-linked (IPCA+)
  • Equities
  • Dollar, gold and abroad
  • IPCA (inflation for the year)
  • Inflation falling, rates being cut
  • Inflation falling, rates rising
  • Inflation rising, rates being cut
  • Inflation rising, rates rising
2005
63%
  1. Ibovespa
    +27.7%
  2. IMA-S
    +19.7%
  3. IRF-M
    +19.5%
  4. CDI
    +19.0%
  5. IMA-B 5+
    +14.4%
  6. IMA-B
    +13.9%
  7. IMA-B 5
    +12.1%
  8. IPCA
    +5.7%
  9. Gold
    +4.2%
  10. S&P 500
    −7.5%
  11. Dollar
    −11.8%
2006
100%
  1. IDIV
    +37.3%
  2. Ibovespa
    +32.9%
  3. IMA-B 5+
    +28.3%
  4. IMA-B
    +22.1%
  5. IMA-B 5
    +20.8%
  6. IRF-M
    +18.3%
  7. IMA-S
    +15.2%
  8. CDI
    +15.0%
  9. Gold
    +12.2%
  10. S&P 500
    +5.8%
  11. IPCA
    +3.1%
  12. Dollar
    −8.7%
2007
64%
  1. Ibovespa
    +43.6%
  2. IDIV
    +42.6%
  3. IMA-B 5+
    +19.1%
  4. IMA-B
    +14.0%
  5. IMA-B 5
    +13.2%
  6. IMA-S
    +11.9%
  7. CDI
    +11.8%
  8. IRF-M
    +10.7%
  9. Gold
    +8.9%
  10. IPCA
    +4.5%
  11. S&P 500
    −12.6%
  12. Dollar
    −17.2%
2008
92%
  1. Gold
    +39.6%
  2. Dollar
    +31.9%
  3. IRF-M
    +13.9%
  4. IMA-B 5
    +13.8%
  5. IMA-S
    +12.4%
  6. CDI
    +12.4%
  7. IMA-B
    +11.0%
  8. IMA-B 5+
    +7.5%
  9. IPCA
    +5.9%
  10. S&P 500
    −16.9%
  11. IDIV
    −24.0%
  12. Ibovespa
    −41.2%
2009
53%
  1. SMAL11
    +135.0%
  2. Ibovespa
    +82.7%
  3. IDIV
    +55.5%
  4. IMA-B 5+
    +23.5%
  5. IMA-B
    +19.0%
  6. IMA-B 5
    +15.0%
  7. IRF-M
    +12.5%
  8. IMA-S
    +10.0%
  9. CDI
    +9.9%
  10. IPCA
    +4.3%
  11. S&P 500
    −5.8%
  12. Gold
    −7.7%
  13. Dollar
    −25.5%
2010
96%
  1. Gold
    +24.2%
  2. SMAL11
    +22.5%
  3. IMA-B 5+
    +21.9%
  4. IMA-B
    +17.0%
  5. IMA-B 5
    +13.0%
  6. IRF-M
    +11.9%
  7. IDIV
    +11.0%
  8. S&P 500
    +10.1%
  9. IMA-S
    +9.8%
  10. CDI
    +9.7%
  11. IPCA
    +5.9%
  12. Ibovespa
    +1.0%
  13. Dollar
    −4.3%
2011
63%
  1. Gold
    +24.0%
  2. IFIX
    +16.5%
  3. IMA-B 5
    +15.7%
  4. IMA-B
    +15.1%
  5. S&P 500
    +15.0%
  6. IMA-B 5+
    +14.5%
  7. IRF-M
    +14.5%
  8. IDIV
    +14.0%
  9. Dollar
    +12.6%
  10. IMA-S
    +11.6%
  11. CDI
    +11.6%
  12. IPCA
    +6.5%
  13. SMAL11
    −16.9%
  14. Ibovespa
    −18.1%
2012
72%
  1. IFIX
    +35.0%
  2. IMA-B 5+
    +34.2%
  3. SMAL11
    +28.1%
  4. IMA-B
    +26.7%
  5. S&P 500
    +26.4%
  6. IDIV
    +21.5%
  7. IMA-B 5
    +17.0%
  8. Gold
    +16.5%
  9. IRF-M
    +14.3%
  10. Dollar
    +8.9%
  11. IMA-S
    +8.5%
  12. CDI
    +8.4%
  13. Ibovespa
    +7.4%
  14. IPCA
    +5.8%
2013
59%
  1. S&P 500
    +51.8%
  2. Dollar
    +14.6%
  3. IMA-S
    +8.2%
  4. CDI
    +8.1%
  5. IPCA
    +5.9%
  6. IMA-B 5
    +2.8%
  7. IRF-M
    +2.6%
  8. IDIV
    −4.2%
  9. IMA-B
    −10.0%
  10. IFIX
    −12.6%
  11. SMAL11
    −15.0%
  12. Ibovespa
    −15.5%
  13. IMA-B 5+
    −17.1%
  14. Gold
    −17.7%
2014
71%
  1. S&P 500
    +28.9%
  2. IMA-B 5+
    +16.6%
  3. IMA-B
    +14.5%
  4. Dollar
    +13.4%
  5. Gold
    +11.7%
  6. IMA-B 5
    +11.6%
  7. IRF-M
    +11.4%
  8. IMA-S
    +10.8%
  9. CDI
    +10.8%
  10. IPCA
    +6.4%
  11. IFIX
    −2.8%
  12. Ibovespa
    −2.9%
  13. SMAL11
    −17.2%
  14. IDIV
    −18.0%
2015
100%
  1. S&P 500
    +49.0%
  2. Dollar
    +47.0%
  3. Gold
    +31.7%
  4. IMA-B 5
    +15.5%
  5. IMA-S
    +13.3%
  6. CDI
    +13.2%
  7. IPCA
    +10.7%
  8. IMA-B
    +8.9%
  9. IRF-M
    +7.1%
  10. IMA-B 5+
    +5.7%
  11. IFIX
    +5.4%
  12. Ibovespa
    −13.3%
  13. SMAL11
    −21.8%
  14. IDIV
    −27.5%
2016
68%
  1. IDIV
    +60.5%
  2. Ibovespa
    +38.9%
  3. IFIX
    +32.3%
  4. IMA-B 5+
    +31.0%
  5. SMAL11
    +30.3%
  6. IMA-B
    +24.8%
  7. IRF-M
    +23.4%
  8. IMA-B 5
    +15.5%
  9. CDI
    +14.0%
  10. IMA-S
    +13.8%
  11. IPCA
    +6.3%
  12. S&P 500
    −6.6%
  13. Gold
    −9.5%
  14. Dollar
    −16.5%
2017
100%
  1. SMAL11
    +49.6%
  2. Ibovespa
    +26.9%
  3. IDIV
    +25.3%
  4. S&P 500
    +23.7%
  5. IFIX
    +19.4%
  6. Gold
    +15.3%
  7. IRF-M
    +15.2%
  8. IMA-B
    +12.8%
  9. IMA-B 5+
    +12.8%
  10. IMA-B 5
    +12.6%
  11. IMA-S
    +10.2%
  12. CDI
    +10.0%
  13. IPCA
    +2.9%
  14. Dollar
    +1.5%
2018
62%
  1. Dollar
    +17.1%
  2. IDIV
    +16.0%
  3. IMA-B 5+
    +15.4%
  4. Ibovespa
    +15.0%
  5. Gold
    +14.6%
  6. IMA-B
    +13.1%
  7. S&P 500
    +12.0%
  8. IRF-M
    +10.7%
  9. IMA-B 5
    +9.9%
  10. SMAL11
    +7.5%
  11. CDI
    +6.4%
  12. IMA-S
    +6.4%
  13. IFIX
    +5.6%
  14. IPCA
    +3.7%
2019
39%
  1. SMAL11
    +56.7%
  2. IDIV
    +45.2%
  3. S&P 500
    +36.8%
  4. IFIX
    +36.0%
  5. Ibovespa
    +31.9%
  6. IMA-B 5+
    +30.4%
  7. Gold
    +23.7%
  8. IMA-B
    +23.0%
  9. IMA-B 5
    +13.2%
  10. IRF-M
    +12.0%
  11. IMA-S
    +6.0%
  12. CDI
    +6.0%
  13. IPCA
    +4.3%
  14. Dollar
    +4.0%
2020
35%
  1. Gold
    +60.8%
  2. S&P 500
    +52.6%
  3. Dollar
    +28.9%
  4. IMA-B 5
    +8.0%
  5. IRF-M
    +6.7%
  6. IMA-B
    +6.4%
  7. IMA-B 5+
    +5.5%
  8. IPCA
    +4.5%
  9. Ibovespa
    +2.9%
  10. CDI
    +2.8%
  11. IMA-S
    +2.4%
  12. SMAL11
    −0.8%
  13. IDIV
    −1.0%
  14. IFIX
    −10.2%
2021
100%
  1. S&P 500
    +38.2%
  2. IPCA
    +10.1%
  3. Dollar
    +7.4%
  4. IMA-S
    +4.7%
  5. IMA-B 5
    +4.6%
  6. CDI
    +4.4%
  7. Gold
    +3.6%
  8. IMA-B
    −1.3%
  9. IRF-M
    −2.0%
  10. IFIX
    −2.3%
  11. IDIV
    −6.4%
  12. IMA-B 5+
    −6.6%
  13. Ibovespa
    −12.1%
  14. SMAL11
    −16.3%
2022
62%
  1. IMA-S
    +12.7%
  2. IDIV
    +12.6%
  3. CDI
    +12.4%
  4. IMA-B 5
    +9.8%
  5. IRF-M
    +8.8%
  6. IMA-B
    +6.4%
  7. IPCA
    +5.8%
  8. Ibovespa
    +5.0%
  9. IMA-B 5+
    +3.3%
  10. IFIX
    +2.2%
  11. Dollar
    −6.5%
  12. Gold
    −6.6%
  13. SMAL11
    −14.8%
  14. S&P 500
    −23.4%
2023
100%
  1. IDIV
    +26.8%
  2. Ibovespa
    +22.0%
  3. IMA-B 5+
    +19.3%
  4. SMAL11
    +17.3%
  5. S&P 500
    +17.2%
  6. IRF-M
    +16.5%
  7. IMA-B
    +16.1%
  8. IFIX
    +15.5%
  9. IMA-S
    +13.2%
  10. CDI
    +13.0%
  11. IMA-B 5
    +12.1%
  12. Gold
    +5.3%
  13. IPCA
    +4.6%
  14. Dollar
    −7.2%
2024
51%
  1. Gold
    +63.0%
  2. S&P 500
    +59.9%
  3. Dollar
    +27.9%
  4. IMA-S
    +11.1%
  5. CDI
    +10.9%
  6. IMA-B 5
    +6.2%
  7. IPCA
    +4.8%
  8. IRF-M
    +1.9%
  9. IMA-B
    −2.4%
  10. IDIV
    −2.6%
  11. IFIX
    −5.9%
  12. IMA-B 5+
    −8.6%
  13. Ibovespa
    −10.4%
  14. SMAL11
    −24.1%
2025
40%
  1. Gold
    +46.1%
  2. Ibovespa
    +34.0%
  3. SMAL11
    +30.8%
  4. IDIV
    +30.0%
  5. IFIX
    +21.1%
  6. IRF-M
    +18.2%
  7. IMA-S
    +14.6%
  8. CDI
    +14.3%
  9. IMA-B 5+
    +14.2%
  10. IMA-B
    +13.2%
  11. IMA-B 5
    +11.7%
  12. S&P 500
    +4.7%
  13. IPCA
    +4.3%
  14. Dollar
    −11.1%
2026*
79%
  1. IMA-B 5
    +14.1%
  2. IMA-S
    +12.9%
  3. CDI
    +12.8%
  4. IMA-B
    +12.6%
  5. IRF-M
    +11.5%
  6. IMA-B 5+
    +11.2%
  7. S&P 500
    +10.6%
  8. Ibovespa
    +8.4%
  9. IDIV
    +7.0%
  10. IPCA
    +4.1%
  11. Dollar
    +1.2%
  12. SMAL11
    −3.9%
  13. IFIX
    −4.2%
  14. Gold
    −15.4%

* 2026 through Dec 1, 2026; the year's IPCA adds up the 10 months already published.

Nominal return in the calendar year, from the last session of the previous year to the last of the year. Under each year, the regime it spent most time in and the share of the year. Hover or tap a class to follow its position in the other years. A class only enters from the first complete year of its series.

Sentiment: history and what followed the extremes

Index since 2006 and the Ibovespa

Sentiment indexIbovespa (log scale, right)

After extreme pessimism (entry below 15): 25 times; the Ibovespa averaged +2.4% over the following 60 sessions, positive in 56% of them.

After extreme optimism (entry above 85): 18 times; the Ibovespa averaged +0.8% over the following 60 sessions, positive in 56% of them.

Benchmark, any day: Ibovespa averaged +2.6% over 60 sessions, positive in 59% of cases.

One company: credit and accounting

Only companies whose shares traded on B3 in the last month are included. Pick a company or a bank. The key information is the debenture spread against peers: above peers, the market charges more for risk than it charges the comparable group; below, less. Alongside, the accounting: M-Score, accruals and Altman for the 83 non-financial companies (12-month statements through 09/2026); CAMELS signals for the 7 listed banks in segments S1 and S2 (IF.data for 06/2026); and the 3 financial issuers with debentures in the Graph. The list is alphabetical and there is no ranking.

The regime's two signals

Rates: 1-year LTN against the Selic target

Selic target1-year LTNCuttingRising

What it measures. The LTN is the Treasury's fixed-rate bond. The rate on a 1-year LTN embeds the average Selic the market expects over the next 12 months, plus a term premium. When it sits below today's Selic, the market is pricing cuts; above it, hikes.

Rule. Cutting when the LTN is 0.5 p.p. or more below the Selic target; rising when it is 0.5 p.p. or more above; in between, the signal keeps its previous state.

Why the band. Without it, the rule would switch state 103 times since 2005, 70 of them for less than 20 days, almost always with the LTN hugging the Selic. With the band, there are 17 cycles. Half a point equals two 0.25 p.p. Copom moves and covers the LTN's premium over the 1-year swap, a median of 0.11 p.p. from 2005 to 2019.

Inflation: 12-month IPCA against 3-year IPCA

IPCA 12 monthsIPCA 3 years, annualizedFallingRising

What it measures. Whether recent inflation is above or below its own trend. Annualized 3-year IPCA is the medium-term trend; 12-month IPCA is the recent pace.

Rule. Inflation rising when 12-month IPCA is higher than annualized 36-month IPCA, (indext / indext−36)1/3 − 1; falling otherwise.

When it changes. Once a month, on day 15 of the month after the reference month, so the IPCA is never used before IBGE releases it. This signal needs no band: there are 21 cycles since 2005, and only three lasted one or two months.

The Ibovespa and the four regimes

Inflation falling, rates being cutInflation falling, rates risingInflation rising, rates being cutInflation rising, rates rising

Ibovespa on a log scale, weekly close. Each band is the regime in force that week.

All episodes (37)
RegimeStartEndCalendar daysIbovespa over the periodCDI over the period
Inflation falling, rates risingOct 26, 2026ongoing36−1.1%+1.2%
Inflation falling, rates being cutJul 15, 2026Oct 26, 2026103+0.3%+3.7%
Inflation rising, rates being cutJun 15, 2026Jul 15, 202630+3.3%+1.2%
Inflation falling, rates being cutNov 17, 2025Jun 15, 2026210+8.5%+8.0%
Inflation rising, rates being cutAug 8, 2025Nov 17, 2025101+15.5%+4.0%
Inflation rising, rates risingMar 17, 2025Aug 8, 2025144+3.9%+5.5%
Inflation falling, rates risingJun 28, 2024Mar 17, 2025262+5.6%+8.0%
Inflation falling, rates being cutNov 16, 2022Jun 28, 2024590+12.4%+20.9%
Inflation rising, rates being cutAug 16, 2022Nov 16, 202292−2.9%+3.2%
Inflation rising, rates risingNov 16, 2020Aug 16, 2022638+6.7%+12.1%
Inflation falling, rates risingAug 12, 2020Nov 16, 202096+4.2%+0.5%
Inflation falling, rates being cutApr 22, 2020Aug 12, 2020112+26.6%+0.8%
Inflation falling, rates risingApr 15, 2020Apr 22, 20207+2.4%+0.1%
Inflation rising, rates risingMar 12, 2020Apr 15, 202034+8.6%+0.3%
Inflation rising, rates being cutJan 15, 2020Mar 12, 202057−37.7%+0.6%
Inflation falling, rates being cutOct 15, 2019Jan 15, 202092+11.4%+1.2%
Inflation rising, rates being cutSep 16, 2019Oct 15, 201929+0.8%+0.4%
Inflation falling, rates being cutJul 15, 2019Sep 16, 201963−0.1%+1.1%
Inflation rising, rates being cutJun 24, 2019Jul 15, 201921+1.7%+0.4%
Inflation rising, rates risingMar 15, 2019Jun 24, 2019101+3.0%+1.7%
Inflation falling, rates risingMay 18, 2018Mar 15, 2019301+19.3%+5.2%
Inflation falling, rates being cutNov 16, 2016May 18, 2018548+36.7%+14.5%
Inflation rising, rates being cutMar 14, 2016Nov 16, 2016247+24.3%+9.3%
Inflation rising, rates risingApr 15, 2014Mar 14, 2016699−3.1%+25.2%
Inflation falling, rates risingSep 16, 2013Apr 15, 2014211−6.3%+5.6%
Inflation rising, rates risingFeb 18, 2013Sep 16, 2013210−6.6%+4.4%
Inflation rising, rates being cutFeb 15, 2013Feb 18, 20133−0.5%+0.0%
Inflation falling, rates being cutApr 16, 2012Feb 15, 2013305−6.5%+6.3%
Inflation rising, rates being cutAug 19, 2011Apr 16, 2012241+18.1%+7.0%
Inflation rising, rates risingDec 15, 2010Aug 19, 2011247−22.7%+7.8%
Inflation falling, rates risingJul 24, 2009Dec 15, 2010509+24.6%+13.2%
Inflation falling, rates being cutJul 15, 2009Jul 24, 20099+6.2%+0.2%
Inflation rising, rates being cutDec 11, 2008Jul 15, 2009216+33.2%+6.4%
Inflation rising, rates risingJan 15, 2008Dec 11, 2008331−35.7%+11.2%
Inflation falling, rates risingAug 17, 2007Jan 15, 2008151+23.4%+4.3%
Inflation falling, rates being cutMay 19, 2005Aug 17, 2007820+95.6%+38.1%
Inflation falling, rates risingJan 4, 2005May 19, 2005135−0.1%+6.5%

Cumulative nominal returns from the start of the episode to the start of the next one.

Methodology

Layer 1: macro regime

  1. Days. Ibovespa trading sessions since Jan 4, 2005, the first day with both signals defined.
  2. Rate signal. 1-year LTN rate (Tesouro Prefixado) on Tesouro Direto: the morning buyback rate, interpolated by calendar days between the LTN maturing before 360 days and the one maturing after. Compared with the Selic target in force that day. Cutting when LTN ≤ Selic − 0.5 p.p.; rising when LTN ≥ Selic + 0.5 p.p.; between the two limits, the state is kept. On days without a Treasury rate, the previous state is kept.
  3. Inflation signal. Monthly IPCA chained into an index. Rising when the 12-month change exceeds the annualized 36-month change. The reference month takes effect on day 15 of the following month.
  4. Regime. The combination of the two states, in four quadrants. There is no score or weight: the regime is a classification.
  5. Return by regime. The return between two sessions goes to the regime of the earlier session, the last one known at the close. Each month's IPCA is spread evenly over the month's business days. Annualized over 252 business days on the sum of each regime's days. The calculation stops at the last month with a published IPCA.
  6. Asset classes. CDI (Central Bank series 12); ANBIMA IMA-S, IRF-M, IMA-B 5, IMA-B and IMA-B 5+; Ibovespa (price only); SMAL11 (iShares, reinvests dividends) since 2008; B3 IDIV since 2006 and IFIX since the end of 2010, both total return indices; dollar by the PTAX selling rate; gold (Comex futures, US$ per ounce) and S&P 500 with dividends, converted by PTAX. Each class enters from the first day of its series.
  7. After entering the regime. For each episode, the return above IPCA over 63, 126 and 252 business days from the first day of the regime, even if it changes during the window; shows the median of the episodes with the full window and published IPCA, and in how many the class beat the CDI over the same window.
  8. Year by year. Nominal return of each class in the calendar year, from the last session of the previous year to the last of the year; the year's IPCA as a reference; the year's regime is the one in force in the most sessions.

Layer 2: sentiment

  1. Universe. Each session, the 100 stocks with the highest average traded value over the previous 63 sessions and at least 316 sessions of history, from the B3 historical quotes file (COTAHIST). The universe changes over time, with no survivorship bias.
  2. Components. Stocks below their 200-session average; 252-session highs minus lows; McClellan volume, EMA(19) − EMA(39) of the balance (volume of stocks that rose − of those that fell) / (sum); low-risk factor, 63-session return of the quintile with the lowest 252-session volatility (measured at the start of the period) minus the universe's average return.
  3. Index. Z-score of each component against the last 504 sessions, with the sign flipped on those that rise with fear; average of those available (at least three); 0 to 100 scale = (z + 2) / 4, capped at the ends. Zones: below 15, extreme pessimism; 15 to 35, pessimism; 35 to 65, neutral; 65 to 85, optimism; above 85, extreme optimism.
  4. After the extremes. Counts each entry into an extreme zone, with at least 60 sessions between two counts, and measures the Ibovespa over the following 60 sessions.

Layer 3: company

  1. Universe. Only companies with shares traded on B3: the CNPJ is linked to the ticker through the CVM registration form (FCA), and the share must have trades in COTAHIST over the last 21 sessions. Debenture issuers without listed shares, such as subsidiaries and privately held companies, are left out.
  2. Accounts. Beneish M-Score (flag above −1.78), accrual ratio and Altman Z-Score, from the earnings quality dashboard (beneish.alissonprata.io).
  3. Banks. CAMELS-inspired signals from the bank dashboard (Central Bank IF.data), for the prudential conglomerates in segments S1 and S2: Basel ratio, CET1, problem assets, delinquency, coverage, cost of risk, ROE, non-recurring results, liquidity and loans to deposits, for the period against the same period a year earlier, with the dashboard flag and signals. Banks do not issue debentures (they fund through financial bills and CDBs), so they have no spread reading. Only banks with shares on B3 are included; state banks without shares, cooperatives and privately held banks are left out. Non-bank financial issuers with debentures in the Graph show the spread only.
  4. Credit. The company's own debentures (same CNPJ root) in the Credit Graph: spread over the curve, fair spread from sector, maturity and index peers, deviation in basis points and in standard deviations, and the spread change over 21 sessions. Reading: a deviation of up to 1 standard deviation is "in line with peers"; a change above 15 bps in 21 sessions is widening, above 40 is strong widening.

Limits

Sources

The idea of crossing the rate cycle with the inflation cycle, and of measuring sentiment through stock behavior, appears in market strategy reports; the rules, data and numbers on this page are my own. Updated every business day at 20:00. Code