//@version=6
// Example script bundled with DegenView. Edit it freely.
// Volume columns, orange when a bar trades several times the recent average.
// On a live chart, "Create Alert…" in the chart's Scripts tab turns the alert()
// below into a notification. History never notifies.
indicator("Volume Spike Alert", overlay = false)
length = input.int(20, "Average length", minval = 2)
multiplier = input.float(3.0, "Spike multiplier", minval = 1.0, step = 0.5)
threshold = ta.sma(volume, length)[1] * multiplier
spike = volume > threshold
plot(volume, "Volume", style = plot.style_columns, color = spike ? color.orange : color.new(color.gray, 60))
plot(threshold, "Threshold", color = color.red)
if spike
alert("Volume spike on " + syminfo.ticker + ": " + str.tostring(volume / (threshold / multiplier), "#.0") + "x the average", alert.freq_once_per_bar_close)
Overview
Volume Spike Alert calculates a volume threshold by multiplying a simple moving average of previous volume bars by a user-defined factor. Volume is plotted as a column chart in a separate pane, changing color to orange when a spike occurs. A red line indicates the dynamic threshold level, and the script triggers a bar-close alert detailing the spike intensity.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Average length
int
20
length
Spike multiplier
float
3.0
multiplier
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
Calculates the standard Money Flow Index (MFI) oscillator alongside an exponential moving average signal line in a separate pane. The script visually highlights trend conditions through dynamic ribbon filling, optional difference histogram bars, and overbought
This indicator plots a Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional
Range Volume Change compares volume inside a chosen session window with the same window on the previous day and plots that change as a percentage. It accumulates volume during the window and, when enabled, volume outside it, drawing growing columns in a separa
This indicator builds a footprint of estimated buy and sell volume across price rows and plots it in a separate pane. It fills rows from bar low to high, stores volume per row, and draws buy and sell volume boxes, volume-profile boxes, row labels, and cumulati
This indicator measures directional momentum by evaluating candlestick body proportions and volume over a user-defined lookback window. It computes the ratio of candle body to total range, weights the cumulative value by volume and absolute body size, and dete
This indicator builds an aggregate oscillator in a separate pane. It scales open, high, low, close, and volume into a 0 to 1 range, then averages scaled readings from MACD, a MACD histogram, RSI, stochastic, CCI, momentum, OBV, a directional index, volume-weig