Indicator · Pine Script v6 · On the chart

MP TD Sequential V1

by mikepardo

A Pine v6 overlay that implements a Tom DeMark style Sequential count.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code779
Settings33inputs
LicenceNone stated
Last update2 months ago21 Aug 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

MP TD Sequential V1 tracks Setup counts of nine bars and Countdown counts to thirteen, with options for price flip, the 13-versus-8 qualifier, TDST cancellation, opposing setup cancellation and recycling. It can show perfection markers, TDST support and resistance lines, a risk level on countdown 13, a 12-bar reversal box and a diagnostic table. Lengths, lookbacks and colours are adjustable.

Details

Published by

mikepardo on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Setup lengthint9setupLength
Setup lookbackint4setupLookback
Countdown lengthint13countdownLength
Countdown lookbackint2countdownLookback
Countdown qualifier barint8qualifierBar
Require Price Flip to start SetupbooltruerequirePriceFlip
Require 13-vs-8 qualifierbooltruerequireQualifier
Cancel Countdown on TDST violationbooltrueenableTDSTCancel
Cancel Countdown on opposing SetupbooltrueenableOpposingSetupCancel
Enable Recycle logicbooltrueenableRecycle
Recycle min % of prior Setup sizeint100recycleMinPct
Recycle max % of prior Setup sizeint200recycleMaxPct
Show all 33 settings
SettingTypeDefaultVariable
Enable 22-bar Setup extension recyclebooltrueenable22BarRecycle
TDST break rulestringclosetdstBreakRule
Show Setup countsstringKey only (6-9)showSetupCounts
Show Perfection marker (blue dot)booltrueshowPerfectionMarker
Show Countdown countsstringKey only (8, 13)showCountdownCounts
Show disqualified 13 placeholder (+)booltrueshowDisqualified13
Show TDST linesbooltrueshowTDSTLines
Show Risk Level on Countdown 13booltrueshowRiskLevel
Shade Risk ZoneboolfalseshowRiskZone
Show 12-bar reversal window boxbooltrueshow12BarBox
Show diagnostic tableboolfalseshowDiagnosticTable
Diagnostic table positionstringTop righttablePosition
Buy Setup colorcolorcolor.new(color.green, 0)buySetupColor
Sell Setup colorcolorcolor.new(color.red, 0)sellSetupColor
Perfection marker colorcolorcolor.new(color.blue, 0)perfectionColor
TDST Support colorcolorcolor.new(color.green, 40)tdstSupportColor
TDST Resistance colorcolorcolor.new(color.red, 40)tdstResistanceColor
Risk Level colorcolorcolor.new(color.orange,0)riskLevelColor
Disqualified marker colorcolorcolor.new(color.gray, 0)disqualifiedColor
Setup count sizestringtinysetupCountSize
Key count size (9, 13)stringsmallkeyCountSize
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

PivotHighLow

by Alorse
330 stars

This indicator calculates pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition

Indicator v4 Support & resistanceOscillators & momentum Repaints
Updated 2 months ago · None stated GitHub repository of PivotHighLow
114 stars

This indicator calculates key support and resistance levels by analyzing the first and second momentum derivatives of a Double Exponential Moving Average (DEMA). When the second derivative (momentum of momentum) crosses zero, it identifies local turning points

Indicator v4 Support & resistanceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Support and Resistance Levels

Moon Dev Lunar Sniper

by moondevonyt
92 stars

Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Lunar Sniper
23 stars

This indicator collection calculates and plots previous daily high and low price levels on the chart to identify potential supply and demand zones. It includes real-time intraday high and low calculations, RSI divergence detection across a customizable period

Indicator v4 Support & resistanceDivergence
Updated 3 years ago · None stated GitHub repository of Daily High and Low Strategy
14 stars

Self-Aware Trend System calculates volatility-adaptive ATR trailing bands using a Trend Quality Index engine that evaluates market efficiency, momentum persistence, and structural pivots. It plots adaptive trend bands and character-flip trend signals directly

Indicator v6 TrendVolatility & bands
Updated 3 weeks ago · MIT GitHub repository of Self-Aware Trend System [WillyAlgoTrader]

More Oscillators & momentum scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers