Volume Records + AlertContents
Overall Introduction
Settings menu parameters
Usage
How to use alerts
Limits
Overall Introduction
This indicator is a "volume analysis" tool for confirming the direction and strength of price trend and spotting trend reversals. This tool consists of two parts:
1- The colored graph is a custom volume oscillator which shows the relative changes in volume.
The darkening of the color of the bars is a sign of increasing volume.
2- Triangular labels that show trading volume records over different time periods based on the absolute values of the volume.
By creating an alert, you can be notified of new trading volume records. These records are:
Highest / lowest volume in one year,
Highest / lowest volume in six month
Highest / lowest volume in three month
Highest / lowest volume in one month
Highest / lowest volume in one week
Settings menu parameters
{Short Length} =>
The fast volume MA of the Volume Oscillator.
{Long Length} =>
The slow volume MA of the Volume Oscillator.
{Visual Parameters} =>
Parameters to personalize the appearance of the indicator.
{Alert Conditions Part 01: Highest Records ⏰ } =>
Parameters to customize the alert.
{Alert Conditions Part 02: Lowest Records ⏰ } =>
Parameters to customize the alert.
Usage
This indicator is a "volume analysis" tool for confirming the direction and strength of price trend and spotting trend reversals.
What Is Volume Analysis?
Volume analysis involves examining relative or absolute changes in an asset's trading volume in order to make inferences about future price movements.
A significant price increase along with a significant volume increase, for example, could be a credible sign of a continued bullish trend or a bullish reversal.
The gradual darkening of the bars is a sign of the strength of the trend.
Volume can be an indicator of market strength, as rising markets on increasing volume are typically viewed as strong and healthy.
How to use alerts
Note that by creating an alert, an instance of the indicator, with all your settings, will be activated on the site's server and alerts will be triggered by it.
After that, changing the indicator settings on the chart will no longer affect the alert.
Open the settings window and select the alert conditions as you wish
Click the Create Alert button (or press the A key while holding down the ALT key)
In the Condition section, select the name of the indicator.
Make the rest of the settings as you wish.
Finally, click on the Create button.
It's finished. After a few moments, your alert will be added to the Alerts menu.
Limits
The labels are displayed after the bars close.
Labels are displayed for the last 10,000 bars.
Absolute
Spread by//Every spread & central tendency measure in 1 script with comfortable visualization, including scrips's status line.
Spread measures:
- Standard deviation (for most cases);
- Average deviation (if there are extreme values);
- GstDev - Geometric Standard Deviation (exclusively for Geometric Mean);
- HstDev - Harmonic Deviation (exclusively for Harmonic Mean).
These modified functions will calculate everything right, they will take source, length, AND basis of your choice, unlike the ones from TW.
Central tendency measures:
- Mean (if everything's cool & equal);
- Median (values clustering towards low/high part of the rolling window);
- Trimean (3/more distinguishable clusters of data);
- Midhinhe (2 distinguishable clusters of data);
- Geometric Mean ( |low.. ... ... .. .... ... . . . . . . . . . . . .high| this kinda data); <- Exp law
- Harmonic Mean { |low. . . . . . . . . . . . . . .. . . .high| kinda data). <- Reciprocal law
Listen:
1) Don't hesitate using Standard Deviation with non-mean, like "Midhinge Standard Devition", despite what ol' stats gurus gonna say, it works when it's appropriate;
2) Don't check log space while using Geometric Mean & Geometric Standard Deviation, these 2 implement log stuff by design, I mean unless u wanna make it double xd
3) You can use this script, modify it how you want, ask me questions whatever, just make money using it;
4) Use Midrange & Midpoints in tandem when data follows ~addition law (like this . . . . . . . . . . . . . . . . . . . . .). <- just addition law
Look at the data, choose spread measure first, then choose central tendency measure, not vice versa.
!!!
Ain't gonna place ® sign on standard deviations like one B guy did in 1980s lmao, but if your wanna use Harmonic Deviations in science/write about/cite it/whatever, pls give me a lil credit at least, I've never seen it anywhere and unfortunately had to develop it by myself. it's useful when your data develops by reciprocals law (opposite to exponential).
Peace TW
Mean Absolute Deviation BandsThe other way to build bands around price that uses Mean Absolute Deviation instead of Standard Deviation.
MAD is also a measure of variability, but less frequently used. MAD is better for use with distributions other than the Gaussian.
MAD is always less than or equal to Standard Deviation and the resulting bands are more tighter for the same parameters if we compare it to Bollinger Bands.
If you use band stops this can be useful.
Balihuntul Normalized Absolute Volume by RRBBalihuntul Normalized Absolute Volume by RagingRocketBull 2018
Version 1.0
This indicator shows absolute and/or normalized volume for an asset, allows for more accurate volume based comparisons (like a log scale for volume).
Volume is measured in coins traded, not USD traded, so direct comparisons of different price moves may not be accurate.
Professional traders usually compare absolute or normalized volumes of trend moves/spikes/dips/capitulation events instead.
When the USD price of an asset is lower you can trade more coins but capitalization won't be as significant as when there are less coins for a higher price.
Similarly, you can normalize volume using:
- price/price ma (to get a bit of a price-weighted volume) or
- volume ma to compare it with its average assuming the total volume is a percentage above or below the MA (100% or 1).
- use alpha multiplier to add/lose a few zeroes if necessary
Features:
- Use Absolute Price Value (Price * Volume) of an asset instead of Coins Traded (Volume) to compare capitalization
- Normalize volume using Price / Price MA / Volume MA
- Supports any existing type of MA: SMA, EMA, WMA, HMA etc
- Oscillator mode with negative axis
- Highlight high volume spikes above MA or hide low volume bars below MA
- Change color based on prev Close or Volume bars
- Change Volume MA color based on a number of last rising/falling bars
- Display volume as 1000s, mlns, or blns using alpha multiplier
Notes:
1. uses plot* and custom hma functions
2. swma has a fixed length = 4, alma and linreg have additional offset and smoothing params
Feel free to use. Good Luck!
[RESEARCH] Mean Absolute DeviationHello traders and developers!
I was wondering how built-in "dev" function in Pine is calculated so I made a little research.
I examined 7 samples:
0) "dev" function itself
1) "dev" according to its description: series - sma(series)
2) Mean Absolute Deviation
3) ratio of the absolute difference from 1) divided by period
4) ratio of the difference from 1) divided by period
5) Median Absolute Deviation
6) tricky for-loop to calculate Mean Absolute Deviation
The results of the null and sixth samples are identical.
So, TV built-in "dev" function represents Mean Absolute Deviation and it's description is incorrect.
Where it is used? For example: Commodity Channel Index. You can check its original formula and if you used simple standard deviation instead of MAD in your CCIs - well guys, you were wrong.
Good luck!
Absolute Price Oscillator (APO) Strategy 2.0 The Absolute Price Oscillator displays the difference between two exponential
moving averages of a security's price and is expressed as an absolute value.
How this indicator works
APO crossing above zero is considered bullish, while crossing below zero is bearish.
A positive indicator value indicates an upward movement, while negative readings
signal a downward trend.
Divergences form when a new high or low in price is not confirmed by the Absolute Price
Oscillator (APO). A bullish divergence forms when price make a lower low, but the APO
forms a higher low. This indicates less downward momentum that could foreshadow a bullish
reversal. A bearish divergence forms when price makes a higher high, but the APO forms a
lower high. This shows less upward momentum that could foreshadow a bearish reversal.
WARNING:
- This script to change bars colors.
Stoch Money Flow (ADMF) & Absolute Strength Index (ASI) [cI8DH]This indicator can apply my previous indicator, Historical and Standard Stochastic, to Money Flow (ADMF) or Absolute Strength Index (ASI) or both at the same time. It can also display those two indicators in regular mode as well as showing visual cues when the indicators make new ATH or ATL.
ASI is basically a new name I am giving to my Gain/Loss Moving Average indicator. If you normalize ASI with the moving average of all the changes in price, it becomes identical to RSI. So ASI is basically non-normalized RSI, that is why it should be a more accurate representation of price momentum.
ADMF is an accumulation/distribution and money flow momentum indicator. Both ASI and ADMF are not range-bound so it is not easy to compare them against each other. When stochastic equation is applied to them, they both become range-bound and comparable. The gaps between the two indicator can reveal valuable information about market dynamics. The chart below shows some examples (note the settings).
For conventional usages of stochastic, please read www.tradingview.com(STOCH) and www.tradingview.com(STOCH_RSI). I recommend you to find the optimal length by playing with the stoch length in the indicator settings. If this parameter is calibrated properly, this indicator can be a powerful tool for identifying market cycle.
You can get these features ( ATH , ATL detection and historical stochastic) for any other indicator using the script below:
Normalized Average True Range (NATR) (Volatility) [cI8DH]As you can see in the chart below, regular ATR is not useful for long term analysis. Normalizing it, fixes the issue. This indicator can be used to measure absolute volatility. It has a built-in stochastic as well for relative volatility. ATR counts high and low in the equation unlike Bolinger Band Width.
Stochastic:
Rate Of Change - Absolute ValueMeasures the period's change in terms of the instrument's value (e.g. pip, dollar, etc) instead of as a percentage. I generally use it on a daily time frame with a period=1 to see how the current day's move compares with prior days' moves in order to gain a perspective into how this move ranks historically.