indicator · own pane · open source
Price Volume Confirmation indicator
Price Volume Confirmation is a free open-source indicator by @deepwick. Price Volume Confirmation — a 3-state composite: +1 when both trend and volume agree, -1… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Price Volume Confirmation does
Price Volume Confirmation — a 3-state composite: +1 when both trend and volume agree, -1 when both disagree, 0 when only one is bullish. Stack green bars for high-conviction longs; stack red for shorts.
- Trend = close > 20-Wilder-MA; volume = current > 20-SMA.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Price Volume Confirmation", overlay=false)
colorLine = input.color("color.blue", "Color Line")
colorNeutral = input.color("color.gray", "Color Neutral")
trendUp = close > ta.rma(close, 20)
volUp = volume > ta.sma(volume, 20)
conf = trendUp and volUp ? 1 : trendUp or volUp ? 0 : -1
hline(1, "Confirmed", color=colorNeutral)
hline(-1, "Divergence", color=colorNeutral)
p_Confirm = plot(conf, "Confirm", color=colorLine, style=plot.style_columns, linewidth=2)
alertcondition(conf == 1 and conf[1] != 1, "Confirmed long", "Price and volume confirmed bullish")
alertcondition(conf == -1 and conf[1] != -1, "Confirmed short", "Price and volume confirmed bearish")
No comments yet.
Sign in to comment.