Jan WillemDe Korver

Tom Demark Setup & Sequential Countdown

Something that helps me with my trades.

Trade after countdown reaches 13 after the perfection of a buy or sell Setup.

Perhaps still some errors included. I am going through the documentation so better versions should follow.

Jan de Korver

Remove from Favorite Scripts Add to Favorite Scripts
study("My Script", overlay=true)



piepb=Count1==9 and piepb[1]==0?1:piepb[1]>0?piep2[1]==13?0:nz(piepb[1])+1:0
piep2=piepb>0 and close>high[2] and close>high[1]?piep2[1]==13?0:nz(piep2[1])+1:piep2[1]==13?0:piep2[1]

piepa=Count2==9 and piepa[1]==0?1:piepa[1]>0?piep[1]==13?0:nz(piepa[1])+1:0
piep=piepa>0 and close<low[2] and close<low[1]?piep[1]==13?0:nz(piep[1])+1:piep[1]==13?0:piep[1]

plotchar(Count1==1,char='1', color=lime)
plotchar(Count1==2,char='2', color=lime)
plotchar(Count1==3,char='3', color=lime)
plotchar(Count1==4,char='4', color=lime)
plotchar(Count1==5,char='5', color=lime)
plotchar(Count1==6,char='6', color=lime)
plotchar(Count1==7,char='7', color=lime)
plotchar(Count1==8,char='8', color=lime)
plotchar(Count1==9,char='9', color=lime)

plotchar(Count2==1,char='1', color=red)
plotchar(Count2==2,char='2', color=red)
plotchar(Count2==3,char='3', color=red)
plotchar(Count2==4,char='4', color=red)
plotchar(Count2==5,char='5', color=red)
plotchar(Count2==6,char='6', color=red)
plotchar(Count2==7,char='7', color=red)
plotchar(Count2==8,char='8', color=red)
plotchar(Count2==9,char='9', color=red)
plotshape(piep==1 and piep[1]==0?1: na, text='1', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==2 and piep[1]==1?1: na, text='2', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==3 and piep[1]==2?1: na, text='3', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==4 and piep[1]==3?1: na, text='4', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==5 and piep[1]==4?1: na, text='5', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==6 and piep[1]==5?1: na, text='6', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==7 and piep[1]==6?1: na, text='7', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==8 and piep[1]==7?1: na, text='8', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==9 and piep[1]==8?1: na, text='9', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==10 and piep[1]==9?1: na, text='10', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==11 and piep[1]==10?1: na, text='11', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==12 and piep[1]==11?1: na, text='12', location=location.belowbar, style=shape.triangledown, color=red)
plotshape(piep==13 and piep[1]==12?1: na, text='13', location=location.belowbar, style=shape.triangledown, color=red)
// when you want to plot same two items plotshape(piep==13 and piep[1]==12?low*0.85: na, text='13', location=location.absolute, style=shape.triangledown, color=lime)
plotshape(piep2==1 and piep2[1]==0?1: na, text='1', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==2 and piep2[1]==1?1: na, text='2', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==3 and piep2[1]==2?1: na, text='3', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==4 and piep2[1]==3?1: na, text='4', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==5 and piep2[1]==4?1: na, text='5', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==6 and piep2[1]==5?1: na, text='6', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==7 and piep2[1]==6?1: na, text='7', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==8 and piep2[1]==7?1: na, text='8', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==9 and piep2[1]==8?1: na, text='9', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==10 and piep2[1]==9?1: na, text='10', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==11 and piep2[1]==10?1: na, text='11', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==12 and piep2[1]==11?1: na, text='12', location=location.belowbar, style=shape.triangleup, color=lime)
plotshape(piep2==13 and piep2[1]==12?1: na, text='13', location=location.belowbar, style=shape.triangleup, color=lime)
Is it possible not to have all those NA's on your trading screen?
could you tell me how to remove the red and green 0.000 and the n/a's please?
HI, I am noob but yea the 13 comes up a day earlier that Tones. Do you have a updated script??
+4 Reply
Hi crypto brother!

Is this the same 9-13-9 indicator that Tone Vays uses?
+22 Reply
@Atlantean, Would love to know, he frequently mentions different code but never stipulates what he's changed :(
Hey Jan, nice one, but the TD 13 countdown is wrong I think.

Jason Perl book, DeMark Indicators lies the rules for countdown 13:

Filters That Cancel a Developing TD Buy Countdown, either of the following conditions erases an incomplete TD Buy Countdown:
1. if the price action rallies and generates a TD Sell Setup, or
2. if the market trades higher and posts a true low above the true high of the prior
TD Buy Setup—that is, TDST resistance.

Delayed number 13 Rule - In order for the bar 13 to appear, the low of TD Buy Countdown bar thirteen be less than, or equal to, the close of TD Buy Countdown bar eight.

The opposite is valid for Canceling or delaying TD Sell Coundown.. Is it possible to add these rules? Thanks
+7 Reply
MarsNodens cristian.d
@cristian.d, Is it fixed?
+3 Reply
ollie23ollie MarsNodens
@MarsNodens, Where cab I find the new version
therzma cristian.d
@cristian.d, you are correct. Do you know if Jan fixed this yet? Do you know anyone else who knows Pine that could do it? I'm willing to learn but why reinvent the wheel, right?

Thanks for sharing. Here I have found this very simple tool called Candle Count useful for measuring waves too. Could prove to be a good compliment to TD. Just some obvious notations on the chart, not a very thorough detail.
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out