CFB Adaptive Gann HiLo Activator Histogram [Loxx]CFB Adaptive Gann HiLo Activator Histogram is a Composite-Fractal-Behavior-adaptive Gann HiLo activator in histogram form that has been smoothed using Jurik Filtering to reduce noise and better identify trending markets. This indicator is the CFB adaptive version of Jurik-Filtered, Gann HiLo Activator .
What is Gann HiLo
The HiLo Activator study is a trend-following indicator introduced by Robert Krausz as part of the Gann Swing trading strategy. In addition to indicating the current trend direction, this can be used as both entry signal and trailing stop.
Here is how the HiLo Activator is calculated:
1. The system calculates the moving averages of the high and low prices over the last several candles. By default, the average is calculated using the last three candles.
2. If the close price falls below the average low or rises above the average high, the system plots the opposite moving average. For example, if the price crosses above the average high, the system will plot the average low. If the price crosses below the average low afterward, the system will stop plotting the average low and will start plotting the average high, and so forth .
The plot of the HiLo Activator thus consists of sections on the top and bottom of the price plot. The sections on the bottom signify bullish trending conditions. Vice versa, those on the top signify the bearish conditions.
What is Composite Fractal Behavior ( CFB )?
All around you mechanisms adjust themselves to their environment. From simple thermostats that react to air temperature to computer chips in modern cars that respond to changes in engine temperature, r.p.m.'s, torque, and throttle position. It was only a matter of time before fast desktop computers applied the mathematics of self-adjustment to systems that trade the financial markets.
Unlike basic systems with fixed formulas, an adaptive system adjusts its own equations. For example, start with a basic channel breakout system that uses the highest closing price of the last N bars as a threshold for detecting breakouts on the up side. An adaptive and improved version of this system would adjust N according to market conditions, such as momentum, price volatility or acceleration.
Since many systems are based directly or indirectly on cycles, another useful measure of market condition is the periodic length of a price chart's dominant cycle, (DC), that cycle with the greatest influence on price action.
The utility of this new DC measure was noted by author Murray Ruggiero in the January '96 issue of Futures Magazine. In it. Mr. Ruggiero used it to adaptive adjust the value of N in a channel breakout system. He then simulated trading 15 years of D-Mark futures in order to compare its performance to a similar system that had a fixed optimal value of N. The adaptive version produced 20% more profit!
This DC index utilized the popular MESA algorithm (a formulation by John Ehlers adapted from Burg's maximum entropy algorithm, MEM). Unfortunately, the DC approach is problematic when the market has no real dominant cycle momentum, because the mathematics will produce a value whether or not one actually exists! Therefore, we developed a proprietary indicator that does not presuppose the presence of market cycles. It's called CFB (Composite Fractal Behavior) and it works well whether or not the market is cyclic.
CFB examines price action for a particular fractal pattern, categorizes them by size, and then outputs a composite fractal size index. This index is smooth, timely and accurate
Essentially, CFB reveals the length of the market's trending action time frame. Long trending activity produces a large CFB index and short choppy action produces a small index value. Investors have found many applications for CFB which involve scaling other existing technical indicators adaptively, on a bar-to-bar basis.
What is Jurik Volty used in the Juirk Filter?
One of the lesser known qualities of Juirk smoothing is that the Jurik smoothing process is adaptive. "Jurik Volty" (a sort of market volatility ) is what makes Jurik smoothing adaptive. The Jurik Volty calculation can be used as both a standalone indicator and to smooth other indicators that you wish to make adaptive.
What is the Jurik Moving Average?
Have you noticed how moving averages add some lag (delay) to your signals? ... especially when price gaps up or down in a big move, and you are waiting for your moving average to catch up? Wait no more! JMA eliminates this problem forever and gives you the best of both worlds: low lag and smooth lines.
Ideally, you would like a filtered signal to be both smooth and lag-free. Lag causes delays in your trades, and increasing lag in your indicators typically result in lower profits. In other words, late comers get what's left on the table after the feast has already begun.
Included
-Toggle bar color on/off
D-histogram
Heiken Ashi Smoothed Net VolumeThis indicator attempts to use Heiken Ashi calculations to smooth the Volume net histogram indicator by RafaelZioni. Long above zero line, short below zero line.
Market Profile Fixed ViewSome instruments does not provide any volume information, therefore, as a fixed volume profile user, I needed a fixed market profile indicator to use the same principles, regardless of whether the volumes are available or not.
This script draws a market profile histogram corresponding to price variations within a specific duration, you only need to specify Start and End date/time values to see the histogram on your chart.
Details
Two lines corresponding to highest/lowest prices are displayed around the histogram
The redline corresponds to the POC (point of control)
Options
Start calculation
End calculation
Bars number (histogram resolution, currently locked to a max value of 50 bars)
Display side/Width (allows to modify size of bars, to the left or to the right)
Bars/Borders/POC Color customization
Notes
This script will probably be updated (to add VAH/VAL zones, and maybe other options). However, some common market profile attributes have not been implemented yet since I don't really use them)
OBV+EMA HistogramHistogram of the difference between On Balance Volume and an EMA of the On Balance Volume (OBV + EMA).
Using a 55 EMA, on the daily timeframe of BTC, bull/bear trends occur when the histogram is above/below the zero line respectively.
Divergences also have a notable effect.
-- Added alert conditions when OBV crosses EMA to signal a possible trend change, for bullish and bearish cases.
KINSKI USDT Market Cap DominanceUSDT dominance charts are rare to find as almost everyone is fixated on BTC dominance. Bitcoin dominance gives us insight into investors' preferences when they have a choice between BTC and thousands of altcoins.
This oscillator gives insight into the state of the coin market. When people exchange their digital currencies like BTC and Altcoins for USDT, there is low confidence in the market. The opposite is true when BTC and Altcoins are bought because market sentiment is high.
So when USDT dominance rises, cryptocurrency prices fall, but when their dominance falls, cryptocurrency prices rise.
Features
Can be displayed as a moving average (default) or histogram.
Choice between 'CRYPTOCAP:USDT', 'CRYPTOCAP:USDT.D', 'CRYPTOCAP:OTHERS.D' => CRYPTOCAP:USDT.D is default.
Smoothing types Selectable
Upward and downward trend of MA line can be activated
Extensive style settings
ATR Drift %This script plots an histogram calculated this way:
Get the previous ATR sample, calculated in the specified timeframe
Get the actual open price of the bar in the specified timeframe minus the actual price in the current timeframe
and plots the percent change between the the 2 values
For example, if you select DAY as timeframe for the ATR:
Plots the percent change between:
- ATR(daily) from yesterday
and
- open from today - actual price
Due to Tradingview limitations, only shows the plot if the actual timeframe of the graphic is equal or lower that the ATR selected timeframe
The background changes shows a new ATR sample taking place
I'm testing this for scalping in 5M timeframe with the ATR in 4H
All my published scripts at: es.tradingview.com
ATR Daily Drift %This script is an especial request from a user
Plots the percent change between:
- ATR(daily) from yesterday
and
- open from today - actual price
Due to Tradingview limitations, only shows the plot if the actual timeframe of the graphic is daily or lower.
All my published scripts at: es.tradingview.com
Volume Profile and Volume Indicator by DGTVolume Profile (also known as Price by Volume) is an charting study that displays trading activity over a specified time period at specific price levels. It is plotted as a horizontal histogram on the finacial isntrumnet's chart that highlights the trader's interest at specific price levels.
The histogram is used by traders to predict areas of support and resistance. Price levels where the traded volume is high could be assumed as support and resistance levels.
Price may experience difficulty moving above or below areas with large bars. Usually there is a great deal of activity on both the buy and sell side and the market stays at that price level for a great deal of time
It is advised to use volume profile in conjunction with other forms of technical analysis to maximize the odds of success
Light version of Volume Profile is added to Price Action - Support & Resistance by DGT
ADeXtIt is an extended ADX and Direction Movement Index indicator with the following changes:
It shows a histogram instead of the DMI lines. If the histogram is green, the DMI+ is above DMI-, otherwise it is red.
You can specify a multiplier for the histogram values to check if values are above threshold. This way you can use the same threshold line as ADX to detect directional strength.
You can remove outliers from ATR calculations
You can use different MAs and sources for DMI and ATR calculations to make ADX more adjustable to different markets
It uses my ADExt library, so you can easily transfer your study to a strategy script.
Moving Averages HistogramAn interesting idea is to simplify the display of whether ONE fast-moving average crosses FIVE other slower-moving averages using just a histogram.
The idea is to increase the step counter by 1 every time a fast-moving average crosses OVER one of the five slower-moving averages until reaching 5 (highest value) and decrease the step counter by 1 every time the fast-moving average crosses UNDER each one of the five slower moving averages until reaching 0 (lowest value of the histogram).
=== Cut To Chase ===
If the histogram is at the top value 5 (green), it means the FAST moving average is ABOVE ALL slower-moving averages, Hench, the asset is up trending.
If the histogram is at the bottom value 0 (red), it means the FAST moving average is BELOW ALL slower-moving averages, Hench, the asset is down trending.
If the histogram is in the midways between 0 to 5, it means the FAST moving average is starting to cross the slower moving averages which could lead to a trend reversal, up or down, it depends on the direction of the crossing.
=== Notes ===
You can change from a variety of moving averages like RMA, EMA, ALMA, HMA, and so on.
You can reduce the number of slow-moving averages by placing the same length.
You can visualize the moving averages in case you want to see how it works behind, by going to settings and clicking 'Show MA lines'.
Every moving average length can be modified inside settings.
Note that the fast-moving average should have the lowest length.
You can visualize how the moving average is plotted:
Linear Regression Histogram [LuxAlgo]This indicator is inspired by traditional statistical histograms. It will return the number of occurrences of price falling within each interval (bins) of the linear regression channel. This can be useful to highlight zones of interest within a trend.
Settings
Length: Number of recent closing prices used for the computation of the linear regression.
Bins Number: Number of intervals constructed from the linear regression channel.
Mult: Multiplicative factor for the RMSE. Controls the width of the linear regression channel.
Src: Input source of the indicator.
Usage
The indicator is constructed by dividing the linear regression channel range into a series of intervals (bins) of equal width. We then count the number of price values falling within each interval.
If a significant number of price values fall within a specific interval then that interval can highlight a potential zone of interest within a trend.
The zone of interest is highlighted in blue.
Liquidity Levels [LuxAlgo]The Peak Activity Levels indicator displays support and resistance levels from prices accompanied by significant volume. The indicator includes a histogram returning the frequency of closing prices falling between two parallel levels, each bin shows the number of bullish candles within the levels.
1. Settings
Length: Lookback for the detection of volume peaks.
Number Of Levels: Determines the number of levels to display.
Levels Color Mode: Determines how the levels should be colored. "Relative" will color the levels based on their location relative to the current price. "Random" will apply a random color to each level. "Fixed" will use a single color for each level.
Levels Style: Style of the displayed levels. Styles include solid, dashed, and dotted.
1.1 Histogram
Show Histogram: Determines whether to display the histogram or not.
Histogram Window: Lookback period of the histogram calculation.
Bins Colors: Control the color of the histogram bins.
2. Usage
The indicator can be used to display ready-to-use support and resistance. These are constructed from peaks in volume. When a peak occurs, we take the price where this peak occurred and use it as the value for our level.
If one of the levels was previously tested, we can hypothesize that the level might be used as support/resistance in the future. Additional analysis using volume can be done in order to confirm a potential bounce.
The histogram can return various information to the user. It can show if the price stayed within two levels for a long time and if the price within two levels was mostly made of bullish or bearish candles.
In the chart above, we can see that over the most recent 200 bars (determined by Histogram Window) 68 closing prices fall between levels A and B, with 27 bars being bullish.
Additionally, the width of a bin and its length can sometimes give information about the volatility of a specific price variation. If a bin is very wide but short (a low number of closing prices fallen within the levels) then we can conclude a most of the movement was done on a short amount of time.
Price Volume Trend + Signal and HistogramThis is a script based on PVT + Signal Line, which can be EMA or SMA. It then plots a histogram which is equal to PVT - Signal. This makes it easier to spot divergences.
To better match up the scales, we decided to add a multiplication factor to the histogram. Each asset and even timeframe requires a different multiplication factor, so please experiment to find what suits you.
Credits and special thanks are listed on the source code.
Probability Distribution HistogramProbability Distribution Histogram
During data exploration it is often useful to plot the distribution of the data one is exploring. This indicator plots the distribution of data between different bins.
Essentially, what we do is we look at the min and max of the entire data set to determine its range. When we have the range of the data, we decide how many bins we want to divide this range into, so that the more bins we get, the smaller the range (a.k.a. width) for each bin becomes. We then place each data point in its corresponding bin, to see how many of the data points end up in each bin. For instance, if we have a data set where the smallest number is 5 and the biggest number is 105, we get a range of 100. If we then decide on 20 bins, each bin will have a width of 5. So the left-most bin would therefore correspond to values between 5 and 10, and the bin to the right would correspond to values between 10 and 15, and so on.
Once we have distributed all the data points into their corresponding bins, we compare the count in each bin to the total number of data points, to get a percentage of the total for each bin. So if we have 100 data points, and the left-most bin has 2 data points in it, that would equal 2%. This is also known as probability mass (or well, an approximation of it at least, since we're dealing with a bin, and not an exact number).
Usage
This is not an indicator that will give you any trading signals. This indicator is made to help you examine data. It can take any input you give it and plot how that data is distributed.
The indicator can transform the data in a few ways to help you get the most out of your data exploration. For instance, it is usually more accurate to use logarithmic data than raw data, so there is an option to transform the data using the natural logarithmic function. There is also an option to transform the data into %-Change form or by using data differencing.
Another option that the indicator has is the ability to trim data from the data set before plotting the distribution. This can help if you know there are outliers that are made up of corrupted data or data that is not relevant to your research.
I also included the option to plot the normal distribution as well, for comparison. This can be useful when the data is made up of residuals from a prediction model, to see if the residuals seem to be normally distributed or not.
Difference in price changeCompares price change between current symbol and other one (eg. BTC vs S&P500). It calculates price change on each bar (from high to low or from open to close) and compares with price change of equivalent bar from the other source.
Example
Current symbol
open = 10 USD
close = 7 USD
change = -3 USD
% change = -30%
Second symbol
open = 3 USD
close = 4 USD
change = +1 USD
% change = +33%
Performance of price change = (-30) - (+30) = -63 // It means that current source has weaker performance right now
Price/Volume Trend MeterAnother simple indicator from the sweet indicator series, This is a combination of the Volume and Price Trend Meter indicators combined (Links below) into one indicator called PVTM (Price Volume Trend Meter).
PVTM measures the strength of price and volume pressure on a histogram.
The indicator sums up all green candles price and volume and red candles price and volume over a specific period of bars and plots based on Price summed value. The result will look similar to Price Trend Meter with the benefit of trying to filter out more noise.
Use this indicator to identify the increasing asset of price and volume with the green candles (Close is higher than open) and decreasing of price and volume with the red candles (Close is lower than open).
======= Calculation ==========
Bright Green Color Column: Total summed up Price and Volume are higher than 0.
Bright Red Color Column: Total summed up Price and Volume are Lower than 0.
Weak Green Color Column: Conflict between Price and Volume (One positive and one negative) so we continue based on previous color .
Weak Red Color Column: Conflict between Price and Volume (One positive and one negative) so we continue based on previous color.
======= Price/Volume Trend Meter Colors =======
Green: Increasing buying pressure.
Weaker Green: Declining Buying pressure (Possible Sell Reversal).
Red: Increasing selling pressure.
Weaker Red: Declining Selling pressure (Possible Buy Reversal).
Other sweet indicators that this indicator is based on:
Volume Trend Meter:
Price Trend Meter:
Like if you Like and Follow me for upcoming indicators/strategies: www.tradingview.com
Price Trend MeterYet another sweet little indicator which measures price pressure over specific period of time. I call it Price Trend Meter (PTM),
It's basically similar to the indicator 'Volume Trend Meter' (VTM) but this time the calculations are based on price rather than volume.
The indicator sums up all the prices of the green candles and red candles over a specific period of time (source and bars back can be adjusted in indicator settings).
======= Calculation ==========
For Green Column: Total price of green candles is higher than total red candles price for a specific bars back.
For Red Column: Total price of red candles is higher than the total green candles price for a specific bars back.
======= Price Trend Meter Colors =======
Green: Increasing buying pressure.
Red: Increasing selling pressure.
For the Volume Trend Meter indicator go here : https:www.tradingview.com/script/ywEEvEtI-Volume-Trend-Meter/
Stay tuned and Follow as a combination indicator of the two indicators (VTM + PTM) will be coming up next: https:www.tradingview.com/u/dman103/#published-scripts
Like if you like and Enjoy.
Cosmic AngleThis is a histogram that can display a moving average's angle and also show how volatile the change in angle is.
To use:
Add any moving average indicator to the chart
Click that indicator's More > Add Indicator on (MA)
Select the Cosmic Angle indicator
Adjust the Cosmic Angle 's Price To Bar Ratio value to reflect that of your chart's
Adjust the Cosmic Angle 's Threshold as per your liking (*1)
(*1) This setting affects the bar colors. It represents the minimum difference in degrees between the n and n-1 bars' angle to force a change of color.
Close Counter HistogramAn interesting experiment to make an indicator act as a counter. I call it CCH - Close Counter Histogram.
It adds 1 when current close is higher than previous close and reduces -1 when current close is lower than previous close.
In the CCH settings you set how many bars to look back and use EMA to smooth the results or disable EMA smoothing.
Disable the EMA smoothing and you'll see the real deal (pure counter).
The higher the GREEN columns the more higher closes and the lower the RED columns the more lower closes.
In case columns are declining above 0 a more darker green will appear.
In case columns are declining below 0 a more darker red will appear.
Supports bar coloring (disabled by default).
Feel free to comment and Like if you like.
Enjoy :)
DMI-ADX HistogramThe Average Direction Index (ADX) coupled with the Direction Movement Index (DMI), developed by J. Welles Wilder, is a popular indicator that measures trend direction and strength.
The AX line (blue) is used to show the strength of the current trend. It does not tell you the trend direction. The under laid histogram shows relative movements of the price with green showing positive momentum and red showing negative momentum. Use these ADX and DMI together to find trend strength and direction.
- ADX line below 20 indicates that the underlying is in accumulation/distribution.
- ADX line above 20 mean that the underlying is trending with over 60 being very strong.
*When the ADX line is below 20 it is likely to see many reversal signals on the DMI Histogram. It is best to use the DMI signals when the ADX line is above 20 or higher. This is also a good level to play around with.
Motivation
Normally the direction movements are plotted as lines with the DI+ being green and the DI- being red. When the DI+ (green) crosses over DI- (red) this may indicate a buy signal, and vice versa. I found this visual representation made it difficult to see signals as well as lacked the ability to easy see the relative strength of other moves.
I have also noticed that the histogram values will periodically cross the ADX line, but not for very long periods. This could be a useful signal to explore further in the future.
In this image the top indicator is using the normal DI+/- lines, where the bottom indicator is using an absolute histogram.
Triangular Momentum Oscillator & Real Time Divergences [LuxAlgo]Oscillators are widely used in technical analysis and can return a large amount of information to the trader depending on their design. It is common to use oscillators to detect divergences with the price, divergences occur when the tops/bottoms made by the oscillator and price are negatively correlated.
The following oscillator is based on the momentum of a triangular moving average, hence the name "triangular momentum" because of the very smooth property of the triangular moving average, we aimed at a real-time detection of divergences instead of using more common methods such as relying on pivot high/low detection which are suitable for more noisy oscillators.
The oscillator can also be colored based on a gradient derived from the correlation between its output and the price which can be useful to detect when the oscillator is out of phase (significantly lagging or leading the price).
Settings
length : Period of the oscillator, higher values return a smoother output.
src : Input source of the indicator.
Show Lines : Show lines connecting the current top/bottom with the previous one made by the oscillator when a divergence is detected. True by default.
Color Based On Price/Oscillator Correlation : Allows the color of the oscillator to change based on its correlation with the price, with red colors suggesting a negative correlation.
Usages
The advantage of having a smoother oscillator for divergences detection is that it can be done in real-time since a top or bottom is present when the oscillator first difference cross 0. Smoother oscillators are also easier to interpret, however, they will still suffer from lag.
The divergences detected by the oscillator are regular divergences, where the oscillator leads price variations.
Using higher values of length allows the oscillator to filter out longer-term variations thus being smoother as a result.
By using the color mode based on the price/oscillator correlation we can see where the oscillator leads or lag the price, and since divergences are based on the price and oscillator going in the opposite direction we can have information where price might reverse.
It is also possible to interpret the oscillator without relying on the divergence detection, with a decreasing value of the oscillator indicating a downtrend and an increasing value indicating an uptrend.
Price/Volume Value HistogramAn interesting implementation of mine to measure an asset changes based on asset price velocity and volume velocity. The indicator acts as asset value calculator. Long and Short.
==Points System Rules==
UPTRENDING
If Current Close is higher than previous Close and Current Volume is bigger than previous Volume: Adds Close Points and Volume Points
Otherwise check
If Current Close is higher than previous Close: Adds Only Close Points
DOWNTRENDING
If Current Close is lower than previous Close and Current Volume is bigger than previous Volume: Reduces Close Points and Volume Points
Otherwise check
If Current Close is lower than previous Close: Reduces Only Close Points
==Plotting==
Result of the values are summed up to a histogram.
Obviously on increasing prices and volume the histogram will be above zero line and on the Bullish side (green color), otherwise, on the Bearish side (red color).
You can't cheat the price movement, it's just what it is.
Optional to smooth it by EMA (set to true by default).
Like if you Like and Enjoy!
Follow for upcoming indicators.
Stocks Advance/Decline HistogramStocks Advance/Decline Histogram indicator, which I call ADH is my own implementation that plots an histogram of the difference between the number of advancing and declining stocks on a daily basis (or higher time frame) for the NASDAQ and NYSE.
How to use it?
Green: More NYSE stocks are advancing than declining.
Red: More NYSE stocks are declining than advancing.
Light Green: More NASDAQ stocks are advancing than declining.
Light Red: More NASDAQ stocks are declining than advancing.
Note: Advance/Decline data is based on daily or higher time frames.