Tom de mark sequential monitor for nifty50 stocks

travi

Well-Known Member
@Simple.Trader Was held up yest, just wanted to appreciate your scanner & thank your efforts :D well done.
I've updated the sheet with a first pass, focus is more on high confidence scrips.

Many times we'll get a CD completion but looking at a chart it has completed in sideways. These low momentum counts are very low probability trades & I usually skip them.
Also, I keep strong momentum stocks in line with the general mkt or sector trend to avoid ramming into a freight train :D

Pheww, after many hours I've finally got up, manual is tiring :D:D
 
@Simple.Trader Was held up yest, just wanted to appreciate your scanner & thank your efforts :D well done.
I've updated the sheet with a first pass, focus is more on high confidence scrips.

Many times we'll get a CD completion but looking at a chart it has completed in sideways. These low momentum counts are very low probability trades & I usually skip them.
Also, I keep strong momentum stocks in line with the general mkt or sector trend to avoid ramming into a freight train :D

Pheww, after many hours I've finally got up, manual is tiring :D:D
Highly appreciate but cant check sheet bcz of time constraint thats why I finished yesterday. Will try tomorrow if possible. Great work. Liked this team spirit. Keep it up. Also I am hundred percent agreed with your system of going with market or sectors directions.

Also thanks for your valuable suggestions vivektrader. All points noted specially spoon feeding one!! Ha ha

Simple Trader
 

vivektrader

In persuit of financial independence.
I am happy to note the recent interest in monitoring and notifying probable sequential and combo counts. At this juncture I would want to reiterate that a particular variation/version of sequential and combo has been followed all through the thread by me, you may call it the 'classic' version. Although I am not perse against various possible alterations and modifications of this classic version (some of which might have been mentioned in Demark's seminar in the form of available settings etc.), but to maintain continuity and keep out confusion I want that all counts should be based on certain principles envisaged by Demark himself in his books.
These are:
1.Proper setup selection which then forms the basis of counts.
2. Intersection strictly for stocks, counts with and without intersection in indices.
3. Qualifier 13-8 in all counts
4.Terminal count in combo and sequential (for bar 13)
5.All counts based on spot/cash charts.
6.Nobody likes it, but a manual cross-check of counts marked by any script one might be following.
7.High probability qualifiers like close 13>12>11 in sell counts (and vice-versa) if present or followed should be mentioned.
8. Lastly (not the least), for people to learn atleast a few charts should be posted, these pictures will leave a lasting impression in my opinion.

Vivek
 

vivektrader

In persuit of financial independence.
Can somebody with knowledge of pine, help in editing an existing script in tradingview that counts sequential without intersection, so that the script counts with intersection, or some toggle to include or exclude intersection in counts?
Thanks

Vivek
 

travi

Well-Known Member
Can somebody with knowledge of pine, help in editing an existing script in tradingview that counts sequential without intersection, so that the script counts with intersection, or some toggle to include or exclude intersection in counts?
Thanks

Vivek
I don't use Tradingview, which script are you referring to? or atleast paste that code.
 

vivektrader

In persuit of financial independence.
I don't use Tradingview, which script are you referring to? or atleast paste that code.
Other than setup selection qualifiers which cant be coded, there are two other deficiencies, If you can help by editing the script to include these two things:
1. Intersection- count should start only after intersection or a toggle to include or exclude intersection.
2.TDST lines - A blue resistance line at true high of buysetup and a red support line at true low of sell setup.
Thanks
The original code is by lirre8, am pasting below:

//@version=2
study("TD Sequential",overlay=true)
transp=input(0)

// SETUP
a = nz(sellsetup[1]) + 1
sellsetup = close > close[4] ? (a > 9 ? 1 : a) : 0

b = nz(buysetup[1]) + 1
buysetup = close < close[4] ? (b > 9 ? 1 : b) : 0

plotchar(sellsetup == 1 ? true : na, char="1", color=green, location=location.abovebar, transp=transp)
plotchar(sellsetup == 2 ? true : na, char="2", color=green, location=location.abovebar, transp=transp)
plotchar(sellsetup == 3 ? true : na, char="3", color=green, location=location.abovebar, transp=transp)
plotchar(sellsetup == 4 ? true : na, char="4", color=green, location=location.abovebar, transp=transp)
plotchar(sellsetup == 5 ? true : na, char="5", color=green, location=location.abovebar, transp=transp)
plotchar(sellsetup == 6 ? true : na, char="6", color=green, location=location.abovebar, transp=transp)
plotchar(sellsetup == 7 ? true : na, char="7", color=green, location=location.abovebar, transp=transp)
plotchar(sellsetup == 8 ? true : na, char="8", color=green, location=location.abovebar, transp=transp)
plotshape(sellsetup == 9 ? true : na, text="9", style=shape.arrowdown, textcolor=green, color=red, location=location.abovebar, transp=transp)

plotchar(buysetup == 1 ? true : na, char="1", color=red, location=location.abovebar, transp=transp)
plotchar(buysetup == 2 ? true : na, char="2", color=red, location=location.abovebar, transp=transp)
plotchar(buysetup == 3 ? true : na, char="3", color=red, location=location.abovebar, transp=transp)
plotchar(buysetup == 4 ? true : na, char="4", color=red, location=location.abovebar, transp=transp)
plotchar(buysetup == 5 ? true : na, char="5", color=red, location=location.abovebar, transp=transp)
plotchar(buysetup == 6 ? true : na, char="6", color=red, location=location.abovebar, transp=transp)
plotchar(buysetup == 7 ? true : na, char="7", color=red, location=location.abovebar, transp=transp)
plotchar(buysetup == 8 ? true : na, char="8", color=red, location=location.abovebar, transp=transp)
plotshape(buysetup == 9 ? true : na, text="9", style=shape.arrowup, textcolor=red, color=lime, location=location.abovebar, transp=transp)

// COUNTDOWN
buy_countdown() =>
currentcount = 0
count = 0
for i = 0 to 100
count := count + (close < low[i + 2] ? 1 : 0)
if sellsetup == 9 or count > 13
break
currentcount := buysetup == 9 ? count : currentcount
currentcount

sell_countdown() =>
currentcount = 0
count = 0
for i = 0 to 100
count := count + (close > high[i + 2] ? 1 : 0)
if buysetup == 9 or count > 13
break
currentcount := sellsetup == 9 ? count : currentcount
currentcount

aggressive_buy() =>
isaggressivebuy = false
count = 0
for i = 0 to 50
count := count + (low < low[i + 2] ? 1 : 0)
if sellsetup == 9 or count > 13
break
if buysetup == 9 and count == 13
isaggressivebuy := true
break
isaggressivebuy

aggressive_sell() =>
isaggressivesell = false
count = 0
for i = 0 to 50
count := count + (high > high[i + 2] ? 1 : 0)
if buysetup == 9 or count > 13
break
if sellsetup == 9 and count == 13
isaggressivesell := true
break
isaggressivesell

buycountdown = close < low[2] ? buy_countdown() : 0
sellcountdown = close > high[2] ? sell_countdown() : 0
aggressivebuy = low < low[2] ? aggressive_buy() : false
aggressivesell = high > high[2] ? aggressive_sell() : false
combobuy = false
combosell = false

plotchar(buycountdown == 1 ? true : na, char="", text="\n1", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 2 ? true : na, char="", text="\n2", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 3 ? true : na, char="", text="\n3", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 4 ? true : na, char="", text="\n4", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 5 ? true : na, char="", text="\n5", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 6 ? true : na, char="", text="\n6", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 7 ? true : na, char="", text="\n7", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 8 ? true : na, char="", text="\n8", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 9 ? true : na, char="", text="\n9", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 10 ? true : na, char="", text="\n10", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 11 ? true : na, char="", text="\n11", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 12 ? true : na, char="", text="\n12", textcolor=red, location=location.belowbar, transp=transp)
plotchar(buycountdown == 13 ? true : na, char="", text="\n13", textcolor=red, location=location.belowbar, transp=transp)
plotshape(buycountdown == 13 ? true : na, style=shape.arrowup, color=lime, textcolor=red, location=location.belowbar, transp=transp)
plotshape(aggressivebuy ? true : na, style=shape.arrowup, text="A", color=lime, textcolor=red, location=location.belowbar, transp=transp)
plotshape(combobuy ? true : na, style=shape.arrowup, text="\nC", color=lime, textcolor=red, location=location.belowbar, transp=transp)

plotchar(sellcountdown == 1 ? true : na, char="", text="\n1", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 2 ? true : na, char="", text="\n2", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 3 ? true : na, char="", text="\n3", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 4 ? true : na, char="", text="\n4", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 5 ? true : na, char="", text="\n5", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 6 ? true : na, char="", text="\n6", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 7 ? true : na, char="", text="\n7", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 8 ? true : na, char="", text="\n8", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 9 ? true : na, char="", text="\n9", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 10 ? true : na, char="", text="\n10", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 11 ? true : na, char="", text="\n11", textcolor=green, location=location.belowbar, transp=transp)
plotchar(sellcountdown == 12 ? true : na, char="", text="\n12", textcolor=green, location=location.belowbar, transp=transp)
plotshape(sellcountdown == 13 ? true : na, style=shape.arrowdown, text="\n\n13", color=red, textcolor=green, location=location.belowbar, transp=transp)
plotshape(aggressivesell ? true : na, style=shape.arrowdown, text="A", color=red, textcolor=green, location=location.belowbar, transp=transp)
plotshape(combosell ? true : na, style=shape.arrowdown, text="\nC", color=red, textcolor=green, location=location.belowbar, transp=transp)
 

travi

Well-Known Member
Other than setup selection qualifiers which cant be coded, there are two other deficiencies, If you can help by editing the script to include these two things:
1. Intersection- count should start only after intersection or a toggle to include or exclude intersection.
2.TDST lines - A blue resistance line at true high of buysetup and a red support line at true low of sell setup.
Thanks
The original code is by lirre8, am pasting below:

//@version=2
study("TD Sequential",overlay=true)
transp=input(0)
And this code produces an error
Processing script...
line 34: mismatched input 'currentcount' expecting 'end of line without line continuation'

EDIT:
Ya, found user by people search. When to the page and copied script afresh. Still produces same error.

Another one TD Sequential by "Glaz", have you tried this one? seems popular with 8.5k likes
 
Last edited:

Similar threads