1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Setup length
int
9
setupLength
Setup lookback
int
4
setupLookback
Countdown length
int
13
countdownLength
Countdown lookback
int
2
countdownLookback
Countdown qualifier bar
int
8
qualifierBar
Require Price Flip to start Setup
bool
true
requirePriceFlip
Require 13-vs-8 qualifier
bool
true
requireQualifier
Cancel Countdown on TDST violation
bool
true
enableTDSTCancel
Cancel Countdown on opposing Setup
bool
true
enableOpposingSetupCancel
Enable Recycle logic
bool
true
enableRecycle
Recycle min % of prior Setup size
int
100
recycleMinPct
Recycle max % of prior Setup size
int
200
recycleMaxPct
Show all 33 settings
Setting
Type
Default
Variable
Enable 22-bar Setup extension recycle
bool
true
enable22BarRecycle
TDST break rule
string
close
tdstBreakRule
Show Setup counts
string
Key only (6-9)
showSetupCounts
Show Perfection marker (blue dot)
bool
true
showPerfectionMarker
Show Countdown counts
string
Key only (8, 13)
showCountdownCounts
Show disqualified 13 placeholder (+)
bool
true
showDisqualified13
Show TDST lines
bool
true
showTDSTLines
Show Risk Level on Countdown 13
bool
true
showRiskLevel
Shade Risk Zone
bool
false
showRiskZone
Show 12-bar reversal window box
bool
true
show12BarBox
Show diagnostic table
bool
false
showDiagnosticTable
Diagnostic table position
string
Top right
tablePosition
Buy Setup color
color
color.new(color.green, 0)
buySetupColor
Sell Setup color
color
color.new(color.red, 0)
sellSetupColor
Perfection marker color
color
color.new(color.blue, 0)
perfectionColor
TDST Support color
color
color.new(color.green, 40)
tdstSupportColor
TDST Resistance color
color
color.new(color.red, 40)
tdstResistanceColor
Risk Level color
color
color.new(color.orange,0)
riskLevelColor
Disqualified marker color
color
color.new(color.gray, 0)
disqualifiedColor
Setup count size
string
tiny
setupCountSize
Key count size (9, 13)
string
small
keyCountSize
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.
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
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
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
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
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
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