Volume Indicator
MACD LB MFIThis script includes MACD histogram plus MFI in four states
All backgrounds are compared to previous bar in +/- 10%
1. Green (green) + Volume + Range (++)
2. Fading (yellow) - Volume - Range (--)
3. False (gray) - Volume + Range (-+)
4. Crouching (red) + Volume - Range (+-)
Vol(3MA)I just wanted to compare BTC volume from more than one exchange on the same chart.
So I spent 3hrs TOSSING OFF WITH GUIs then did it in Pine.
I don't like GUIs, especially when it takes me 3hrs to TOSS ONE OFF.
After this "new" indicator has saved, I will be able (I hope) to add symbols (e.g. Coinbase:BTCUSD) to my Bitfinex:BTCUSD chart. I will right-click the new symbol and add an indicator to it.. and my poncy, little Volume indicator will show up so I can overlay it on the new symbol. Right now it doesn't come up in the indicator options, even tho I have written and saved it.
I will repeat this with a bunch of exchanges on this one chart..
then put them on the same scale...
then hide all the price charts...
and FINALLY be able to compare volume of exchanges properly in kinda real time.
hmm
Or I might just go TOSS IT
Volume Profile Free Pro (25 Levels Value Area VWAP) by RRBVolume Profile Free Pro by RagingRocketBull 2019
Version 1.0
All available Volume Profile Free Pro versions are listed below (They are very similar and I don't want to publish them as separate indicators):
ver 1.0: style columns implementation
ver 2.0: style histogram implementation
ver 3.0: style line implementation
This indicator calculates Volume Profile for a given range and shows it as a histogram consisting of 25 horizontal bars.
It can also show Point of Control (POC), Developing POC, Value Area/VWAP StdDev High/Low as dynamically moving levels.
Free accounts can't access Standard TradingView Volume Profile, hence this indicator.
There are 3 basic methods to calculate the Value Area for a session.
- original method developed by Steidlmayr (calculated around POC)
- classical method using StdDev (calculated around the mean VWAP)
- another method based on the mean absolute deviation (calculated around the median)
POC is a high volume node and can be used as support/resistance. But when far from the day's average price it may not be as good a trend filter as the other methods.
The 80% Rule: When the market opens above/below the Value Area and then returns/stays back inside for 2 consecutive 30min periods it has 80% chance of filling VA (like a gap).
There are several versions: Free, Free Pro, Free MAX. This is the Free Pro version. The Differences are listed below:
- Free: 30 levels, Buy/Sell/Total Volume Profile views, POC
- Free Pro: 25 levels, +Developing POC, Value Area/VWAP High/Low Levels, Above/Below Area Dimming
- Free MAX: 50 levels, packed to the limit
Features:
- Volume Profile with up to 25 levels (3 implementations)
- POC, Developing POC Levels
- Buy/Sell/Total/Side by Side View modes
- Side Cover
- Value Area, VAH/VAL dynamic levels
- VWAP High/Low dynamic levels with Source, Length, StdDev as params
- Show/Hide all levels
- Dim Non Value Area Zones
- Custom Range with Highlighting
- 3 Anchor points for Volume Profile
- Flip Levels Horizontally
- Adjustable width, offset and spacing of levels
- Custom Color for POC/VA/VWAP levels and Transparency for buy/sell levels
Usage:
- specify max_level/min_level for a range (required in ver 1.0/2.0, auto/optional in ver 3.0 = set to highest/lowest)
- select range (start_bar, range length), confirm with range highlighting
- select mode Value Area or VWAP to show corresponding levels.
- flip/select anchor point to position the buy/sell levels, adjust width and spacing as needed
- select Buy/Sell/Total/Side by Side view mode
- use POC/Developing POC/VA/VWAP High/Low as S/R levels. Usually daily values from 1-3 days back are used as levels for the current day.
- Green - buy volume of a specific price level in a range, Red - sell volume. Green + Red = Total volume of a price level in a range
There's no native support for vertical histograms in Pinescript (with price axis as base)
Basically, there are 4 ways to plot a series of horizontal bars stacked on top of each other:
1. plotshape style labeldown (ver 0 prototype discarded)
- you can have a set of fixed width/height text labels consisting of a series of underscores and moving dynamically as levels. Level offset controls visible length.
- you can move levels and scale the base width of the volume profile histogram dynamically
- you can calculate the highest/lowest range values automatically. max_level/min_level inputs are optional
- you can't fill the gaps between levels/adjust/extend width, height - this results in a half baked volume profile and looks ugly
- fixed text level height doesn't adjust and looks bad on a log scale
- fixed font width also doesn't scale and can't be properly aligned with bars when zooming
2. plot style columns + hist_base (ver 1.0)
- you can plot long horizontal bars using a series of small adjacent vertical columns with level offsets controlling visible length.
- you can't hide/move levels of the volume profile histogram dynamically on each bar, they must be plotted at all times regardless - you can't delete the history of a plot.
- you can't scale the base width of the volume profile histogram dynamically, can't set show_last from input, must use a preset fixed width for each level
- hist_base can only be a static const expression, can't be assigned highest/lowest range values automatically - you have to specify max_level/min_level manually from input
- you can't control spacing between columns - there's an equalizer bar effect when you zoom in, and solid bars when you zoom out
- using hist_base for levels results in ugly load/redraw times - give it 3-5 sec to finalize its shape after each UI param change
- level top can be properly aligned with another level's bottom producing a clean good looking histogram
- columns are properly aligned with bars automatically
3. plot style histogram + hist_base (ver 2.0)
- you can plot long horizontal bars using a series of small vertical bars (horizontal histogram) instead of columns.
- you can control the width of each histogram bar comprising a level (spacing/horiz density). Large enough width will cause bar overlapping and give level a "solid" look regardless of zoom
- you can only set width <= 4 in UI Style - custom textbox input is provided for larger values. You can set width and plot transparency from input
- this method still uses hist_base and inherits other limitations of ver 2.0
4. plot style lines (ver 3.0)
- you can also plot long horizontal bars using lines with level offsets controlling visible length.
- lines don't need hist_base - fast and smooth redraw times
- you can calculate the highest/lowest range values automatically. max_level/min_level inputs are optional
- level top can't be properly aligned with another level's bottom and have a proper spacing because line width uses its own units and doesn't scale
- fixed line width of a level (vertical thickness) doesn't scale and looks bad on log (level overlapping)
- you can only set width <= 4 in UI Style, a custom textbox input is provided for larger values. You can set width and plot transparency from input
Notes:
- hist_base for levels results in ugly load/redraw times - give it 3-5 sec to finalize its shape after each UI param change
- indicator is slow on TFs with long history 10000+ bars
- Volume Profile/Value Area are calculated for a given range and updated on each bar. Each level has a fixed width. Offsets control visible level parts. Side Cover hides the invisible parts.
- Custom Color for POC/VA/VWAP levels - UI Style color/transparency can only change shape's color and doesn't affect textcolor, hence this additional option
- Custom Widh for levels - UI Style supports only width <= 4, hence this additional option
- POC is visible in both modes. In VWAP mode Developing POC becomes VWAP, VA High and Low => VWAP High and Low correspondingly to minimize the number of plot outputs
- You can't change buy/sell level colors (only plot transparency) - this requires 2x plot outputs exceeding max 64 limit. That's why 2 additional plots are used to dim the non Value Area zones
- Use Side by Side view to compare buy and sell volumes between each other: base width = max(total_buy_vol, total_sell_vol)
- All buy/sell volume lengths are calculated as % of a fixed base width = 100 bars (100%). You can't set show_last from input
- Sell Offset is calculated relative to Buy Offset to stack/extend sell on top of buy. Buy Offset = Zero - Buy Length. Sell Offset = Buy Offset - Sell Length = Zero - Buy Length - Sell Length
- If you see "loop too long error" - change some values in UI and it will recalculate - no need to refresh the chart
- There's no such thing as buy/sell volume, there's just volume, but for the purposes of the Volume Profile method, assume: bull candle = buy volume, bear candle = sell volume
- Volume Profile Range is limited to 5000 bars for free accounts
P.S. Cantaloupia Will be Free!
Links on Volume Profile and Value Area calculation and usage:
www.tradingview.com
stockcharts.com
onlinelibrary.wiley.com
Highest Volume Index by ParaticaIt's an algorithm used in Paratica. It shows volume based volatility.
Volume in a panelIf you prefer to see volume in a panel rather than an overlay here it is. Just basic volume with moving average line.
Volume Cloud [LucF]A strictly volume-based cloud. It plots current volume (green line) over its 20-period linear regression (red line) on the chart. Unlike Ichimoku's cloud, it is not offset. While probably not something that you would have on your charts all the time, it can provide a useful way to study the interaction between price and volume.
Because the green line is the current volume, you can forego volume columns when using the indicator.
Volume Cloud does have practical uses. I will show here how I use volume to help me in selecting better probability entries, with only Volume Cloud and my TLD indicator on the chart (the Volume Columns are there to provide context for first-time users of the Volume Cloud).
When looking for entries, I’m trying to find spots where a reversal from a bottom or a continuation after a pause is confirmed by increasing volume (preferably above average) candles with proper wick/body structure. The candle structure of increasing volume candles is important because for me, it provides granularity on the volume action during the candle. I view wicks as failed tests and body height as reinforcement of the price movement. As for candles where volume is not increasing, I mostly ignore them. This is a simplified account of my mindset; just the stories I trade with and that I believe provide an edge—and profits. I certainly don’t pretend having found an infallible way to trade, and there is much more to it that I can explain here, but let’s look at a chart.
Point 1: Solid increasing volume and above average down candle, but I don’t enter on big candles. The volume on that candle has reached a new high though, so I’m thinking bearish sentiment for the next bars.
Point 2: Nicely formed above average increasing volume candle, but I’m looking to short. A similar’ish candle 4 bars back was followed by non-descript action. After 2, a test of past resistance fails before reaching it and a lower low and then a lower high bring us to point 3.
Point 3: Exactly what I’m looking for. No upper wick, solid body that’s not too big, and the highest volume reached on chart yet as a bonus. I enter on the following candle and because of the solid context, I can use a tight stop at the previous candle’s high. Going down, I will move my stop to the high of any increasing volume candle going in my direction, starting when that point is at least as far from my entry as my stop (RR=1).
Point 4: This is the last point where I move my stop at the candle’s high and get stopped out at the following candle for a RR=3.75 trade. Notice how the very high volume at point 4 generates a relatively small body. This is often a sign of stopping volume that portends a reversal or a pause.
Point 5: A first above average increasing volume candle, but with longish wicks that don’t fit my idea of a solid candle. Definitely not a strong enough sign to bet on a reversal from the recent strong descent.
Point 6: This candle is a different story altogether. No lower wick, reasonably sized body, double the volume of previous candle and a close way above the previous 20 candles. Long entry with stop at candle 6’s low. I don’t move my stop on the candle following my entry because it wouldn’t put me at RR=1, so the first time I move my stop up is at candle just before point 7.
Point 7: I get stopped out for RR=3 after that candle because I will have moved my stop a second time, at candle’s 7 low.
I didn’t make these trades (can’t even short on Binance yet), and while this is a typical a posteriori story, it does reflect what I do in reality.
Ord Volume [LucF]Tim Ord came up with the Ord Volume concept. The idea is similar to Weis Wave , except that where Weis Wave keeps a cumulative tab of each wave’s successive volume columns, Ord Volume tracks the wave's average volume .
Features
You can choose to distinguish the area’s colors when the average is rising/falling (default).
You can show an EMA of the wave averages, which is different than an EMA on raw volume.
You can show (default) the last wave’s ending average over the current wave, to help in comparing relative levels.
You can change the length of the trend that needs to be broken for a new wave to start, as well as the price used in trend detection.
Use Cases
As with Weis Wave, what I look at first are three characteristics of the waves: their length, height and slope. I then compare those to the corresponding price movements, looking for discrepancies. For example, consecutive bearish waves of equal strength associated with lesser and lesser price movements are often a good indication of an impeding reversal.
Because Ord Volume uses average rather than cumulative volume, I find it is often easier to distinguish what is going on during waves, especially exhaustion at the end of waves.
Tim Ord has a method for entries and exits where he uses Ord Volume in conjunction with tests of support and resistance levels. Here are two articles published in 2004 where Ord explains his technique:
pr.b5z.net
n.b5z.net
Note
Being dependent on volume information as it is currently available in Pine, which does not include a practical way to retrieve delta volume information, the indicator suffers the same lack of precision as most other Pine-built volume indicators. For those not aware of the issue, the problem is that there is no way to distinguish the buying and selling volume (delta volume) in a bar, other than by looping through inside intervals using the security() function, which for me makes performance unsustainable in day to day use, while only providing an approximation of delta volume.
BTC exchange trade vol / on-chain transaction volThis Bitcoin indicator shows the percentage that the exchange traded volume is from the sum of the exchange traded volume + on-chain transaction volume.
The thin red line is the non-smoothed value calculated from daily volumes.
The thick black line is the 7-day EMA-smoothed value.
The exchange traded volume and the on-chain transaction volume are reported by Quandl and have a 1D resolution - so it is best to use this indicator on the daily time frame.
When the value is high, it shows the the interest of traders is high and they are intensely trading BTC. When the indicator is low, it means that BTC is "dormant": it is used for transfers, but not so much for trading - traders forgot about it for a while - which may be a good time to accumulate if the economy is in a general bull market.
Volume, Relative Volume HighlightThe indicator plots regular volume bars.
The highlight is given by the current cumulative volume for the day, compared to a custom average (standard 20 periods). The stronger the color, the higher the relative volume is. Stocks moving of higher relative volume have higher chances of making predictable moves.
Volume Momentum [LucF]Volume momentum gives much more information than a simple volume MA. It does require interpretation however, since increasing volume momentum can indicate strengthening of both an up or down movement. Volume momentum peaks and bottoms are also interesting as they often lead to shifts in price movement.
In order to help interpretation, I color rising volume momentum using price momentum. Green indicates volume-supported upward price movement and red indicates volume-supported downward price movement.
As to falling volume momentum, in my world view it indicates exhaustion or disinterest which requires prior price activity to be interpreted. In strong and steady price movements it can indicate a mere pause. After high price volatility often signalling a top or bottom, falling volume momentum often leads reversals.
Features
Two optional MAs on the main volume momentum line, with crosses on the short MA.
A higher time frame line (shown by default), with the higher time frame being a user-defined multiple of the current chart’s interval. The default is 8, so that a 15m chart will also show a 2h volume momentum.
Two Markers
Tops/Bottoms (marker 1): these occur on high/low price momentum pivots situated in favorable regions, combined with volume momentum peaks.
Pauses/Reversals (marker 2): these simply identify volume momentum high pivots that often lead to shifts in price movement. They are not directional. You can choose to color bars where these markers occur (shown on chart).
You can show only long or short markers.
Alerts
You can define alerts on any combination of markers you configure. After defining the markers you want the alert to trigger on, make sure you are on the interval you want the alert to be monitoring at, then create the alert, select Volume Momentum, use the default “Configured Markers” alert condition and choose your triggering window (usually “Once Per Bar Close”). Once the alert is created, you can change the indicator's inputs with no effect on the alert.
Use Cases
The higher time frame line is very useful in situating current volume activity in a larger context.
I consider all peaks in volume momentum as potentially significant events.
When looking for an entry, I will often wait for the descending volume momentum to change direction at a shorter interval, using price momentum to confirm that increasing volume is working in my favor.
Volume momentum variations can often inform otherwise insignificant price momentum activity.
Here I use price momentum to color volume momentum; inversely, I also use volume momentum to color my momentum indicator.
Notes
Where the markers on my Volume Columns indicator focus on confirming strength of price movements, this indicators’ markers try to focus on shifts in price movement.
My volume momentum is calculated using a smoother variant of CCI which came to be known as WaveTrend.
Volume Columns w. Alerts (V) [LucF]These are volume columns on steroids, for serious volume users. You can use the indicator to show volume columns or relative volume. You can define alerts using numerous conditions in both column and relative modes simultaneously. Multiple coloring schemes allow you to reveal volume columns in a much more useful light than the two-color standard.
Features
Seven Color Schemes
Plain gray.
Different color for columns above average MA.
Standard green and red.
Color gradient using the relative position of MA (default mode).
The first 3 schemes allow for highlighting increasing volume columns.
A gray column in an otherwise colored scheme indicates no change in price.
Two Modes
Column Mode: In this mode you can show the volume MA and mask the columns under it. The standard is an EMA because I think it better suits volume’s quick changes, but you can change it to the usual simple MA, as well as define its length.
Relative Volume: Calculations have been kept rudimentary. Current volume is simply compared to the previous bar’s volume. In order to compensate for this, a multiple area mode also compares current volume to 5, 15, 50 and 200 periods MAs. You can choose to view only the main relative volume value. Relative volume is capped in order to prevent the loss of detail caused by wild increases. The default cap is 10, but you can define your own. Spikes that are capped show a dot at their top. A separate threshold (its default value is the standard 2) is included for relative volume; it is used to generate relative volume markers.
Four Markers
Bumps (marker 1): A bump occurs when an increasing volume column is above its MA and the candle’s close is above/below the previous close.
Double Bumps (marker 2): A double bump occurs when 2 bumps are present in the last 3 bars.
Volume Over MA (marker 3): Triggers whenever volume is above MA. This is the noisiest of the markers.
Relative Volume (marker 4): This event occurs when relative volume crosses the pre-defined threshold.
You can choose to only show long or short markers.
Two Backgrounds
You can choose to highlight the background on bumps and double bumps.
Alerts
You can define alerts on any combination of markers you configure. After defining the markers you want the alert to trigger on, make sure you are on the interval you want the alert to be monitoring at, then create the alert, select V, use the default “Configured Markers” alert condition and choose your triggering window (usually “Once Per Bar Close”). Once the alert is created, you can change the indicator's inputs with no effect on the alert.
No worthwhile price movement exists without volume. It thus makes sense to define alerts on volume if you want to monitor markets. I use the markers to define two types of alerts. For general market scanning, I use markers 2 and 4 on high time frames. When I have identified a good opportunity for entry and am waiting for confirmation, I will often setup a custom alert for that market at a shorter time interval using markers 1 and 4.
Notes
Until we have access to delta volume information on TradingView, this indicator tries to get the most out of volume columns without using security calls at inside intervals to get more resolution on volume, because it slows things down considerably.
The chart shows different combinations of color schemes and markers, along with my TLD indicator on the chart.
Zero Lag Money Flow [jwammo12]This indicator adds Zero Lag principles to a modified Chaikin Money Flow.
This is essentially the Chaikin Money Flow indicator that uses true range to remove the issues that arise from gaps that the original CMF algorithm had. Then, momentum is used to remove lag from the indicator.
The Lag parameter is the lookback used for the momentum component
BP Scalper with resistance barsThis Script is used for scalping on the 15 min. It can do the other time frames but i built it for primarily the 15. There is some logic where i use the previous candles and i'm using intervals of 4 to get 1 hour estimates. This also works with the 1 hour, because the 4 hour is what it will compare with.
It uses Buy volume and sell volume to create the indicators.
If the buy volume starts losing traction on the sell volume the indicator triggers.
Top 5 coins cummulated Upvol/Dnvol and Money FlowThis script reads price and volume information for the top 5 coins (on 9 exchanges, a total of 29 pairs), calculates the cummulative upvolume and downvolume according to the Money Flow (MFI) formula, and shows upvolume and downvolume separately on the chart as a green and a red line.
The coins used are BTC, ETH, LTC, XRP and EOS. They are the top 5 coins by daily volume, as of 24th of February 2019.
Because of the many security() calls needed, the script is VERY slow, so have lots of patience.
I find it useful as a broad crypto market indicator - for example to compare the current pump with the pumps in the past.
Can also calculate the aggregated Money Flow (MFI) if you check that option in the indicator's configuration. Make sure to wait for recalculation and rescale the chart afterwards - MFI has a value from 0 to 100 and you may need to zoom in.
Wyckoff Volume ColorThis volume indicator is intended to be used for the Wyckoff strategy.
Green volume bar indicates last price close above close 10 days ago together with volume larger than 2 * SMA(volume, 20)
Blue volume bar indicates last price close above close 10 days ago together with volume less than 2 * SMA(volume, 20)
Orange volume bar indicates last price close lower than close 10 days ago together with volume less than 2 * SMA(volume, 20)
Red volume bar indicates last price close lower than close 10 days ago together with volume larger than 2 * SMA(volume, 20)
The main purpose is to have green bars with a buying climax and red bars with a selling climax.
Three variables can be changed by simply pressing the settings button.
How many days back the closing price is compared to. Now 10 days.
How many times the SMA(volume) is multiplied by. Now times 2.
How many days the SMA(volume) consists by. Now 20 days.
Volume - Moving Sum (Quote Currency)This indicator shows a MOVING SUM of the QUOTE CURRENCY of the pair.
I made this because I wanted to be able to see how the 24HR volume looked on 1-Minute charts (which is why the default period is 1440, as there are 1440 minutes in a day.)
Upvol and DownvolUpvolume and downvolume, calculated according to the MFI (Money Flow) formula, and shown separately.
The indicator has options for also showing NYSE upvolume and downvolume or ES1! (S&P500 upvolume/downvolume) along with the main ticker data, so you can compare them.
The chart can be analyzed by drawing trend lines, and can be surprisingly accurate.
~
ETH HawkEye Aggregated Volume IndicatorThis is combined Aggregated ETH Exchange Volume by Neobutane with HawkEye volume clone indicator by LazyBear.
Indicator includes aggregated raw ETH volume from 7 user selectable fiat and tether exchanges on USD, USDT, BTC, EUR, GBP, JPY pairs + Exponential MA + hawkeye bar coloring where: green is bullish volume , red - bearish and white - volume neutral to the market:
Bitfinex
Coinbase
Bitstamp
Kraken
Binance
Poloniex
Bittrex
*There is a TV bug that doesn't display a whole volume history if some pair was added later than date intended to be analysed by operator eg, if you want to watch older data you should exclude all secondary pairs that were added later and switch off "newer" exchanges like Binance.
Volume+ (RVOL/Alerts)This indicator colors the volume bars based on any of the three follow criteria:
- Volume Amount
- RVOL (Relative Volume)
- Lookback (Highest Over Period)
You can use one, two or all three of these settings at the same time.
You can also set alerts with this indicator. The script will trigger an alert whenever any of the three specified flags are triggered.
RVOL is calculated as: Volume divided by Moving Average value. You can change the moving average period (and type) in the settings.
Colored Klinger Volume Oscillator (CKVO)This is a color enhanced version of Klinger Volume Oscillator. I specially designed this to get maximum profit from highly volatile coins. This indicator is based on volume.
xTrigger (the line) shows if trend is bullish or bearish. It is the average of the area. You can clearly see the trend.
xKVO (the area) shows how buy and sell orders change. It rises while buys are increasing against sells, decreases while sells are increasing against buys.
The color or the area provides buy and sell signals. Green: buy. Red: sell. Gray: Undecided.
Of course there are false signals. You should use other indicators to confirm them.
I like to use RSI and Bollinger Bands along with it to eliminate false signals. Also check for double bottom and top, etc.
Its wise to check the general direction of coin using a bigger time frame using Heikin Aishi. For example 1W Heikin Ashi if you are trading on 1D.
In addition to buy signals the most important indication is divergence with the price. Before a trend change 2 kinds of divergences happen
- Trend line moves reverse to the price line
- Are a tops moves revers to the price tops. For example while there is a higher price top, there is a lower area top. Then its time to escape.
Motivation
It is common to suffer from failures while trading highly profitable but volatile coins like NULLS, REP, DLT, LRC, MFT, HOT, OAX, KEY, etc.
- Traders sell too early to ensure a profit. Sell at 10% and it goes 200%
- Traders buy too early. Traders buy and it drops yet another 50%
- Wrong patience. The trader keeps the faith and waits for days for the glorious days. And nothing happens.
I believe with this indicator I am able to solve those problems most of the time.
Volume ExternalShows the volume of a specified exchange and pair. They should be entered in the format EXCHANGE:PAIR, e.g. BINANCE:ETHUSDT.
You can add multiple indicators of this to do volume analysis of multiple pairs on the same chart.