Volume Delta Imbalance Index [PhenLabs]📊 Volume Delta Imbalance Index (VDII)
Version: PineScript™ v6
Description
The Volume Delta Imbalance Index is an advanced technical analysis tool that combines volume profile analysis with price movement dynamics to identify significant market imbalances. It features a sophisticated analysis system that weighs recent versus historical volume delta imbalance patterns, providing traders with insights into potential market reversals and trend continuation scenarios.
Points of Innovation:
Custom volume delta calculation incorporating price and volume relationships
Adaptive smoothing system based on market volatility
Multi-component analysis combining flow, acceleration, and strength metrics
Real-time volume profile integration with historical context
🔧 Core Components
Volume Profile Analysis: Dynamic volume delta imbalance distribution assessment
Flow Imbalance Detection: Buy/sell pressure evaluation
Strength Analysis: Composite market strength measurement
Acceleration Framework: Volume movement dynamics
Statistical Bands: Adaptive threshold system
🚨 Key Features 🚨
The indicator provides comprehensive analysis through:
Volume Delta: Up to date volume imbalance measurement
Market Structure: Support/resistance level identification
Flow Analysis: Buy/sell pressure visualization
Acceleration Signals: Movement momentum detection
Adaptive Bands: Dynamic overbought/oversold levels
📈 Visualization
Color-coded Columns: Shows direction and strength of imbalance
Signal Lines: Strong buy/sell level indicators
Statistical Bands: Shows normal trading ranges
Gradient Fills: Indicates extreme market conditions
Dynamic Opacity: Reflects trend strength
📌 Usage Guidelines
The indicator offers several customization options:
Basic Settings:
Lookback Period: Analysis timeframe adjustment
Sensitivity Level: Signal response calibration
History Depth: Historical context range
Memory Setting: Recent vs. historical data weight
Visual Settings:
Color Scheme: Bullish/bearish signal colors
Signal Levels: Strong buy/sell thresholds
Band Display: Statistical range visualization
✅ Best Use Cases / Things To Look For:
Wait for establishment in the initial trend when the VDII comes back towards zero and the color of the volume becomes more faint
Once this is established and the VDII pushes through to the other side look for small retracements above the zero line on the VDII leading you to believe it is a likely area for price to retrace and continue in its prior direction
Make sure you see the volume bars become more faint in color to give yo further confluence price will continue in its priorly established direction
⚠️ Limitations
Requires sufficient volume data
Most effective in liquid markets
Historical depth affects calculation speed
Possible lag in highly volatile conditions
What Makes This Unique
Composite Volume Analysis: Combines multiple volume metrics
Adaptive Calculation: Adjusts to market volatility
Profile Integration: Incorporates volume profile analysis
Multi-component Scoring: Weighted analysis system
Memory-efficient Design: Optimized for real-time analysis
🔧 How It Works
The indicator processes market data through four main components:
1. Volume Profile Analysis:
Creates dynamic volume delta distribution profiles
Weights recent versus historical data
Identifies significant price levels
2. Flow Imbalance Detection:
Analyzes buying versus selling pressure
Calculates normalized flow ratios
Determines market bias
3. Strength Analysis:
Measures composite market strength
Incorporates volume-weighted movements
Provides trend strength indication
4. Final Score Calculation:
Combines all components with weighted importance
Applies volatility-based smoothing
Generates final signal output
5. VDII Potential Reversal Confluences
Bars between signal confluence is default set to 10 but you can change it to whatever you’d prefer
Signals are a compiled look at the indicator as a whole determining where it think reversals or retracements are likely
💡 Note:
The indicator performs best in markets with consistent volume and clear trending or ranging conditions. Its sophisticated volume analysis provides valuable insights into market dynamics beyond traditional price-based indicators.
Retracements
[HM] Fibonacci Fractals Absolute Auto v20221114Basically:
F - Fibonacci levels
F - fractals: retracement of retracement
A - absolute: based on two fixed points instead user chosen Fibonacci points
A - auto: automatically draws based on volatility
Explanation:
This script will automatically trace TWO Fibonacci levels from these points:
- ALL TIME HIGH (ATH) and ALL TIME LOW ( ATL ) prices
This is our first Fibonacci FRACTAL retracement and the line caption will show ONE character:
"↥" for 0.618
"↧" for 0.382
The FRACTAL with two lines will define THREE regions.
The second Fibonacci FRACTAL retracement will show TWO characters:
the same "↥" "↧" characters with:
"a" if the price is between TOP region of previous fractal
"b" if the price is between MIDDLE region of previous fractal
"c" if the price is between BOTTOM region of previous fractal
The third Fibonacci FRACTAL will show THREE characters and so on.
Delimited by volatility (otherwise this script will go to 10th fractal maximum).
OPTIONS to give a try:
- use ALL TIME HIGH and ZERO prices (instead ATH and ATL )
- use a non-Fibonacci retracement:
---> "⅓": 1/3 and 2/3 levels instead 0.618 and 0.382 (based on chess master Hindenburg Melão article hint)
---> "fibonaccing": 0.764 and 0.236 levels (based on Brazilian trader Marco Antonio Rossi method hint)
#script under development, sugestions and questions are welcome.
Auto Fibonacci and Gann Fan/Retracements ComboIntroduction
This is a combination of Fibonacci and Gann fan/retracements.
The script can automatically draw as many:
Fibonacci Retracements
Fibonacci Fan
Gann Retracements
Gann Fan
as the user requires on the chart. Each level set or fan consists of 7 lines based on the most important ratios of Fibonacci/Gann.
Basics
What are Fibonacci retracements?
Fibonacci retracement levels are horizontal lines that indicate where support and resistance are likely to occur. They stem from Fibonacci’s sequence. Each level is associated with a percentage which is how much of a prior move the price has retraced. The Fibonacci retracement levels are 23.6%, 38.2%, 61.8%, and 78.6%. While not officially a Fibonacci ratio, 50% is also used. The indicator is useful because it can be drawn between any two significant price points, such as a high and a low. The indicator will then create the levels between those two points.
What are Gann retracements?
A developer of technical analysis and trading was W.D. Gann. Gann theory expects a normal retracement of 50 percent. This means that under normal selling pressure, the stock price will decline half the amount of its most recent rise, and vice versa. It also suggests that retracements occur at the halfway point of a move, such as 25 percent (half of 50 percent), 12.5 percent (half of 25 percent), and so on.
What is Fibonacci fan?
Fibonacci fan is a set of sequential trend lines drawn from a trough or peak through a set of points dictated by Fibonacci retracements. The first step to create it is to draw a trend line covering the local lowest and highest prices of a security. To reach retracement levels, the trader divides the difference in price at the low and high end by ratios determined by the Fibonacci series. The lines formed by connecting the starting point for the base trend line and each retracement level create the Fibonacci fan.
What is Gann fan?
A Gann fan consists of a series of lines called Gann angles. These angles are superimposed over a price chart to show potential support and resistance levels. The resulting image is supposed to help technical analysts predict price changes. Gann believed the 45-degree angle to be most important, but the Gann fan also draws angles at degrees like 75, 63.75, 26.25 and 15. The Gann fan originates at a low or high point. The resulting lines show areas of potential future support and resistance. The 45-degree line is known as the 1:1 line because the price will rise or fall at a 45-degree angle when the price moves up/down one unit for each unit of time. All other lines in the Gann fan are drawn above and below the 1:1 line. The other angles are associated with 2:1, 3:1, 4:1, 8:1 and 1:8, 1:4, 1:3, and 1:2 time-to-price moves.
Challenges
The most of the time I dedicated to writing this script has been spent on handling these problems:
1. Finding Local Highest/Lowest Prices
In order to draw Fibonacci and Gann fan/retracements, it's necessary to find local highest and lowest price points (Extrema) on the chart. As this could be so challenging, most traders and coders draw the lines covering the low and high prices over a given period of time or a limited number of bars back instead. I already wrote an indicator using this approach ( Auto Fibonacci Combo ).
In this new script I tried to find the exact highest and lowest prices based on this idea that: if a high point is formed lower than previous high which was after a lowest point, then that previous one was the local highest point, and vice versa if a low point is formed higher than previous low which was after a highest point, then that previous one was the local lowest point. So logically an extremum price on the chart won't be found until the next high/low point is formed.
2. Finding Proper Chart Scale for Gann Fan
Based on the theory, Gann angles are sensitive to the chart price scale and in order to have the right angles, the chart must be made with the proper scale. J.A. Hyerczyk in his book "Pattern, Price & Time - Using Gann Theory in Technical Analysis" suggests that the easiest way to determine the scale of a market is by taking the difference between top-to-top and bottom-to-bottom and dividing it by the time it took the market to move from top to top and bottom to bottom.
Thus on a properly constructed chart, the basic equation for calculating Gann angles is: Price * Time.
3. Drawing Fans and Relocating Fan Labels at Each New Bar in Pine (A Programming-Related Subject)
To do this, I used linear equations and line slopes. Of course it was so complicated and exhausting, but finally I overcame that thanks to my genius cousin.
Settings and Usage
By default, the script shows detected extremum points plus 1 Fibonacci fan, 1 Gann fan, 1 set of Fibonacci retracements and no Gann retracements on the chart. All of these could be changed in the indicator settings beside the color and transparency of each line.
Feel free to use this and send me your thoughts!
ADX GapperBased on the ADX Gapper strategy described in the book Street Smarts, it looks to exploit retracement to a prevailing trend when there has been a gap away from the trend, giving you multiple potential entries. It uses the ADX to determine a trend and detects when there is a gap to signal an entry day where:
You would enter short if the DI-(red line) > DI+ (green line), ADX (blue area) > 30 indicating a strong trend and if there is a gap up from the previous day. If all the described conditions are met then you would place a short stop at the previous day highs and trail a stop until the end of the day. This strategy is meant to give you trades to hold for 1 day (the day you enter) or 2 days if you consider you should hold it overnight.