Trend indicators

T-Line Trading: The 8-Day EMA Rule, How It Is Read and How It Did

The T-Line is an 8-day exponential moving average with a stay-in-the-trade rule on the close. Here are its formula, how swing traders read it, and what the rule did on 33 years of the S&P 500 ETF and 9 years of Bitcoin.

· Founder of PatternsWizard
Checked 9 min read
EMA(8) on S&P 500 ETF, dividend-adjusted prices, daily, August 5, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
On this page
  1. What is the T-Line indicator?
  2. How to trade with the T-Line
  3. Example on the S&P 500 ETF in 2026
  4. Does the T-Line rule work? A test over the full history
  5. T-Line versus other moving averages
  6. Tested on our bench
  7. Frequently asked questions

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

The T-Line is the 8-day exponential moving average of the closing price, the 8 EMA, used as a trend line for swing trades. Hit and Run Candlesticks, the site run by Rick Saddler and others where the name comes from, says the term was coined “back when I was working as a moderator in a trading room in 2004”, and adds: “Of course, I am not the first person to use the 8 EMA.” The T-Line is a name and a trading plan built on a standard average, not a new indicator.

T-Line, the 8-day EMA, on the daily S&P 500 ETF

EMA(8) on S&P 500 ETF, dividend-adjusted prices, daily, May 8, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • EMA(8) of the close (solid line)
EMA(8) on S&P 500 ETF, dividend-adjusted prices, daily, May 8, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

What is the T-Line indicator?

An exponential moving average gives more weight to recent closes than a simple average does. With 8 periods, the latest close weighs 2 / (8 + 1), about 22% of the value, so the line hugs price closely and turns within a few bars. On a daily chart, the T-Line is a short-term trend line: a close above it is a close above the recent weighted average of prices, a close below it the opposite.

The T-Line is not a 10-period line: the source of the name defines it as the 8 EMA, and a 10-period average is a different line.

How to trade with the T-Line

The Hit and Run Candlesticks page gives one basic rule: “if you are in a long position, you want the price to close above the T-Line to stay in the trade.” The opposite holds for a short, which stays open while price closes below the line. Everything else is built around that rule.

  • The close counts, not the intraday touch. A bar that dips through the line and closes back above it does not end a long trade under the rule. A second page of the same site, on trading the T-Line, also looks at the next day’s close to confirm a break.
  • T-Line runs. A series of closes on the same side of the line is read as a run; a run that ends with a close on the other side is the exit signal.
  • The line as support or resistance. In an uptrend, pullbacks to the T-Line that close above it are read as places to add or enter; in a downtrend, rallies that close below it are read the other way.
  • Time frames. The author writes that the T-Line works best on daily, weekly and monthly charts and “is not as reliable on the 1- or 5-minute charts.” Our bench found the close rule lagged the market on the daily, weekly and four-hour bars it tested.

The T-Line rule is judged at the close

The T-Line rule is judged at the close: rising candles above a rising T-Line. One candle dips below the line during the session but closes back above it, so the long trade stays open. Later, a falling candle closes below the line: that first close below is the exit, taken at the next open.
Schematic, not market data.A candle that dips through the T-Line but closes above it keeps the trade open. Under the strict close rule tested on this page, the first close below is the exit; the author's second page waits for the next day's close to confirm it.

The T-Line is often paired with a slower average, such as the 20 or 50-day, to judge the larger trend, which is the idea behind a moving average crossover. On its own it says nothing about where to put a profit target.

Example on the S&P 500 ETF in 2026

The chart above shows the last 120 daily bars of the S&P 500 ETF, from May 8 to October 28, 2026, with the 8 EMA. Price closed above the T-Line on 72 of those 120 days and crossed it 24 times, about once a week on average. The longest run above the line lasted 13 sessions, from June 29; the longest run below it lasted 7 sessions, from August 18. On October 28 the ETF closed at 772.31, just above a T-Line of 768.48.

That is the T-Line in practice: in a steady advance, price spends most days above it, and the 24 crosses are the cost of a line that reacts fast.

Does the T-Line rule work? A test over the full history

We ran the long-only version of the rule on two daily series, over all the history we hold for each, starting flat once the averages were complete. Each day, if the close is above the EMA, the position is long from the next open; if it is below, the position is flat from the next open. Cash earns nothing, there are no costs in the first columns, and the same rule is shown with a 20-day EMA for comparison. Prices are adjusted for dividends and splits, so buy and hold includes dividends.

Market and periodT-Line (8 EMA) rule20 EMA ruleBuy and hold
S&P 500 ETF, Apr 28, 1993 to Oct 28, 2026: yearly return1.9%4.2%10.9%
S&P 500 ETF: worst drop from a peak−59.1%−41.4%−55.4%
S&P 500 ETF: completed trades, share of winners869, 39.4%542, 37.6%1 position
Bitcoin, Oct 17, 2017 to Oct 28, 2026: yearly return45.4%46.0%34.0%
Bitcoin: worst drop from a peak−60.7%−57.5%−83.2%
Bitcoin: completed trades, share of winners334, 29.9%184, 27.7%1 position

T-Line rule against buy and hold, yearly return in each half of the test

T-Line rule against buy and hold, yearly return in each half of the test. S&P 500 ETF, 1993 to January 2010: T-Line (8 EMA) rule −0.8%, Buy and hold +7.7%; S&P 500 ETF, January 2010 to 2026: T-Line (8 EMA) rule +4.7%, Buy and hold +14.3%; Bitcoin, 2017 to April 24, 2022: T-Line (8 EMA) rule +78.7%, Buy and hold +53.1%; Bitcoin, April 24, 2022 to 2026: T-Line (8 EMA) rule +18.3%, Buy and hold +17.3%. Our computation; the inputs and the method are in the text.
  • T-Line (8 EMA) rule
  • Buy and hold
Our computation; the inputs and the method are in the text.Before costs. Each series is split in two halves, the ETF at January 2010 and Bitcoin at April 24, 2022. The rule trailed holding in both halves on the ETF and led on Bitcoin mostly in the first half.

Three things stand out.

  • On the S&P 500 ETF, the rule lost to holding. It was long 62.5% of the days and still lost most of the market’s return: the median trade lost 0.28%, and the many small losses from whipsaws ate the gains of the long runs. Split in two halves at January 2010, the rule made −0.8% a year in the first half against 7.7% for buy and hold, and 4.7% in the second against 14.3%.
  • On Bitcoin, a single series, the rule beat holding before costs. It was long 52.4% of the days, avoided much of the deepest falls, and kept the big runs. The gap came mostly from the first half: split in two halves at April 24, 2022, the rule made 78.7% a year against 53.1% before, then 18.3% against 17.3% after; the second-half gap depends on the exact split day.
  • Costs matter. With an assumed cost of 0.05% per entry or exit on the ETF, the T-Line rule falls to −0.7% a year; with 0.1% per side on Bitcoin, it falls to 35.0%, about level with buy and hold. These cost levels are assumptions for the illustration, not quotes from a broker.

This is one rule tested on two markets, without taxes, slippage or interest on cash, and the Bitcoin result rests on a single long boom. It is also sensitive to the start date: starting the Bitcoin test on other dates between September 6 and November 26, 2017 moves the rule's yearly return between 41.7% and 51.0% and buy and hold's between 28.4% and 42.6%, and with 0.1% costs per side the rule ends behind buy and hold for every start from September 6 to September 25, 2017 (for example 37.5% against 42.6% from September 15). It shows how the T-Line behaves, not that it gives an edge. Our bench tested the close rule, long and short, across markets after costs: it lagged the market, the short side by a small, fragile margin; the results are in the section below, and our bench methodology explains how the test works.

T-Line versus other moving averages

  • T-Line versus the 20 EMA. The slower line crossed less often, so it made fewer trades: 542 against 869 on the ETF. It did better there, and about the same on Bitcoin.

T-Line (8 EMA) against the 20 EMA on daily Bitcoin

EMA(8) and EMA(20) crossover on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • EMA(8) of the close (solid line)
  • EMA(20) of the close (solid line, second color)
  • Fast average crosses above the slow one
  • Fast average crosses below the slow one
EMA(8) and EMA(20) crossover on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

On the Bitcoin chart, the 8 EMA turns several bars before the 20 EMA at each swing: that early turn is what gets the T-Line out sooner, and also what makes it whipsaw more in a flat market.

  • T-Line versus a simple 8-day average. A simple moving average weighs the 8 closes equally, so it reacts a little later to the newest close.
  • T-Line versus a trendline. A trendline is drawn by hand through swing lows or highs; the T-Line is computed and leaves no choice to the chartist.

More trend tools are listed in trend indicators.

Data from our test bench

Tested on our bench

We coded the 2 strategies taught on this page, buy and sell side, and ran them on stocks, ETFs, indices, forex, crypto and commodities. With all markets pooled (daily bars): 2 did worse than the market.

Close crosses the T-line (EMA 8), bullishLagged the market

Entry: Close crosses above EMA(8). Exit: Opposite signal (stop and reverse).

The trade itself made money on average, but less than the rest of the market over the same bars.

In detail, all markets pooled

On daily bars, the rule fired 891,407 times on 2,357 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 10 bars on each asset.

The average trade returned +0.17% before costs and the median trade −0.85%; 31% of trades made money, and the gains added up to 1.11 times the losses.

A trade lasted 3 bars at the median, half of them between 1 and 7 bars.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.18% per trade after costs (95% interval −0.20% to −0.16%).

Signals
891,4072,357 assets, 1970 to 2026
Average trade
+0.17%before costs; median −0.85%
Winning trades
31%profit factor 1.11
Median hold
3 barshalf between 1 and 7
Vs the market, after costs
−0.18%95% interval −0.20% to −0.16%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal50.0%51.8%52.0%53.2%54.3%
Random dates50.6%51.9%52.5%53.5%54.5%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 2012297,314−0.09%
2012 to 2021296,961−0.04%
2021 to 2026297,132−0.08%

Stress tests

The same trades, measured again under harsher assumptions (vs market, after costs).

VariantVs marketResult
As tested: entry at the signal close, standard costs−0.18%
Entry at the next bar's open−0.20%Holds
Trading costs doubled−0.28%Holds
1% most extreme trades trimmed on each side−0.28%Holds

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 38% of 887,331 trades hit the target first, for +0.15 R per trade on average against +0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −63.3% on ONG/USDT, signal of 2021-05-20.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Close crosses the T-line (EMA 8), bullish: real trade on AVAX/USDT, 2026-07-20, daily chart
Most recentAVAX 2026-07-20 daily chartBought at the close of 2026-07-20 (6.58), sold 3 bars later, when the exit rule fired (6.27): −4.7% before costs.Against the other crypto pairs over the same bars, after costs: −2.6%.EMA 8
Close crosses the T-line (EMA 8), bullish: real trade on BNB/USDT, 2021-01-28, daily chart
Best tradeBNB 2021-01-28 daily chartBought at the close of 2021-01-28 (42.53), sold 26 bars later, when the exit rule fired (231.4): +444.1% before costs.Against the other crypto pairs over the same bars, after costs: +170.4%.EMA 8
Close crosses the T-line (EMA 8), bullish: real trade on NBIX, 2006-05-15, daily chart
Worst tradeNBIX 2006-05-15 daily chartBought at the close of 2006-05-15 (54.63), sold 1 bar later, when the exit rule fired (20.76): −62.0% before costs.Against the other stocks over the same bars, after costs: −62.0%.EMA 8
Close crosses the T-line (EMA 8), bullish: real trade on IRWD, 2013-12-06, daily chart
Typical tradeIRWD 2013-12-06 daily chartBought at the close of 2013-12-06 (9.45), sold 3 bars later, when the exit rule fired (9.37): −0.8% before costs.Against the other stocks over the same bars, after costs: +0.9%.EMA 8

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily770,972+0.16%31%−0.16%Lagged the market
ETFsdaily27,102+0.08%33%−0.10%Lagged the market
Indicesdaily13,691+0.28%36%n/aNot measured
Forexdaily9,535−0.01%30%−0.05%No edge found
Cryptodaily62,136+0.34%24%−0.39%Lagged the market
Commoditiesdaily7,971+0.16%30%−0.15%No edge found
All markets4-hour453,720−0.06%27%−0.27%Lagged the market
Forex4-hour53,981−0.01%28%−0.04%Inconclusive
Crypto4-hour399,739−0.07%26%−0.30%Lagged the market
All marketsweekly158,832+1.20%33%−0.33%Lagged the market
Stocksweekly141,761+0.95%33%−0.33%Lagged the market
ETFsweekly5,224+0.81%37%0.000%No edge found
Indicesweekly2,809+1.23%39%−0.17%No edge found
Forexweekly1,939−0.19%28%−0.23%Inconclusive
Cryptoweekly5,442+12.41%29%n/aNot measured
Commoditiesweekly1,657+0.87%31%−0.36%No edge found
Close crosses the T-line (EMA 8), bearishLagged the market, fragile

Entry: Close crosses below EMA(8). Exit: Opposite signal (stop and reverse).

In detail, all markets pooled

On daily bars, the rule fired 896,314 times on 2,360 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 10 bars on each asset.

The average trade returned −0.30% before costs and the median trade −0.96%; 26% of trades made money, and the gains added up to only 0.81 times the losses. For this sell signal, a trade gains when the price falls (a short sale).

A trade lasted 3 bars at the median, half of them between 1 and 6 bars.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.16% per trade after costs (95% interval −0.18% to −0.14%). For a sell signal, a positive number means the asset did worse than the others, as the signal announced.

Signals
896,3142,360 assets, 1970 to 2026
Average trade
−0.30%before costs; median −0.96%
Winning trades
26%profit factor 0.81
Median hold
3 barshalf between 1 and 6
Vs the market, after costs
−0.16%95% interval −0.18% to −0.14%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal47.6%47.5%46.7%46.0%45.5%
Random dates48.2%47.5%47.0%46.2%45.3%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 2012298,822−0.06%
2012 to 2021298,752−0.03%
2021 to 2026298,740−0.08%

Stress tests

The same trades, measured again under harsher assumptions (vs market, after costs).

VariantVs marketResult
As tested: entry at the signal close, standard costs−0.16%
Entry at the next bar's open−0.13%Does not hold
Trading costs doubled−0.26%Holds
1% most extreme trades trimmed on each side−0.18%Holds

The result no longer holds when entering at the next bar's open instead of the signal close.

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 28% of 890,726 trades hit the target first, for −0.15 R per trade on average against −0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −382.3% on NU/USDT, signal of 2021-10-10.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Close crosses the T-line (EMA 8), bearish: real trade on ETC/USDT, 2026-07-19, daily chart
Most recentETC 2026-07-19 daily chartSold short at the close of 2026-07-19 (6.95), bought back 2 bars later, when the exit rule fired (7.00): −0.7% before costs.Against the other crypto pairs over the same bars, after costs: −0.2%.EMA 8
Close crosses the T-line (EMA 8), bearish: real trade on SUNE, 2025-03-26, daily chart
Best tradeSUNE 2025-03-26 daily chartSold short at the close of 2025-03-26 (90.00), bought back 48 bars later, when the exit rule fired (1.69): +98.1% before costs.Against the other stocks over the same bars, after costs: +98.1%.EMA 8
Close crosses the T-line (EMA 8), bearish: real trade on DOGE/USDT, 2021-01-19, daily chart
Worst tradeDOGE 2021-01-19 daily chartSold short at the close of 2021-01-19 (0.009043), bought back 9 bars later, when the exit rule fired (0.0365): −303.6% before costs.Against the other crypto pairs over the same bars, after costs: −272.9%.EMA 8
Close crosses the T-line (EMA 8), bearish: real trade on AEE, 2022-03-09, daily chart
Typical tradeAEE 2022-03-09 daily chartSold short at the close of 2022-03-09 (75.83), bought back 1 bar later, when the exit rule fired (76.54): −0.9% before costs.Against the other stocks over the same bars, after costs: −1.2%.EMA 8

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily774,518−0.35%26%−0.15%Lagged the market, fragile
ETFsdaily27,096−0.25%25%−0.09%Lagged the market, fragile
Indicesdaily13,687−0.09%28%n/aNot measured
Forexdaily9,533−0.03%28%−0.05%No edge found
Cryptodaily63,511+0.16%33%−0.39%Lagged the market, fragile
Commoditiesdaily7,969−0.17%28%−0.16%No edge found
All markets4-hour456,311−0.09%29%−0.27%Lagged the market
Forex4-hour55,618−0.01%28%−0.04%Inconclusive
Crypto4-hour400,693−0.10%29%−0.30%Lagged the market
All marketsweekly162,250−1.26%24%−0.23%Lagged the market
Stocksweekly144,224−1.36%24%−0.22%Lagged the market
ETFsweekly5,232−0.70%23%+0.01%No edge found
Indicesweekly2,812−0.44%26%−0.16%No edge found
Forexweekly1,942−0.19%28%−0.19%Inconclusive
Cryptoweekly6,391+0.29%36%n/aNot measured
Commoditiesweekly1,649−0.82%25%−0.46%No edge found

Each strategy enters at the close of the signal bar and exits at the exit it teaches, without a stop. The test compares the asset with an equal-weight basket of the other assets of its market over exactly the same bars, net of trading costs; for a sell signal, beating the market means the asset did worse than the others. A result is shown as beating or lagging the market only when it survives a correction for the number of tests and holds in both halves of the history; it is marked fragile when entering at the next open, doubling costs or trimming extreme trades removes it. Daily index bars are not compared with other indices, because their closes fall at different hours; “Not measured” also covers samples too small to test. Rules were fixed before any result was seen. How we test

Frequently asked questions

What is the T-Line in trading?

The 8-day exponential moving average of the close. The name was coined by the author of Hit and Run Candlesticks, who says he came up with it in a trading room in 2004 and that he was not the first to use the 8 EMA.

What is the T-Line rule?

Stay long while price closes above the T-Line, and stay short while it closes below. A close on the other side of the line is the exit.

Is the T-Line the same as the 8 EMA?

Yes. In TradingView or MetaTrader, an exponential moving average of the close with a length of 8 is the T-Line. Public scripts named T-Line on TradingView add colors or signals on top of the same line.

What time frame is best for the T-Line?

Its author recommends daily, weekly and monthly charts and says it is less reliable on 1 and 5-minute charts. Our long test above covers daily bars; our bench also found the rule lagged the market on four-hour and weekly bars.

Is T-Line trading profitable?

It depends on the market. On the S&P 500 ETF from 1993 to 2026, the long-only rule made 1.9% a year before costs, far below the 10.9% of buy and hold. On Bitcoin from 2017 to 2026, it made 45.4% a year before costs against 34.0% for buy and hold, and about the same as holding once a cost of 0.1% per side is counted. Across markets after costs, our bench found the rule lagged the market.

Sources

  1. Hit and Run Candlesticks, T-Line Trading
  2. Hit and Run Candlesticks, Trading the T-Line
  3. StockCharts ChartSchool, Moving Averages: Simple and Exponential
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

Related guides

All trend indicators articles