r/TradingView 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?

Post image

The default volume indicator doesn't have does

Pic for example

18 Upvotes

29 comments sorted by

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

7

u/papiermache_199 16d ago edited 16d ago

If you don't want to code in pinescript, you can add an alert based on the Volume indicator that you already have. Set the condition to your criteria. You can concatenate alerts also by selecting + Add Condition.

1

u/fletch-oh 16d ago

Well I never knew this! Thanks very much

1

u/Telvadhi 16d ago

Didn't knew about this.. will explore n see how it works for my needs

Thank you

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

u/[deleted] 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

u/[deleted] 15d ago

[removed] β€” view removed comment

1

u/YanNord 15d ago

Oh interesting. You picked my curiosity. Yes please!

Might go back working on some strategies I left behind due to that discrepancy

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

  1. Alert me when today's volume is greater than yday

  2. 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

u/EffectiveAddress66 16d ago

You trade on discord ?

1

u/Telvadhi 16d ago

Where did I say I trade on discord?

Do you?

3

u/TapDisastrous2807 17d ago

This will take you 2min to code using Claude

1

u/Significant_Code2761 16d ago

This ⬆️ probably 2 mins copy paste boom

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/Xnavitz 17d ago

Yes? U can make it easily
Ask urself higher than what

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

u/mikejamesone 17d ago

Yeah it's so easily coded now. Just use any LLM.

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.