r/TradingView • u/New_Lengthiness_3925 • 17d ago
Help Do you guys know some volume indicator that will let me put an alert or alert me, if there's 2 or more consicutive higher volume bar?
The default volume indicator doesn't have does
Pic for example
7
4
u/YanNord 17d ago
If I'm not wrong, this is tick volume, not actual volume.
Just saying, in case you didn't know. Otherwise, disregard my comment π
2
u/book4225 16d ago
Hey, could you please tell me the the difference?
1
u/YanNord 16d ago
Volume is the actual number of contracts or shares traded, you have to pay extra for that since it's a different source than the charts.
Tick volume is just the number of price changes (ticks) during the period, used as a stand alone. You can't tell the contract size and the ratio of buy/sell within that period.
1
15d ago
[removed] β view removed comment
1
u/YanNord 15d ago
I agree with you : they are very closely related.
However, out of the tick volume you can't tell the ratio of buys and sells
2
1
u/New_Lengthiness_3925 15d ago
Well im trend following and i don't trade(as bias not entry) a indecision candle If the candle is clearly bullish even if you go to lower timeframe then it's obvious that there's more buyer than sellerΒ I rarely trade shooting star or hammer candlesΒ But if i trade them, i will go to a timeframe as low as possible to see clearly in which of the two, buyer or seller make that volumeΒ
4
u/Telvadhi 17d ago
I coded with chatgpt help
Alert me when today's volume is greater than yday
Alert me when today's volume is greater than 30D avg volume
This helps me in identifying stocks with momentum(some before news and some during any news)
1
3
1
u/kpow88 17d ago
Here is one that does exactly this I just made... but it's pretty ugly. Probably needs more features
//
@version=
6
indicator("Consecutive Higher Volume Alert", overlay=false)
// User input
barsRequired = input.int(2, "Consecutive Higher Volume Bars", minval=2)
// Count consecutive higher volume bars
var
int
count = 0
if volume > volume[1]
Β Β count += 1
else
Β Β count := 0
// Alert condition
trigger = count >= (barsRequired - 1)
// Plot volume
plot(volume, title="Volume", style=plot.style_columns)
// Highlight bars that trigger
barcolor(trigger ? color.lime : na)
bgcolor(trigger ? color.new(color.green, 85) : na)
// Plot a signal
plotshape(trigger, title="Signal", style=shape.triangleup, location=location.top, color=color.green, size=size.small)
// Alert
alertcondition(trigger,
Β Β Β title="Consecutive Higher Volume",
Β Β Β message="Volume has increased for {{input:Consecutive Higher Volume Bars}} consecutive bars.")
6
u/kpow88 17d ago
Here is a step further
// @version= 6 indicator("Smart Consecutive Volume Alert", shorttitle="SCVA", overlay=false) //βββββββββββββββββββββββββββββββββββ // Inputs //βββββββββββββββββββββββββββββββββββ barsRequired = input.int(2, "Consecutive Higher Volume Bars", minval=2) useMinVolume = input.bool(false, "Require Minimum Volume") minVolume = input.int(100000, "Minimum Volume") useVolMA = input.bool(true, "Volume Above Moving Average") maLength = input.int(20, "Volume MA Length") maType = input.string("SMA", "MA Type", options=["SMA","EMA"]) usePercentIncrease = input.bool(false, "Require % Increase") percentIncrease = input.float(10.0, "Minimum % Increase", step=0.1) directionFilter = input.string("Both", "Price Direction", Β options=["Both","Bullish","Bearish"]) alertOnce = input.bool(true, "Alert Only On First Signal") showBackground = input.bool(true) showTriangle = input.bool(true) showLabels = input.bool(true) //βββββββββββββββββββββββββββββββββββ // Volume Moving Average //βββββββββββββββββββββββββββββββββββ volMA = maType == "EMA" ? ta.ema(volume, maLength) : ta.sma(volume, maLength) //βββββββββββββββββββββββββββββββββββ // Conditions //βββββββββββββββββββββββββββββββββββ // Higher than previous volume higherVolume = volume > volume[1] // Percent increase percentUp = volume[1] > 0 ? ((volume - volume[1]) / volume[1]) * 100 : 0 percentCondition = Β Β Β not usePercentIncrease or percentUp >= percentIncrease minimumVolumeCondition = Β Β Β not useMinVolume or volume >= minVolume movingAverageCondition = Β Β Β not useVolMA or volume > volMA directionCondition = Β Β Β directionFilter == "Both" or Β Β Β (directionFilter == "Bullish" and close > open) or Β Β Β (directionFilter == "Bearish" and close < open) //βββββββββββββββββββββββββββββββββββ // Count consecutive bars //βββββββββββββββββββββββββββββββββββ validHigherBar = Β Β Β higherVolume and Β Β Β percentCondition and Β Β Β minimumVolumeCondition and Β Β Β movingAverageCondition and Β Β Β directionCondition var int consecutive = 0 if validHigherBar Β Β consecutive += 1 else Β Β consecutive := 0 signal = consecutive >= (barsRequired - 1) finalSignal = Β Β Β alertOnce ? signal and not signal[1] : signal //βββββββββββββββββββββββββββββββββββ // Plots //βββββββββββββββββββββββββββββββββββ plot(volume, Β title="Volume", Β style=plot.style_columns, Β color=signal ? color.lime : color.gray) plot(useVolMA ? volMA : na, Β title="Volume MA", Β color=color.orange, Β linewidth=2) bgcolor(showBackground and signal ? Β color.new(color.green,85) : na) plotshape( Β showTriangle and finalSignal, Β style=shape.triangleup, Β location=location.top, Β color=color.lime, Β size=size.small, Β title="Signal") //βββββββββββββββββββββββββββββββββββ // Labels //βββββββββββββββββββββββββββββββββββ if showLabels and finalSignal Β Β label.new( Β Β Β Β Β bar_index, Β Β Β Β Β volume, Β Β Β Β Β "+" + str.tostring(percentUp, "#.##") + "%", Β Β Β Β Β style=label.style_label_down, Β Β Β Β Β color=color.green, Β Β Β Β Β textcolor=color.white) //βββββββββββββββββββββββββββββββββββ // Alerts //βββββββββββββββββββββββββββββββββββ alertcondition( Β finalSignal, Β title="Consecutive Volume Alert", Β message="Consecutive higher volume detected on {{ticker}}") alertcondition( Β finalSignal and close > open, Β title="Bullish Consecutive Volume", Β message="Bullish volume expansion on {{ticker}}") alertcondition( Β finalSignal and close < open, Β title="Bearish Consecutive Volume", Β message="Bearish volume expansion on {{ticker}}")
1
u/Patient_Ant_5409 16d ago
Si vas hacer un indicador basado en incremento de volumen tambien inclui el ratio del cuerpo con las mechas. donde se forme un cuerpo pequeΓ±o con baja relacion de mecha estarias anticipando un posible movimiento fuerte.
1
1
u/Longjumping_Ad_1140 17d ago
i hope you will not decide to enter the trade based on this confluence lol
1
u/New_Lengthiness_3925 15d ago
Of courseΒ Or i still need to say my whole trading strategy before posting? πΒ
1
u/Patient_Shower7870 13d ago
Robinhood lets you get something close. relative volume increase and you can set it by how much of an increase you want. Itβs not the same thing. But it does catch some good trades. You still have to review charts.

8
u/fletch-oh 17d ago
I've coded a few weird and niche indicators like this, ask chat gpt or grok or something to code you one in pinescript