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.

On this page
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

- Price, daily candles (hollow up, filled down)
- EMA(8) of the close (solid line)
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 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 period | T-Line (8 EMA) rule | 20 EMA rule | Buy and hold |
|---|---|---|---|
| S&P 500 ETF, Apr 28, 1993 to Oct 28, 2026: yearly return | 1.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 winners | 869, 39.4% | 542, 37.6% | 1 position |
| Bitcoin, Oct 17, 2017 to Oct 28, 2026: yearly return | 45.4% | 46.0% | 34.0% |
| Bitcoin: worst drop from a peak | −60.7% | −57.5% | −83.2% |
| Bitcoin: completed trades, share of winners | 334, 29.9% | 184, 27.7% | 1 position |
T-Line rule against buy and hold, yearly return in each half of the test

- T-Line (8 EMA) rule
- Buy and hold
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

- 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
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 after | 1 | 3 | 5 | 10 | 20 |
|---|---|---|---|---|---|
| After the signal | 50.0% | 51.8% | 52.0% | 53.2% | 54.3% |
| Random dates | 50.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.
| Period | Signals | Vs market, before costs |
|---|---|---|
| 1970 to 2012 | 297,314 | −0.09% |
| 2012 to 2021 | 296,961 | −0.04% |
| 2021 to 2026 | 297,132 | −0.08% |
Stress tests
The same trades, measured again under harsher assumptions (vs market, after costs).
| Variant | Vs market | Result |
|---|---|---|
| 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.




Market by market
| Market | Bars | Signals | Avg trade | Winners | Vs market, after costs | Result |
|---|---|---|---|---|---|---|
| Stocks | daily | 770,972 | +0.16% | 31% | −0.16% | Lagged the market |
| ETFs | daily | 27,102 | +0.08% | 33% | −0.10% | Lagged the market |
| Indices | daily | 13,691 | +0.28% | 36% | n/a | Not measured |
| Forex | daily | 9,535 | −0.01% | 30% | −0.05% | No edge found |
| Crypto | daily | 62,136 | +0.34% | 24% | −0.39% | Lagged the market |
| Commodities | daily | 7,971 | +0.16% | 30% | −0.15% | No edge found |
| All markets | 4-hour | 453,720 | −0.06% | 27% | −0.27% | Lagged the market |
| Forex | 4-hour | 53,981 | −0.01% | 28% | −0.04% | Inconclusive |
| Crypto | 4-hour | 399,739 | −0.07% | 26% | −0.30% | Lagged the market |
| All markets | weekly | 158,832 | +1.20% | 33% | −0.33% | Lagged the market |
| Stocks | weekly | 141,761 | +0.95% | 33% | −0.33% | Lagged the market |
| ETFs | weekly | 5,224 | +0.81% | 37% | 0.000% | No edge found |
| Indices | weekly | 2,809 | +1.23% | 39% | −0.17% | No edge found |
| Forex | weekly | 1,939 | −0.19% | 28% | −0.23% | Inconclusive |
| Crypto | weekly | 5,442 | +12.41% | 29% | n/a | Not measured |
| Commodities | weekly | 1,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 after | 1 | 3 | 5 | 10 | 20 |
|---|---|---|---|---|---|
| After the signal | 47.6% | 47.5% | 46.7% | 46.0% | 45.5% |
| Random dates | 48.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.
| Period | Signals | Vs market, before costs |
|---|---|---|
| 1970 to 2012 | 298,822 | −0.06% |
| 2012 to 2021 | 298,752 | −0.03% |
| 2021 to 2026 | 298,740 | −0.08% |
Stress tests
The same trades, measured again under harsher assumptions (vs market, after costs).
| Variant | Vs market | Result |
|---|---|---|
| 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.




Market by market
| Market | Bars | Signals | Avg trade | Winners | Vs market, after costs | Result |
|---|---|---|---|---|---|---|
| Stocks | daily | 774,518 | −0.35% | 26% | −0.15% | Lagged the market, fragile |
| ETFs | daily | 27,096 | −0.25% | 25% | −0.09% | Lagged the market, fragile |
| Indices | daily | 13,687 | −0.09% | 28% | n/a | Not measured |
| Forex | daily | 9,533 | −0.03% | 28% | −0.05% | No edge found |
| Crypto | daily | 63,511 | +0.16% | 33% | −0.39% | Lagged the market, fragile |
| Commodities | daily | 7,969 | −0.17% | 28% | −0.16% | No edge found |
| All markets | 4-hour | 456,311 | −0.09% | 29% | −0.27% | Lagged the market |
| Forex | 4-hour | 55,618 | −0.01% | 28% | −0.04% | Inconclusive |
| Crypto | 4-hour | 400,693 | −0.10% | 29% | −0.30% | Lagged the market |
| All markets | weekly | 162,250 | −1.26% | 24% | −0.23% | Lagged the market |
| Stocks | weekly | 144,224 | −1.36% | 24% | −0.22% | Lagged the market |
| ETFs | weekly | 5,232 | −0.70% | 23% | +0.01% | No edge found |
| Indices | weekly | 2,812 | −0.44% | 26% | −0.16% | No edge found |
| Forex | weekly | 1,942 | −0.19% | 28% | −0.19% | Inconclusive |
| Crypto | weekly | 6,391 | +0.29% | 36% | n/a | Not measured |
| Commodities | weekly | 1,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.
