TradingView
Shauryam_or
13 jul 2021 13:54

candle count 

Nifty 50 IndexNSE

Beskrivning

small script for count bar ...it count bar from open of day till end of day ...
in lower time its deleting candle count because of tradingview label limit 50
. bar counting it help me to teach trader bar by bar ...some of bar in all world chart are very important ..in al brook sir book and his website he marked many imortant bar no

for reference al brook sir said about bar counting method
the highest probability trade was the one that I said. When bar 62 was happening, I said, “Traders are buying,” you know, “I’m buying, it’s going up,” right? So 62 is the highest probability trade, but that does not mean it’s the easiest trade. It just means the probability that we’re going to get some kind of a measured move out of 62 is very high, probably 70 percent.
thanks to stack overflow that code is ans there
in this script many people help me thanks to @happybaby86 and @Kjaerbye#7503
sorry my english is not good.my native language is Hindi ..

Versionsinformation

v5 and max_labels _Count

Versionsinformation

input text color
Kommentarer
raousha297
Super thanks bro
Shauryam_or
@jojgo i can't dm i dont have point to message ...can you text me on telegram my id - @Shauryam
jojgo
@Shauryam_or, Hey no prb...dont have tg...i was saying...your code was really helpful to me. On your code i added bit of 2 lines to get intraday high. to make it more visual I was checking if you could help code? I can paste my code here
jojgo
@jojgo, oStart = hour == 9 and minute == 15
oHigh = valuewhen(oStart,high,0)

numBars = 1

t = time('D')

if t == t[1]
numBars := nz(numBars[1]) + 1
else
numBars := 1

label.new(bar_index,low,tostring(numBars),textcolor=color.black,style=label.style_none,size=size.tiny,yloc=yloc.belowbar)

iHigh = highest(high,numBars) [1]

AboveOH = (high > iHigh) and (high > oHigh)
plotshape(AboveOH,style=shape.xcross,color=color.black)
jojgo
@jojgo, what I'm looking for is instead of shape.xcross i want to see number of intraday high
jojgo
@jojgo,
like this
Shauryam_or
@jojgo, can you make a simple chart then edit with text and send me ..because your chart are mix up ..sorry i dont understand
Shauryam_or
@jojgo, what i understand is you want plot current intraday high with number ...
jojgo
@Shauryam_or, that's right! i want to plot intraday high with number (1,2,3...) instead of cross mark, which i'm doing from code.
Shauryam_or
@jojgo, will try to make ...and update
Mer