Indicator · Pine Script v6 · On the chart

Volume Price Indicator

by fuyuanyuan

This indicator plots colored volume bars on the price chart, where green shows price up days and red shows price down days.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code46
Settings5inputs
LicenceNone stated
Last update1 year ago31 Mar 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Volume Price Indicator also draws an EMA of volume in yellow. The script detects bullish and bearish divergences by comparing price highs/lows to volume highs/lows over a lookback period and plots corresponding arrows. It adds volume breakout signals filtered by RSI, where volume exceeding a moving average times a multiplier with RSI below 30 signals buys and above 70 signals sells, again using plotshapes for arrows. All elements draw directly on the price chart as an overlay. Main settings control EMA period, lookback for divergences, volume MA length, RSI period, and volume multiplier. It has no stop loss or position management as it is a pure indicator.

Details

Published by

fuyuanyuan on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Volume, Moving averages, Divergence, Breakout

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
EMA Periodint20ema_period
回溯周期int48lookback
成交量均线周期int20lengthMA
RSI周期int14rsiPeriod
成交量倍数float1.5volumeMultiplier
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.

Similar Pine Scripts

5000x Breakout Scanner

by jmragsdale
8 stars

This indicator marks momentum breakouts on the price chart. A signal appears only when the bar makes a new high over the lookback, volume is at least a chosen multiple of the 20-bar average, the percentage change from the prior close meets a minimum, the close

Indicator v5 BreakoutVolume
Updated 7 weeks ago · None stated GitHub repository of 5000x Breakout Scanner
3 stars

CSW Breakout Signals plots breakout buy and sell labels on the price chart when price breaks support or resistance after a trend change. Each signal can show a numbered confirmation score built from a moving-average cross, momentum, opening-range alignment, re

Indicator v5 BreakoutTrend
Updated 5 months ago · None stated GitHub repository of CSW Breakout Signals
2 stars

This overlay indicator demonstrates TradingView alert configuration. It plots 20- and 50-period simple moving averages and creates alert conditions when price crosses the shorter average or the averages cross each other. It also alerts on RSI crossing 70 or 30

Indicator v6 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Alert Configuration Examples
2 stars

This overlay indicator approximates a Bookmap-style liquidity view from price and volume. It draws heatmap boxes where volume exceeds a rolling average, volume dots above a relative-volume filter, and a smoothed cumulative-delta proxy. Optional signals use abs

Indicator v6 VolumeSupport & resistance
Updated 6 months ago · None stated GitHub repository of Bookmap Heatmap & Order Flow

This indicator detects breakout signals on the price chart when volume exceeds a threshold, a gap appears, or a strong candle forms, combined with an upward MA50 trend. It plots MA10, MA50, MA150 and MA200 for reference and places entry and exit labels directl

Indicator v6 BreakoutMoving averages
Updated 10 months ago · MIT GitHub repository of Breakout Strategie + MA Labels + Stops

HTF / Power Play Levels

by mirkothepirko
2 stars

This indicator detects High Tight Flag (HTF) and Power Play chart patterns on the price chart. It measures pole gain, flag consolidation duration, and depth, while checking for volume dry-up and moving average trend alignment. When a pattern qualifies, it plot

Indicator v6 BreakoutSupport & resistance
Updated 3 months ago · Custom licence GitHub repository of HTF / Power Play Levels

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers