VolumeIndicatorsLibrary "VolumeIndicators"
This is a library of 'Volume Indicators'.
It aims to facilitate the grouping of this category of indicators, and also offer the customized supply of the source, not being restricted to just the closing price.
Indicators:
1. Volume Moving Average (VMA):
Moving average of volume. Identify trends in trading volume.
2. Money Flow Index (MFI): Measures volume pressure in a range of 0 to 100.
Calculates the ratio of volume when the price goes up and when the price goes down
3. On-Balance Volume (OBV):
Identify divergences between trading volume and an asset's price.
Sum of trading volume when the price rises and subtracts volume when the price falls.
4. Accumulation/Distribution (A/D):
Identifies buying and selling pressure by tracking the flow of money into and out of an asset based on volume patterns.
5. Chaikin Money Flow (CMF):
A variation of A/D that takes into account the daily price variation and weighs trading volume accordingly.
6. Volume Oscillator (VO):
Identify divergences between trading volume and an asset's price. Ratio of change of volume, from a fast period in relation to a long period.
7. Positive Volume Index (PVI):
Identify the upward strength of an asset. Volume when price rises divided by total volume.
8. Negative Volume Index (NVI):
Identify the downward strength of an asset. Volume when price falls divided by total volume.
9. Price-Volume Trend (PVT):
Identify the strength of an asset's price trend based on its trading volume. Cumulative change in price with volume factor
vma(length, maType, almaOffset, almaSigma, lsmaOffSet)
@description Volume Moving Average (VMA)
Parameters:
length : (int) Length for moving average
maType : (int) Type of moving average for smoothing
almaOffset : (float) Offset for Arnauld Legoux Moving Average
almaSigma : (float) Sigma for Arnauld Legoux Moving Average
lsmaOffSet : (float) Offset for Least Squares Moving Average
Returns: (float) Moving average of Volume
mfi(source, length)
@description MFI (Money Flow Index).
Uses both price and volume to measure buying and selling pressure in an asset.
Parameters:
source : (float) Source of series (close, high, low, etc.)
length
Returns: (float) Money Flow series
obv(source)
@description On Balance Volume (OBV)
Same as ta.obv(), but with customized type of source
Parameters:
source : (float) Series
Returns: (float) OBV
ad()
@description Accumulation/Distribution (A/D)
Returns: (float) Accumulation/Distribution (A/D) series
cmf(length)
@description CMF (Chaikin Money Flow).
Measures the flow of money into or out of an asset over time, using a combination of price and volume, and is used to identify the strength and direction of a trend.
Parameters:
length
Returns: (float) Chaikin Money Flow series
vo(shortLen, longLen, maType, almaOffset, almaSigma, lsmaOffSet)
@description Volume Oscillator (VO)
Parameters:
shortLen : (int) Fast period for volume
longLen : (int) Slow period for volume
maType : (int) Type of moving average for smoothing
almaOffset
almaSigma
lsmaOffSet
Returns: (float) Volume oscillator
pvi(source)
@description Positive Volume Index (PVI)
Same as ta.pvi(), but with customized type of source
Parameters:
source : (float) Series
Returns: (float) PVI
nvi(source)
@description Negative Volume Index (NVI)
Same as ta.nvi(), but with customized type of source
Parameters:
source : (float) Series
Returns: (float) PVI
pvt(source)
@description Price-Volume Trend (PVT)
Same as ta.pvt(), but with customized type of source
Parameters:
source : (float) Series
Returns: (float) PVI
AD
Combo Backtest 123 Reversal & Smoothed Williams ADThis is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
Accumulation is a term used to describe a market controlled by buyers;
whereas distribution is defined by a market controlled by sellers.
Williams recommends trading this indicator based on divergences:
Distribution of the security is indicated when the security is making
a new high and the A/D indicator is failing to make a new high. Sell.
Accumulation of the security is indicated when the security is making
a new low and the A/D indicator is failing to make a new low. Buy.
WARNING:
- For purpose educate only
- This script to change bars colors.
A/D Indicator[wozdux]+sum1 sum2 sum3Accumulation Distribution indicator (A / D) with additions. By default, the summation is performed for the entire historical period or for the period for which data are available on the Tradingwiev website . Added the ability to summarize for a given period (sum1, sum2,sum3).
--------
Accumulation Distribution индикатор (A/D) c дополнениями. По умолчанию суммирование производится за весь исторический период или за тот период, за который имеются данные на сайте Tradingwiev . Добавлена возможность суммировать за заданный период (sum1, sum2,sum3).
Smoothened Williams Accumulation/Distribution (Williams AD) Accumulation is a term used to describe a market controlled by buyers;
whereas distribution is defined by a market controlled by sellers.
Williams recommends trading this indicator based on divergences:
Distribution of the security is indicated when the security is making
a new high and the A/D indicator is failing to make a new high. Sell.
Accumulation of the security is indicated when the security is making
a new low and the A/D indicator is failing to make a new low. Buy.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Smoothened Williams A/D Strategy Accumulation is a term used to describe a market controlled by buyers;
whereas distribution is defined by a market controlled by sellers.
Williams recommends trading this indicator based on divergences:
Distribution of the security is indicated when the security is making
a new high and the A/D indicator is failing to make a new high. Sell.
Accumulation of the security is indicated when the security is making
a new low and the A/D indicator is failing to make a new low. Buy.
WARNING:
- This script to change bars colors.
Williams Accumulation/Distribution (Williams AD) Backtest Accumulation is a term used to describe a market controlled by buyers;
whereas distribution is defined by a market controlled by sellers.
Williams recommends trading this indicator based on divergences:
Distribution of the security is indicated when the security is making
a new high and the A/D indicator is failing to make a new high. Sell.
Accumulation of the security is indicated when the security is making
a new low and the A/D indicator is failing to make a new low. Buy.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Williams Accumulation/Distribution (Williams AD) Strategy Accumulation is a term used to describe a market controlled by buyers;
whereas distribution is defined by a market controlled by sellers.
Williams recommends trading this indicator based on divergences:
Distribution of the security is indicated when the security is making
a new high and the A/D indicator is failing to make a new high. Sell.
Accumulation of the security is indicated when the security is making
a new low and the A/D indicator is failing to make a new low. Buy.
WARNING:
- This script to change bars colors.
Advance-Decline Volume Percent Backtest Advance-Decline Volume Percent (AD Volume Percent) is a breadth indicator
that measures the percentage of Net Advancing Volume for a particular group
of stocks, such as an index or ETF. Net Advancing Volume equals the volume
of advances less the volume of declines. AD Volume Percent equals Net Advancing
Volume divided by total volume for the group. AD Volume Percent fluctuates
between -100% and +100%.
You can change long to short in the Input Settings
Please, use it only for learning or paper trading. Do not for real trading
Advance-Decline Volume Percent Advance-Decline Volume Percent (AD Volume Percent) is a breadth indicator
that measures the percentage of Net Advancing Volume for a particular group
of stocks, such as an index or ETF. Net Advancing Volume equals the volume
of advances less the volume of declines. AD Volume Percent equals Net Advancing
Volume divided by total volume for the group. AD Volume Percent fluctuates
between -100% and +100%.
Advance-Decline Volume Percent Advance-Decline Volume Percent (AD Volume Percent) is a breadth indicator
that measures the percentage of Net Advancing Volume for a particular group
of stocks, such as an index or ETF. Net Advancing Volume equals the volume
of advances less the volume of declines. AD Volume Percent equals Net Advancing
Volume divided by total volume for the group. AD Volume Percent fluctuates
between -100% and +100%.
Williams Accumulation/Distribution (Williams AD) Accumulation is a term used to describe a market controlled by buyers;
whereas distribution is defined by a market controlled by sellers.
Williams recommends trading this indicator based on divergences:
Distribution of the security is indicated when the security is making
a new high and the A/D indicator is failing to make a new high. Sell.
Accumulation of the security is indicated when the security is making
a new low and the A/D indicator is failing to make a new low. Buy.
Advance/Decline Volume Line The Advancing-Declining Volume Line (AD Volume Line) is a breadth indicator
based on Net Advancing Volume, which is the volume of advancing stocks less
the volume of declining stocks. Net Advancing Volume is positive when advancing
volume exceeds declining volume and negative when declining volume exceeds
advancing volume. The AD Volume Line is a cumulative measure of Net Advancing
Volume. It rises when Net Advancing Volume is positive and falls when Net
Advancing Volume is negative. Chartists plot the AD Volume Line for a specific
index and compare it to the performance of that index. The AD Volume Line should
confirm an advance or a decline with similar movements. Bullish or bearish
divergences in the AD Volume Line signal a change in buying or selling pressure
that could foreshadow a reversal in the index.
[RS]Average Advance and Decline Curved Lines V0exponential curve linear regression, use falloff multiplier to control curve falloff strength.
[RS]Average Advance and Decline Lines V0Method to draw linear regression lines from average price advance&decline range
[RS]Price Advance & Decline Range Analysisi use this mainly to extract average Advance and Decline values to use on linear regression lines.
CM_Williams AD+SMA_V1_PublicI posted this code a long time ago and forgot to add to PineScript Library.
Plots Williams Accumulation Distribution, Williams AD With Optional SMA as a Filter.
In Inputs Tab:
Ability to Turn On/Off SMA Filter.
Ability to change any of the plots to Change Colors Based on Being Above or Below the SMA Filter.
Also Ability to Turn Off Color Change Based on SMA Filter.