Private Access · Closed Source

TD Sequential

Tom DeMark Exhaustion System · All Instruments · Pine Script v5

A momentum exhaustion indicator that identifies potential trend reversals in two phases: Setup (1–9) counts consecutive directional bars, and Countdown (1–13) confirms exhaustion. The countdown 13 is the strongest reversal signal in the system. Private script — source code not publicly available.

2
Phases
9
Setup Count
13
Countdown
v5
Pine Script
Overview

What Is TD Sequential?

TD Sequential is a momentum exhaustion indicator developed by Tom DeMark in the 1990s. It's designed to identify when a trend is running out of steam and a reversal is likely.

The system is used by institutional traders, hedge funds, and retail traders worldwide. Bloomberg, Reuters, and most major charting platforms have built-in versions.

This implementation is a private, closed-source Pine Script. The source code is not publicly available. The indicator can be added to your chart if you have access, but the underlying logic cannot be viewed or copied.

Signals

Signal Reference

SignalMeaningAction
Setup 9Directional momentum is exhaustedPrepare for reversal — don't enter new positions in trend direction
Countdown 1–12Reversal is buildingWatch for confirmation
Countdown 13Reversal is confirmedHighest-probability entry in the opposite direction
Phases

The Two Phases

The system operates in two sequential phases. Setup must complete before Countdown begins.

Setup (1–9)
Directional Exhaustion Count

Counts 9 consecutive bars where each close is higher (or lower) than the close from 4 bars ago.

Close > Close[4] for 9 bars = Bullish setup
Close < Close[4] for 9 bars = Bearish setup

If the sequence breaks before reaching 9, the count resets to 0.

Countdown (1–13)
Exhaustion Confirmation

After a setup 9, the script counts 13 qualifying bars — these do NOT need to be consecutive.

Buy: Close ≤ Low of 2 bars ago
Sell: Close ≥ High of 2 bars ago

When the count reaches 13, the strongest reversal signal fires.

Logic

How Each Phase Works

● Phase 1 — Setup
On each bar, the script compares close to close[4]. If close is higher, the bullish counter increments. If close is lower, the bearish counter increments. If neither condition is met, both counters reset to 0. When a counter reaches 9, a labeled "9" appears with a horizontal line at that price level — this is the exhaustion warning.
● Phase 2 — Countdown
After a bullish setup 9, a sell countdown begins — counting bars where close ≥ high of 2 bars ago. After a bearish setup 9, a buy countdown begins — counting bars where close ≤ low of 2 bars ago. Unlike the setup phase, the countdown does not need consecutive bars. When the count reaches 13, a labeled "13" appears with a horizontal line and a pulse dot.
● Why 9 and 13?
Tom DeMark's research found that 9 represents the average duration of a trending phase before exhaustion kicks in, and 13 represents the number of qualifying bars needed to confirm that the exhaustion is real and a reversal is imminent.
Visual Output

What You See on the Chart

● Setup Phase (1–8)
Small numbered labels above (bullish) or below (bearish) each bar showing the current count. Disabled by default — toggle "Show Intermediate Counts" to enable.
● Setup 9
Large labeled "9" at the price level with a horizontal line extending forward. Green for bullish, red for bearish. This signals directional exhaustion.
● Countdown Phase (1–12)
Small numbered labels showing the current countdown. Disabled by default — toggle "Show Countdown Counts" to enable.
● Countdown 13
Large labeled "13" with a horizontal line and a yellow pulse dot on the previous bar. Green for bullish reversal, red for bearish reversal. This is the strongest reversal signal in the system.
Reading Guide

How to Use TD Sequential

Step 1 — Watch for Setup 9. When a "9" label appears, the current trend is exhausted. Don't enter new positions in the trend direction. Prepare for a potential reversal.

Step 2 — Monitor the Countdown. After setup 9, countdown bars begin accumulating. You don't need to count manually — the labels do it for you.

Step 3 — Wait for Countdown 13. When "13" appears, this is the primary reversal signal. Combine with support/resistance or volume confirmation before entering.

Step 4 — Manage the Trade. Use the horizontal lines at the 9 and 13 levels as reference points. The 13 level often acts as support or resistance after the signal.

Step 5 — Use Higher Timeframes. A 13 on the daily chart carries more weight than a 13 on the 5-minute chart. For day trading, use 5m or 15m. For swing trading, use daily or weekly.

Conditions

When It Works Best

● Ideal Conditions
Any timeframe — works on 1-min through monthly charts
Any market — stocks, futures, forex, crypto
Range-bound markets — countdown 13 signals are most reliable when price is oscillating
End of trend — setup 9 at a key support/resistance level is high-conviction
● Limitations
Strong trends — countdown 13 can arrive late in powerful directional moves
Not standalone — needs confirmation from other tools
Repainting risk — always use with barstate.isconfirmed to avoid false signals
1-minute chart — too noisy, generates excessive signals
Configuration

Default Parameters

ParameterDefaultDescription
Show TD SequentialtrueMaster toggle for the entire module
Show TD LinestrueHorizontal lines at 9 and 13 levels
TD Pulse on CountdowntrueYellow pulse dot at countdown 13
Show Intermediate CountsfalseNumbers 1–8 during setup phase
Show Countdown CountsfalseNumbers 1–12 during countdown phase
Label Offset %0.05Vertical offset for labels above/below bars
Label Sizesmalltiny / small / normal / large / huge
Extend Lines Forward20How many bars the horizontal lines extend
Setup Guide

How to Load It

1
Open TradingView
Load any instrument — works on stocks, futures, forex, and crypto.
2
Search the Script
Search "TD Sequential" by SireMammat in the TradingView public scripts library and add it to your chart.
3
Choose Your Timeframe
5m or 15m for day trading. Daily or weekly for swing trading. The indicator adapts to any timeframe.
4
Enable Intermediate Counts (Optional)
Toggle "Show Intermediate Counts" and "Show Countdown Counts" if you want to see every number. Off by default to reduce chart clutter.
5
Wait for Signals
Don't force trades. Let the 9 and 13 signals come to you. Combine with your existing support/resistance levels for confirmation.
Quick Stats
Phases2
Setup Count9 consecutive bars
Countdown13 qualifying bars
Setup Ruleclose vs close[4]
Countdown Ruleclose vs low[2] / high[2]
TimeframeAny
VersionPine Script v5
AccessPrivate · Closed Source
Access
This indicator is published as Private + Closed on TradingView. The source code is not publicly visible.
🔒 Private Script ☕ Buy Me a Coffee
Signal Legend
Green "9"Bullish Setup
Red "9"Bearish Setup
Green "13"Buy Reversal
Red "13"Sell Reversal
Horizontal LinesPrice Level
Yellow PulseCD13 Marker
Signal Flow
Step 1Setup 1–9 builds
Step 29 = Exhaustion
Step 3Countdown 1–12
Step 413 = Reversal
Based On
AuthorTom DeMark
SystemTD Sequential
Era1990s
Used ByBloomberg, Reuters, HFs
Legal Notice
TD Sequential is a proprietary methodology developed by Tom DeMark. This implementation is an independent Pine Script coded for personal use. Published as Private + Closed to comply with intellectual property considerations. Not affiliated with DeMark Analytics or Bloomberg.
Tags
TD Sequential Tom DeMark Exhaustion Reversal Setup 9 Countdown 13 Momentum Pine Script v5 Private