Market Phases NJRMarket Phases Indicator
Overview:
The Market Phases Indicator is a versatile tool designed for traders to identify key market phases, including accumulation, distribution, markup, and markdown. By analyzing the relationship between price and volume, this indicator aims to assist traders in recognizing potential shifts in market sentiment and trend direction.
Features:
1. **Moving Average Analysis:**
- Utilizes a customizable moving average length to assess the overall trend direction.
2. **Volume Confirmation:**
- Incorporates volume analysis to confirm the strength of identified market phases.
3. **Visualization:**
- Clearly visualizes accumulation, distribution, markup, and markdown phases on the price chart using intuitive shapes.
Input Parameters:
- **Moving Average Length (default: 20):**
- Adjusts the length of the moving average for trend analysis.
- **Volume Multiplier (default: 1.5):**
- Sets the multiplier to customize the volume threshold for identifying significant market phases.
How to Use:
1. **Accumulation and Distribution:**
- Green triangles indicate potential accumulation phases when the closing price is above the moving average, and volume is higher than the specified threshold. Red triangles indicate potential distribution phases.
2. **Markup and Markdown:**
- Blue triangles suggest potential markup phases when the closing price is above the moving average, and volume is below the specified threshold. Orange triangles indicate potential markdown phases.
Important Notes:
- This indicator is a tool for analysis and should be used in conjunction with other technical analysis methods.
- Parameters can be adjusted based on the specific characteristics of the asset being analyzed.
Disclaimer:
Trading involves risk, and no indicator can guarantee profits. Users should exercise caution, conduct thorough research, and consider risk management principles when making trading decisions.
Cari skrip untuk "accumulation"
PA-Adaptive T3 Loxxer [Loxx]PA-Adaptive T3 Loxxer is a Loxxer indicator that is Phase Accumulation Cycle adaptive and uses T3 moving average for smoothing instead of the typical SMA or EMA . this allows for smoother signals by reducing noise.
What is Loxxer?
The Loxxer indicator is a technical analysis tool that compares the most recent maximum and minimum prices to the previous period's equivalent price to measure the demand of the underlying asset.
What is the Phase Accumulation Cycle?
The phase accumulation method of computing the dominant cycle is perhaps the easiest to comprehend. In this technique, we measure the phase at each sample by taking the arctangent of the ratio of the quadrature component to the in-phase component. A delta phase is generated by taking the difference of the phase between successive samples. At each sample we can then look backwards, adding up the delta phases.When the sum of the delta phases reaches 360 degrees, we must have passed through one full cycle, on average.The process is repeated for each new sample.
The phase accumulation method of cycle measurement always uses one full cycleโs worth of historical data.This is both an advantage and a disadvantage.The advantage is the lag in obtaining the answer scales directly with the cycle period.That is, the measurement of a short cycle period has less lag than the measurement of a longer cycle period. However, the number of samples used in making the measurement means the averaging period is variable with cycle period. longer averaging reduces the noise level compared to the signal.Therefore, shorter cycle periods necessarily have a higher out- put signal-to-noise ratio.
Included
Bar coloring
Signals
Alerts
Loxx's Expanded Source Types
Divergences
[blackcat] L3 Banker Fund AttackLevel 3
Background
This indicator is used to capture the movement of the banker fund. The buying and selling point is determined according to whether the momentum of the banker fund and the price momentum resonate.
How to use the indicator:
The red column line indicates that the banker fund accumulation signal appears, and the following 2 conditions are all satisfied to buy; (both above the green line of the banker fund attack threshold)
1. The yellow line and the purple line all cross the red accumulation histogram signal;
2. The yellow and purple trend lines are up
Key point: If the yellow line crosses the green line of the banker fund attack threshold, it will be pulled up or the big market will open! The main thing is to see the red accumulation histogram signal, or the green line that crosses the banker fund attack threshold. If there is a red accumulation histogram signal, it means that there are main low-acquisition chips, and start trading on the left to open a position. The area above the green line of the banker fund attack threshold belongs to the main force pulling stage. When the green line of the banker fund attack threshold is not broken upwards, there is still a lot of profit space, but if it can be effectively broken through, it is highly profitable!
Remarks
This indicator only effective for instruments that contains banker fund. If there is no obvious large fund inside, the indicator is not as meaningful as it is called.
I verified it worked well for > 4H or 1D timeframe. For the other time frames, you may need to check and verify by yourself.
Feedbacks are appreciated.
PA-Adaptive Polynomial Regression Fitted Moving Average [Loxx]PA-Adaptive Polynomial Regression Fitted Moving Average is a moving average that is calculated using Polynomial Regression Analysis. The purpose of this indicator is to introduce polynomial fitting that is to be used in future indicators. This indicator also has Phase Accumulation adaptive period inputs. Even though this first indicator is for demonstration purposes only, its still one of the only viable implementations of Polynomial Regression Analysis on TradingView is suitable for trading, and while this same method can be used to project prices forward, I won't be doing that since forecasting is generally worthless and causes unavoidable repainting. This indicator only repaints on the current bar. Once the bar closes, any signal on that bar won't change.
For other similar Polynomial Regression Fitted methodologies, see here
Poly Cycle
What is the Phase Accumulation Cycle?
The phase accumulation method of computing the dominant cycle is perhaps the easiest to comprehend. In this technique, we measure the phase at each sample by taking the arctangent of the ratio of the quadrature component to the in-phase component. A delta phase is generated by taking the difference of the phase between successive samples. At each sample we can then look backwards, adding up the delta phases.When the sum of the delta phases reaches 360 degrees, we must have passed through one full cycle, on average.The process is repeated for each new sample.
The phase accumulation method of cycle measurement always uses one full cycleโs worth of historical data.This is both an advantage and a disadvantage.The advantage is the lag in obtaining the answer scales directly with the cycle period.That is, the measurement of a short cycle period has less lag than the measurement of a longer cycle period. However, the number of samples used in making the measurement means the averaging period is variable with cycle period. longer averaging reduces the noise level compared to the signal.Therefore, shorter cycle periods necessarily have a higher out- put signal-to-noise ratio.
What is Polynomial Regression?
In statistics, polynomial regression is a form of regression analysis in which the relationship between the independent variable x and the dependent variable y is modelled as an nth degree polynomial in x. Polynomial regression fits a nonlinear relationship between the value of x and the corresponding conditional mean of y, denoted E(y |x). Although polynomial regression fits a nonlinear model to the data, as a statistical estimation problem it is linear, in the sense that the regression function E(y | x) is linear in the unknown parameters that are estimated from the data. For this reason, polynomial regression is considered to be a special case of multiple linear regression.
Things to know
You can select from 33 source types
The source is smoothed before being injected into the Polynomial fitting algorithm, there are 35+ moving averages to choose from for smoothing
The output of the Polynomial fitting algorithm is then smoothed to create the signal, there are 35+ moving averages to choose from for smoothing
Included
Alerts
Signals
Bar coloring
PA-Adaptive TRIX Log [Loxx]PA-Adaptive TRIX Log is a Phase Accumulation Adaptive TRIX Log indicator. This adaptation smooths the signal to catch larger trends.
What is TRIX?
TRIX is a momentum oscillator that displays the percent rate of change of a TEMA . It was developed in the early 1980's by Jack Hutson, an editor for "Technical Analysis of Stocks and Commodities" magazine. With its triple smoothing, TRIX is designed to filter insignificant price movements. In his article he uses a logarithm of a price (which is in many versions, left out).
What is the Phase Accumulation Cycle?
The phase accumulation method of computing the dominant cycle is perhaps the easiest to comprehend. In this technique, we measure the phase at each sample by taking the arctangent of the ratio of the quadrature component to the in-phase component. A delta phase is generated by taking the difference of the phase between successive samples. At each sample we can then look backwards, adding up the delta phases.When the sum of the delta phases reaches 360 degrees, we must have passed through one full cycle, on average.The process is repeated for each new sample.
The phase accumulation method of cycle measurement always uses one full cycleโs worth of historical data.This is both an advantage and a disadvantage.The advantage is the lag in obtaining the answer scales directly with the cycle period.That is, the measurement of a short cycle period has less lag than the measurement of a longer cycle period. However, the number of samples used in making the measurement means the averaging period is variable with cycle period. longer averaging reduces the noise level compared to the signal.Therefore, shorter cycle periods necessarily have a higher out- put signal-to-noise ratio.
Included
Bar coloring
2 signal options
Alerts
Volume Indicators PackageCONTAINS 3 OF MY BEST VOLUME INDICATORS ALL FOR THE PRICE OF ONE!
CONTAINS:
Average Dollar Volume in RED
Up/Down Volume Ratio in Green
Volume Buzz/Volume Run Rate in BLUE
If you would like to get these individually, I also have scripts for that too.
Below is information about all three of these indicators, what they do, and why they are important.
---------------------------------------------------------------------------------------------AVERAGE DOLLAR VOLUME----------------------------------------------------------------------------------------
Dollar volume is simply the volume traded multiplied times the cost of the stock.
Dollar volume is an extremely important metric for finding stocks with enough liquidity for market makers to position themselves in. Market Liquidity is defined as market's feature whereby an individual or firm can quickly purchase or sell an asset without causing a drastic change in the asset's price. The key concept you want to understand is that these big instructions with billions of dollars need liquidity in a stock in order to even think about buying it, and therefore these institutions will demand a large dollar volume . A good dollar volume amount, that represents a pretty liquid name, is typically above 100 million $ average. Why are institutions important? Simple because they are the ones who make stocks move, and I mean really move. If you want to see large growth from a stock in a short amount of time, you need institutions wielding billions of dollars to be fighting one another to buy more shares. Institutions are the ones who make or break a stock, this is why we call them market makers.
My script calculates average dollar volume using four averages: the 50, the 30, the 20, and the 10 period. I use multiple averages in order to provide the accurate and up to date information to you. It then selects the minimum of these averages and divides this value by 1 million and displays this number to you.
TL;DR? If you want monster moves from your stocks, you need to pick names with average high liquidity(dollar volume >= $100 million). The number presented to you is in millions of whatever currency the name is traded in.
---------------------------------------------------------------------------------------------UP/DOWN VOLUME RATIO-----------------------------------------------------------------------------------------
Up/Down Volume Ratio is calculated by summing volume on days when it closes up and divide that total by the volume on days when the stock closed down.
High volume up days are typically a sign of accumulation(buying) by big players, while down days are signs of distribution(selling) by big market players. The Up Down volume ratio takes this assumption and turns it into a tangible number that's easier for the trader to understand. My formula is calculated using the past 50 periods, be warned it will not display a value for stocks with under 50 periods of trading history. This indicator is great for identify accumulation of growth stocks early on in their moves, most of the time you would like a growth stocks U/D value to be above 2, showing institutional sponsorship of a stock.
Up/Down Volume value interpretation:
U/D < 1 -> Bearish outlook, as sellers are in control
U/D = 1 -> Sellers and Buyers are equal
U/D > 1 -> Bullish outlook, as buyers are in control
U/D > 2 -> Bullish outlook, significant accumulation underway by market makers
U/D >= 3 -> MONSTER STOCK ALERT, market makers can not get enough of this stock and are ravenous to buy more
U/D values greater than 2 are rare and typically do not last very long, and U/D >= 3 are extremely rare one example I kind find of a stock's U/D peaking above 3 was Google back in 2005.
-----------------------------------------------------------------------------------------------------VOLUME BUZZ-----------------------------------------------------------------------------------------------
Volume Buzz/ Volume Run Rate as seen on TC2000 and MarketSmith respectively.
Basically, the volume buzz tells you what percentage over average(100 time period moving average) the volume traded was. You can use this indicator to more readily identify above-average trading volume and accumulation days on charts. The percentage will show up in the top left corner, make sure to click the settings button and uncheck the second box(left of plot) in order to get rid of the chart line.
Dynamic Money FlowDynamic Money Flow is a volume indicator based on Marc Chaikin's Money Flow with a few improvements.
It can be used to confirm break-outs and trends.
Zero line crosses and divergences can provide useful signals while considering chart analysis as well.
Two weaknesses of CMF have been already fixed by Colin Twiggs (IncredibleCharts)...
1.CMF uses Chaikin's accumulation/distribution line to calculate the flow of money.
Accumulation/distribution line does not take the gaps into account. This can be solved using true range.
I call it true accumulation/distribution.
2.Oscillators have a tendency to center because of averaging calculations.
DMF is average of flowing volume divided by average of total volume. This means indicator plots the change of first factor compared to the other one. In Simple Averaging method every data is given an equal weight thus when the last data drops it will have heavy impact on the averages and the change of them.
It is much easier to identity these impacts after the drop of very high or very low data... So reducing the weight exponentially is a better option.
3.There is something else with CMF... changes of close price is ignored, because the formula only compares close price to its range.
To include the movements of close beside the close to range comparison, the distance between two last close prices should be compared to true range as well.
So volume can be distributed between close to range comparison (True Accumulation/Distribution) and close to close comparison automatically. And then results are summed to have a single multiplier.
An example for how close to close comparison affects DMF...
Or here you can see how lower wicks keep TMF (same as CMF in this case) from crossing zero line while price is trending down.
Fractal Market Geometry [JOAT]
Fractal Market Geometry
Overview
Fractal Market Geometry is an open-source overlay indicator that combines fractal analysis with harmonic pattern detection, Fibonacci retracements and extensions, Elliott Wave concepts, and Wyckoff phase identification. It provides traders with a geometric framework for understanding market structure and identifying potential reversal patterns with multi-factor signal confirmation.
What This Indicator Does
The indicator calculates and displays:
Fractal Detection - Identifies fractal highs and lows using Williams-style pivot analysis with configurable period
Fractal Dimension - Calculates market complexity using range-based dimension estimation
Harmonic Patterns - Detects Gartley, Butterfly, Bat, Crab, Shark, Cypher, and ABCD patterns using Fibonacci ratios
Fibonacci Retracements - Key levels at 38.2%, 50%, and 61.8%
Fibonacci Extensions - Projection level at 161.8%
Elliott Wave Count - Simplified wave counting based on pivot detection (1-5)
Wyckoff Phase - Volume-based phase identification (Accumulation, Markup, Distribution, Neutral)
Golden Spiral Levels - ATR-based support and resistance levels using phi (1.618) ratio
Trend Detection - EMA crossover trend identification (20/50 EMA)
How It Works
Fractal detection uses a configurable period to identify swing points:
detectFractalHigh(simple int period) =>
bool result = true
float centerVal = high
for i = 0 to period - 1
if high >= centerVal or high >= centerVal
result := false
break
Harmonic pattern detection uses Fibonacci ratio analysis between swing points. Each pattern has specific ratio requirements:
Gartley: AB 0.382-0.618, BC 0.382-0.886, CD 1.27-1.618
Butterfly: AB 0.382-0.5, BC 0.382-0.886, CD 1.618-2.24
Bat: AB 0.5-0.618, BC 1.13-1.618, CD 1.618-2.24
Crab: AB 0.382-0.618, BC 0.382-0.886, CD 2.24-3.618
Shark: AB 0.382-0.618, BC 1.13-1.618, CD 1.618-2.24
Cypher: AB 0.382-0.618, BC 1.13-1.414, CD 0.786-0.886
Wyckoff phase detection analyzes volume relative to price movement:
wyckoffPhase(simple int period) =>
float avgVol = ta.sma(volume, period)
float priceChg = ta.change(close, period)
string phase = "NEUTRAL"
if volume > avgVol * 1.5 and math.abs(priceChg) < close * 0.02
phase := "ACCUMULATION"
else if volume > avgVol * 1.5 and math.abs(priceChg) > close * 0.05
phase := "MARKUP"
else if volume < avgVol * 0.7
phase := "DISTRIBUTION"
phase
Signal Generation
Signals use multi-factor confirmation for accuracy:
BUY Signal: Fractal low + Uptrend (EMA20 > EMA50) + RSI 30-55 + Bullish candle + Volume confirmation
SELL Signal: Fractal high + Downtrend (EMA20 < EMA50) + RSI 45-70 + Bearish candle + Volume confirmation
Pattern Detection: Label appears when harmonic pattern completes at current bar
Dashboard Panel (Top-Right)
Dimension - Fractal dimension value (market complexity measure)
Last High - Most recent fractal high price
Last Low - Most recent fractal low price
Pattern - Current harmonic pattern name or NONE
Elliott Wave - Current wave count (Wave 1-5) or OFF
Wyckoff - Current market phase or OFF
Trend - BULLISH, BEARISH, or NEUTRAL based on EMA crossover
Signal - BUY, SELL, or WAIT status
Visual Elements
Fractal Markers - Small triangles at fractal highs (down arrow) and lows (up arrow)
Geometry Lines - Dashed lines connecting the most recent fractal high and low
Fibonacci Levels - Clean horizontal lines at 38.2%, 50%, and 61.8% retracement levels
Fibonacci Extension - Horizontal line at 161.8% extension level
Golden Spiral Levels - Support and resistance lines based on ATR x 1.618
3D Fractal Field - Optional depth layers around swing levels (OFF by default)
Harmonic Pattern Markers - Small diamond shapes when Crab, Shark, or Cypher patterns detected
Pattern Labels - Text label showing pattern name when detected
Signal Labels - BUY/SELL labels on confirmed multi-factor signals
Input Parameters
Fractal Period (default: 5) - Bars on each side for fractal detection
Geometry Depth (default: 3) - Complexity of geometric calculations
Pattern Sensitivity (default: 0.8) - Tolerance for pattern ratio matching
Show Fibonacci Levels (default: true) - Display retracement levels
Show Fibonacci Extensions (default: true) - Display extension level
Elliott Wave Detection (default: true) - Enable wave counting
Wyckoff Analysis (default: true) - Enable phase detection
Golden Spiral Levels (default: true) - Display spiral support/resistance
Show Fractal Points (default: true) - Display fractal markers
Show Geometry Lines (default: true) - Display connecting lines
Show Pattern Labels (default: true) - Display pattern name labels
Show 3D Fractal Field (default: false) - Display depth layers
Show Harmonic Patterns (default: true) - Display pattern markers
Show Buy/Sell Signals (default: true) - Display signal labels
Suggested Use Cases
Identify potential reversal zones using harmonic pattern completion
Use Fibonacci levels for entry, stop-loss, and target planning
Monitor Wyckoff phases for accumulation/distribution awareness
Track Elliott Wave counts for trend structure analysis
Use fractal dimension to gauge market complexity
Wait for multi-factor signal confirmation before entering trades
Timeframe Recommendations
Best on 1H to Daily charts. Lower timeframes produce more fractals but with less significance. Higher timeframes provide stronger levels and more reliable signals.
Limitations
Harmonic pattern detection uses simplified ratio ranges and may not match all textbook definitions
Elliott Wave counting is basic and does not include all wave rules
Wyckoff phase detection is volume-based approximation
Fractal dimension calculation is simplified
Signals require fractal confirmation which has inherent lag equal to the fractal period
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management.
- Made with passion by officialjackofalltrades
Harmonic Liquidity Waves [JOAT]Harmonic Liquidity Waves
Overview
Harmonic Liquidity Waves is an open-source oscillator indicator that combines multiple volume-based analysis techniques into a unified liquidity flow framework. It integrates VWAP calculations, Chaikin Money Flow (CMF), Money Flow Index (MFI), and Klinger Volume Oscillator (KVO) with custom harmonic wave calculations to provide a comprehensive view of volume dynamics and money flow.
What This Indicator Does
The indicator calculates and displays:
Liquidity Flow - Volume-weighted price movement accumulated over a lookback period
Harmonic Wave - Multi-depth smoothed oscillator derived from liquidity flow
Chaikin Money Flow (CMF) - Classic accumulation/distribution indicator
Money Flow Index (MFI) - Volume-weighted RSI showing buying/selling pressure
Klinger Volume Oscillator (KVO) - Trend-volume relationship indicator
Wave Interference - Combined constructive/destructive wave patterns
Volume Profile POC - Point of Control from simplified volume distribution
How It Works
The core liquidity flow calculation tracks volume-weighted price changes:
calculateLiquidityFlow(series float vol, series float price, simple int period) =>
float priceChange = ta.change(price)
float volumeFlow = vol * math.sign(priceChange)
// Accumulated over period using buffer array
float avgFlow = flowSum / period
avgFlow
The harmonic oscillator applies multi-depth smoothing:
harmonicOscillator(series float flow, simple int depth, simple int period) =>
float harmonic = 0.0
for i = 1 to depth
float wave = ta.ema(flow, period * i) / i
harmonic += wave
harmonic / depth
CMF measures accumulation/distribution using the Money Flow Multiplier:
float mfm = ((close - low) - (high - close)) / (high - low)
float mfv = mfm * vol
float cmf = ta.sum(mfv, period) / ta.sum(vol, period) * 100
Signal Generation
Liquidity shift signals occur when:
Bullish Shift: Smoothed wave crosses above signal line
Bearish Shift: Smoothed wave crosses below signal line
Strong signals require volume indicator confirmation:
Strong Bull: Bullish shift + CMF > 0 + MFI > 50 + KVO > 0
Strong Bear: Bearish shift + CMF < 0 + MFI < 50 + KVO < 0
Divergence detection compares price pivots with liquidity wave pivots to identify potential reversals.
Dashboard Panel (Bottom-Right)
Wave Strength - Normalized wave magnitude
Volume Pressure - Current volume vs average percentage
Flow Direction - BUYING or SELLING based on wave sign
Histogram - Wave minus signal line value
CMF - Chaikin Money Flow reading
MFI - Money Flow Index value (0-100)
KVO - Klinger oscillator value
Vol Confluence - Combined volume indicator score
Signal - Current actionable status
Visual Elements
Liquidity Wave - Main oscillator line
Wave Signal - Smoothed signal line for crossover detection
Wave Histogram - Difference between wave and signal
Wave Interference - Area plot showing combined wave patterns
CMF/KVO/MFI Lines - Individual volume indicator plots
Divergence Labels - BULL DIV / BEAR DIV markers
Shift Markers - Triangles for basic shifts, labels for strong shifts
Input Parameters
Wave Period (default: 21) - Base period for liquidity calculations
Volume Weight (default: 1.5) - Multiplier for volume emphasis
Harmonic Depth (default: 3) - Number of smoothing layers
Smoothing (default: 3) - Final wave smoothing period
Suggested Use Cases
Identify accumulation/distribution phases using CMF and wave direction
Confirm momentum with MFI overbought/oversold readings
Watch for divergences between price and liquidity flow
Use strong signals when multiple volume indicators align
Timeframe Recommendations
Best on 15m to Daily charts. Volume-based indicators require sufficient trading activity for meaningful readings.
Limitations
Volume data quality varies by exchange and instrument
Divergence detection uses pivot-based lookback and may lag
Volume Profile POC is simplified and not a full profile analysis
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management.
- Made with passion by officialjackofalltrades
Ultimate MACD [captainua]Ultimate MACD - Comprehensive MACD Trading System
Overview
This indicator combines traditional MACD calculations with advanced features including divergence detection, volume analysis, histogram analysis tools, regression forecasting, strong top/bottom detection, and multi-timeframe confirmation to provide a comprehensive MACD-based trading system. The script calculates MACD using configurable moving average types (EMA, SMA, RMA, WMA) and applies various smoothing methods to reduce noise while maintaining responsiveness. The combination of these features creates a multi-layered confirmation system that reduces false signals by requiring alignment across multiple indicators and timeframes.
Core Calculations
MACD Calculation:
The script calculates MACD using the standard formula: MACD Line = Fast MA - Slow MA, Signal Line = Moving Average of MACD Line, Histogram = MACD Line - Signal Line. The default parameters are Fast=12, Slow=26, Signal=9, matching the traditional MACD settings. The script supports four moving average types:
- EMA (Exponential Moving Average): Standard and most responsive, default choice
- SMA (Simple Moving Average): Equal weight to all periods
- RMA (Wilder's Moving Average): Smoother, less responsive
- WMA (Weighted Moving Average): Recent prices weighted more heavily
The price source can be configured as Close (standard), Open, High, Low, HL2, HLC3, or OHLC4. Alternative sources provide different sensitivity characteristics for various trading strategies.
Configuration Presets:
The script includes trading style presets that automatically configure MACD parameters:
- Scalping: Fast/Responsive settings (8,18,6 with minimal smoothing)
- Day Trading: Balanced settings (10,22,7 with minimal smoothing)
- Swing Trading: Standard settings (12,26,9 with moderate smoothing)
- Position Trading: Smooth/Conservative settings (15,35,12 with higher smoothing)
- Custom: Full manual control over all parameters
Histogram Smoothing:
The histogram can be smoothed using EMA to reduce noise and filter minor fluctuations. Smoothing length of 1 = raw histogram (no smoothing), higher values (3-5) = smoother histogram. Increased smoothing reduces noise but may delay signals slightly.
Percentage Mode:
MACD values can be converted to percentage of price (MACD/Close*100) for cross-instrument comparison. This is useful when comparing MACD signals across instruments with different price levels (e.g., BTC vs ETH). The percentage mode normalizes MACD values, making them comparable regardless of instrument price.
MACD Scale Factor:
A scale factor multiplier (default 1.0) allows adjusting MACD display size for better visibility. Use 0.3-0.5 if MACD appears too compressed, or 2.0-3.0 if too small.
Dynamic Overbought/Oversold Levels:
Overbought and oversold levels are calculated dynamically based on MACD's mean and standard deviation over a lookback period. The formula: OB = MACD Mean + (StdDev ร OB Multiplier), OS = MACD Mean - (StdDev ร OS Multiplier). This adapts to current market conditions, widening in volatile markets and narrowing in calm markets. The lookback period (default 20) controls how quickly the levels adapt: longer periods (30-50) = more stable levels, shorter (10-15) = more responsive.
OB/OS Background Coloring:
Optional background coloring can highlight the entire panel when MACD enters overbought or oversold territory, providing prominent visual indication of extreme conditions. The background colors are drawn on top of the main background to ensure visibility.
Divergence Detection
Regular Divergence:
The script uses the MACD line (not histogram) for divergence detection, which provides more reliable signals. Bullish divergence: Price makes a lower low while MACD line makes a higher low. Bearish divergence: Price makes a higher high while MACD line makes a lower high. Divergences often precede reversals and are powerful reversal signals.
Pivot-Based Divergence:
The divergence detection uses actual pivot points (pivotlow/pivothigh) instead of simple lowest/highest comparisons. This provides more accurate divergence detection by identifying significant pivot lows/highs in both price and MACD line. The pivot-based method compares two recent pivot points: for bullish divergence, price makes a lower low while MACD makes a higher low at the pivot points. This method reduces false divergences by requiring actual pivot points rather than just any low/high within a period.
The pivot lookback parameters (left and right) control how many bars on each side of a pivot are required for confirmation. Higher values = more conservative pivot detection.
Hidden Divergence:
Continuation patterns that signal trend continuation rather than reversal. Bullish hidden divergence: Price makes a higher low but MACD makes a lower low. Bearish hidden divergence: Price makes a lower high but MACD makes a higher high. These patterns indicate the trend is likely to continue in the current direction.
Zero-Line Filter:
The "Don't Touch Zero Line" option ensures divergences occur in proper context: for bullish divergence, MACD must stay below zero; for bearish divergence, MACD must stay above zero. This filters out divergences that occur in neutral zones.
Range Filtering:
Minimum and maximum lookback ranges control the time window between pivots to consider for divergence. This helps filter out divergences that are too close together (noise) or too far apart (less relevant).
Volume Confirmation System
Volume threshold filtering requires current volume to exceed the volume SMA multiplied by the threshold factor. The formula: Volume Confirmed = Volume > (Volume SMA ร Threshold). If the threshold is set to 1.0 or lower, volume confirmation is effectively disabled (always returns true). This allows you to use the indicator without volume filtering if desired. Volume confirmation significantly increases divergence and signal reliability.
Volume Climax and Dry-Up Detection:
The script can mark bars with extremely high volume (volume climax) or extremely low volume (volume dry-up). Volume climax indicates potential reversal points or strong momentum continuation. Volume dry-up indicates low participation and may produce unreliable signals. These markers use standard deviation multipliers to identify extreme volume conditions.
Zero-Line Cross Detection
MACD zero-line crosses indicate momentum shifts: above zero = bullish momentum, below zero = bearish momentum. The script includes alert conditions for zero-line crosses with cooldown protection to prevent alert spam. Zero-line crosses can provide early warning signals before MACD crosses the signal line.
Histogram Analysis Tools
Histogram Moving Average:
A moving average applied to the histogram itself helps identify histogram trend direction and acts as a signal line for histogram movements. Supports EMA, SMA, RMA, and WMA types. Useful for identifying when histogram momentum is strengthening or weakening.
Histogram Bollinger Bands:
Bollinger Bands are applied to the MACD histogram instead of price. The calculation: Basis = SMA(Histogram, Period), StdDev = stdev(Histogram, Period), Upper = Basis + (StdDev ร Deviation Multiplier), Lower = Basis - (StdDev ร Deviation Multiplier). This creates dynamic zones around the histogram that adapt to histogram volatility. When the histogram touches or exceeds the bands, it indicates extreme conditions relative to recent histogram behavior.
Stochastic MACD (StochMACD):
Stochastic MACD applies the Stochastic oscillator formula to the MACD histogram instead of price. This normalizes the histogram to a 0-100 scale, making it easier to identify overbought/oversold conditions on the histogram itself. The calculation: %K = ((Histogram - Lowest Histogram) / (Highest Histogram - Lowest Histogram)) ร 100. %K is smoothed, and %D is calculated as the moving average of smoothed %K. Standard thresholds are 80 (overbought) and 20 (oversold).
Regression Forecasting
The script includes advanced regression forecasting that predicts future MACD values using mathematical models. This helps anticipate potential MACD movements and provides forward-looking context for trading decisions.
Regression Types:
- Linear: Simple trend line (y = mx + b) - fastest, works well for steady trends
- Polynomial: Quadratic curve (y = axยฒ + bx + c) - captures curvature in MACD movement
- Exponential Smoothing: Weighted average with more weight on recent values - responsive to recent changes
- Moving Average: Uses difference between short and long MA to estimate trend - stable and smooth
Forecast Horizon:
Number of bars to forecast ahead (default 5, max 50 for linear/MA, max 20 for polynomial due to performance). Longer horizons predict further ahead but may be less accurate.
Confidence Bands:
Optional upper/lower bands around forecast show prediction uncertainty based on forecast error (standard deviation of prediction vs actual). Wider bands = higher uncertainty. The confidence level multiplier (default 1.5) controls band width.
Forecast Display:
Forecast appears as dotted lines extending forward from current bar, with optional confidence bands. All forecast values respect percentage mode and scale factor settings.
Strong Top/Bottom Signals
The script detects strong recovery from extreme MACD levels, generating "sBottom" and "sTop" signals. These identify significant reversal potential when MACD recovers substantially from overbought/oversold extremes.
Strong Bottom (sBottom):
Triggered when:
1. MACD was at or near its lowest point in the bottom period (default 10 bars)
2. MACD was in or near the oversold zone
3. MACD has recovered by at least the threshold amount (default 0.5) from the lowest point
4. Recovery persists for confirmation bars (default 2 consecutive bars)
5. MACD has moved out of the oversold zone
6. Volume is above average
7. All enabled filters pass
8. Minimum bars have passed since last signal (reset period, default 5 bars)
Strong Top (sTop):
Triggered when:
1. MACD was at or near its highest point in the top period (default 7 bars)
2. MACD was in or near the overbought zone
3. MACD has declined by at least the threshold amount (default 0.5) from the highest point
4. Decline persists for confirmation bars (default 2 consecutive bars)
5. MACD has moved out of the overbought zone
6. Volume is above average
7. All enabled filters pass
8. Minimum bars have passed since last signal (reset period, default 5 bars)
Label Placement:
sTop/sBottom labels appear on the historical bar where the actual extreme occurred (not on current bar), showing the exact MACD value at that extreme. Labels respect the unified distance checking system to prevent overlaps with Buy/Sell Strength labels.
Signal Strength Calculation
The script calculates a composite signal strength score (0-100) based on multiple factors:
- MACD distance from signal line (0-50 points): Larger separation indicates stronger signal
- Volume confirmation (0-15 points): Volume above average adds points
- Secondary timeframe alignment (0-15 points): Higher timeframe agreement adds points
- Distance from zero line (0-20 points): Closer to zero can indicate stronger reversal potential
Higher scores (70+) indicate stronger, more reliable signals. The signal strength is displayed in the statistics table and can be used as a filter to only accept signals above a threshold.
Smart Label Placement System
The script includes an advanced label placement system that tracks MACD extremes and places Buy/Sell Strength labels at optimal locations:
Label Placement Algorithm:
- Labels appear on the current bar at confirmation (not on historical extreme bars), ensuring they're visible when the signal is confirmed
- The system tracks pending signals when MACD enters OB/OS zones or crosses the signal line
- During tracking, the system continuously searches for the true extreme (lowest MACD for buys, highest MACD for sells) within a configurable historical lookback period
- Labels are only finalized when: (1) MACD exits the OB/OS zone, (2) sufficient bars have passed (2x minimum distance), (3) MACD has recovered/declined by a configurable percentage from the extreme (default 15%), and (4) tracking has stopped (no better extreme found)
Label Spacing and Overlap Prevention:
- Minimum Bars Between Labels: Base distance requirement (default 5 bars)
- Label Spacing Multiplier: Scales the base distance (default 1.5x) for better distribution. Higher values = more spacing between labels
- Effective distance = Base Distance ร Spacing Multiplier (e.g., 5 ร 1.5 = 7.5 bars minimum)
- Unified distance checking prevents overlaps between all label types (Buy Strength, Sell Strength, sTop, sBottom)
Strength-Based Filtering:
- Label Strength Minimum (%): Only labels with strength at or above this threshold are displayed (default 75%)
- When multiple potential labels are close together, the system automatically compares strengths and keeps only the strongest one
- This ensures only the most significant signals are displayed, reducing chart clutter
Zero Line Polarity Enforcement:
- Enforce Zero Line Polarity (default enabled): Ensures labels follow traditional MACD interpretation
- Buy Strength labels only appear when the tracked extreme MACD value was below zero (negative territory)
- Sell Strength labels only appear when the tracked extreme MACD value was above zero (positive territory)
- This prevents counter-intuitive labels (e.g., Buy labels above zero line) and aligns with standard MACD trading principles
Recovery/Decline Confirmation:
- Recovery/Decline Confirm (%): Percent move away from the extreme required before finalizing (default 15%)
- For Buy labels: MACD must recover by at least this percentage from the tracked bottom
- For Sell labels: MACD must decline by at least this percentage from the tracked top
- Higher values = more confirmation required, fewer but more reliable labels
Historical Lookback:
- Historical Lookback for Label Placement: Number of bars to search for true extremes (default 20)
- The system searches within this period to find the actual lowest/highest MACD value
- Higher values analyze more history but may be slower; lower values are faster but may miss some extremes
Cross Quality Score
The script calculates a MACD cross quality score (0-100) that rates crossover quality based on:
- Cross angle (0-50 points): Steeper crosses = stronger signals
- Volume confirmation (0-25 points): Volume above average adds points
- Distance from zero line (0-25 points): Crosses near zero line are stronger
This score helps identify high-quality crossovers and can be used as a filter to only accept signals meeting minimum quality threshold.
Filtering System
Histogram Filter:
Requires histogram to be above zero for buy signals, below zero for sell signals. Ensures momentum alignment before generating signals.
Signal Strength Filter:
Requires minimum signal strength score for signals. Higher threshold = only strongest signals pass. This combines multiple confirmation factors into a single filter.
Cross Quality Filter:
Requires minimum cross quality score for signals. Rates crossover quality based on angle, volume, momentum, and distance from zero. Only signals meeting minimum quality threshold will be generated.
All filters use the pattern: filterResult = not filterEnabled OR conditionMet. This means if a filter is disabled, it always passes (returns true). Filters can be combined, and all must pass for a signal to fire.
Multi-Timeframe Analysis
The script can display MACD from a secondary (higher) timeframe and use it for confirmation. When secondary timeframe confirmation is enabled, signals require the higher timeframe MACD to align (bullish/bearish) with the signal direction. This ensures signals align with the larger trend context, reducing counter-trend trades.
Secondary Timeframe MACD:
The secondary timeframe MACD uses the same calculation parameters (fast, slow, signal, MA type) as the main MACD but from a higher timeframe. This provides context for the current timeframe's MACD position relative to the larger trend. The secondary MACD lines are displayed on the chart when enabled.
Noise Filtering
Noise filtering hides small histogram movements below a threshold. This helps focus on significant moves and reduces chart clutter. When enabled, only histogram movements above the threshold are displayed. Typical threshold values are 0.1-0.5 for most instruments, depending on the instrument's price range and volatility.
Signal Debounce
Signal debounce prevents duplicate MACD cross signals within a short time period. Useful when MACD crosses back and forth quickly, creating multiple signals. Debounce ensures only one signal per period, reducing signal spam during choppy markets. This is separate from alert cooldown, which applies to all alert types.
Background Color Modes
The script offers three background color modes:
- Dynamic: Full MACD heatmap based on OB/OS conditions, confidence, and momentum. Provides rich visual feedback.
- Monotone: Soft neutral background but still allows overlays (OB/OS zones). Keeps the chart clean without overpowering candles.
- Off: No MACD background (only overlays and plots). Maximum chart cleanliness.
When OB/OS background colors are enabled, they are drawn on top of the main background to ensure visibility.
Statistics Table
A real-time statistics table displays current MACD values, signal strength, distance from zero line, secondary timeframe alignment, volume confirmation status, and all active filter statuses. The table dynamically adjusts to show only enabled features, keeping it clean and relevant. The table position can be configured (Top Left, Top Right, Bottom Left, Bottom Right).
Performance Statistics Table
An optional performance statistics table shows comprehensive filter diagnostics:
- Total buy/sell signals (raw crossover count before filters)
- Filtered buy/sell signals (signals that passed all filters)
- Overall pass rates (percentage of signals that passed filters)
- Rejected signals count
- Filter-by-filter rejection diagnostics showing which filters rejected how many signals
This table helps optimize filter settings by showing which filters are most restrictive and how they impact signal frequency. The diagnostics format shows rejections as "X B / Y S" (X buy signals rejected, Y sell signals rejected) or "Disabled" if the filter is not active.
Alert System
The script includes separate alert conditions for each signal type:
- MACD Cross: MACD line crosses above/below Signal line (with or without secondary confirmation)
- Zero-Line Cross: MACD crosses above/below zero
- Divergence: Regular and hidden divergence detections
- Secondary Timeframe: Higher timeframe MACD crosses
- Histogram MA Cross: Histogram crosses above/below its moving average
- Histogram Zero Cross: Histogram crosses above/below zero
- StochMACD: StochMACD overbought/oversold entries and %K/%D crosses
- Histogram BB: Histogram touches/breaks Bollinger Bands
- Volume Events: Volume climax and dry-up detections
- OB/OS: MACD entry/exit from overbought/oversold zones
- Strong Top/Bottom: sTop and sBottom signal detections
Each alert type has its own cooldown system to prevent alert spam. The cooldown requires a minimum number of bars between alerts of the same type, reducing duplicate alerts during volatile periods. Alert types can be filtered to only evaluate specific alert types (All, MACD Cross, Zero Line, Divergence, Secondary Timeframe, Histogram MA, Histogram Zero, StochMACD, Histogram BB, Volume Events, OB/OS, Strong Top/Bottom).
How Components Work Together
MACD crossovers provide the primary signal when the MACD line crosses the Signal line. Zero-line crosses indicate momentum shifts and can provide early warning signals. Divergences identify potential reversals before they occur.
Volume confirmation ensures signals occur with sufficient market participation, filtering out low-volume false breakouts. Histogram analysis tools (MA, Bollinger Bands, StochMACD) provide additional context for signal reliability and identify significant histogram zones.
Signal strength combines multiple confirmation factors into a single score, making it easy to filter for only the strongest signals. Cross quality score rates crossover quality to identify high-quality setups. Multi-timeframe confirmation ensures signals align with higher timeframe trends, reducing counter-trend trades.
Usage Instructions
Getting Started:
The default configuration shows MACD(12,26,9) with standard EMA calculations. Start with default settings and observe behavior, then customize settings to match your trading style. You can use configuration presets for quick setup based on your trading style.
Customizing MACD Parameters:
Adjust Fast Length (default 12), Slow Length (default 26), and Signal Length (default 9) based on your trading timeframe. Shorter periods (8,17,7) for faster signals, longer (15,30,12) for smoother signals. You can change the moving average type: EMA for responsiveness, RMA for smoothness, WMA for recent price emphasis.
Price Source Selection:
Choose Close (standard), or alternative sources (HL2, HLC3, OHLC4) for different sensitivity. HL2 uses the midpoint of the high-low range, HLC3 and OHLC4 incorporate more price information.
Histogram Smoothing:
Set smoothing to 1 for raw histogram (no smoothing), or increase (3-5) for smoother histogram that reduces noise. Higher smoothing reduces false signals but may delay signals slightly.
Percentage Mode:
Enable percentage mode when comparing MACD across instruments with different price levels. This normalizes MACD values, making them directly comparable.
Dynamic OB/OS Levels:
The dynamic thresholds automatically adapt to volatility. Adjust the multipliers (default 1.5) to fine-tune sensitivity: higher values (2.0-3.0) = more extreme thresholds (fewer signals), lower (1.0-1.5) = more frequent signals. Adjust the lookback period to control how quickly levels adapt. Enable OB/OS background colors for visual indication of extreme conditions.
Volume Confirmation:
Set volume threshold to 1.0 (default, effectively disabled) or higher (1.2-1.5) for standard confirmation. Higher values require more volume for confirmation. Set to 0.1 to completely disable volume filtering.
Filters:
Enable filters gradually to find your preferred balance. Start with histogram filter for basic momentum alignment, then add signal strength filter (threshold 50+) for moderate signals, then cross quality filter (threshold 50+) for high-quality crossovers. Combine filters for highest-quality signals but expect fewer signals.
Divergence:
Enable divergence detection and adjust pivot lookback parameters. Pivot-based divergence provides more accurate detection using actual pivot points. Hidden divergence is useful for trend-following strategies. Adjust range parameters to filter divergences by time window.
Zero-Line Crosses:
Zero-line cross alerts are automatically available when alerts are enabled. These provide early warning signals for momentum shifts.
Histogram Analysis Tools:
Enable Histogram Moving Average to see histogram trend direction. Enable Histogram Bollinger Bands to identify extreme histogram zones. Enable Stochastic MACD to normalize histogram to 0-100 scale for overbought/oversold identification.
Multi-Timeframe:
Enable secondary timeframe MACD to see higher timeframe context. Enable secondary confirmation to require higher timeframe alignment for signals.
Signal Strength:
Signal strength is automatically calculated and displayed in the statistics table. Use signal strength filter to only accept signals above a threshold (e.g., 50 for moderate, 70+ for strong signals only).
Smart Label Placement:
Configure label placement settings to control label appearance and quality:
- Label Strength Minimum (%): Set threshold (default 75%) to show only strong signals. Higher = fewer, stronger labels
- Label Spacing Multiplier: Adjust spacing (default 1.5x) for better distribution. Higher = more spacing between labels
- Recovery/Decline Confirm (%): Set confirmation requirement (default 15%). Higher = more confirmation, fewer labels
- Enforce Zero Line Polarity: Enable (default) to ensure Buy labels only appear when tracked extreme was below zero, Sell labels only when above zero
- Historical Lookback: Adjust search period (default 20 bars) for finding true extremes. Higher = more history analyzed
Cross Quality:
Cross quality score is automatically calculated for crossovers. Use cross quality filter to only accept high-quality crossovers (threshold 50+ for moderate, 70+ for high quality).
Alerts:
Set up alerts for your preferred signal types. Enable alert cooldown (default enabled, 5 bars) to prevent alert spam. Use alert type filter to only evaluate specific alert types (All, MACD Cross, Zero Line, Divergence, Secondary Timeframe, Histogram MA, Histogram Zero, StochMACD, Histogram BB, Volume Events, OB/OS, Strong Top/Bottom). Each signal type has its own alert condition, so you can be selective about which signals trigger alerts.
Visual Elements and Signal Markers
The script uses various visual markers to indicate signals and conditions:
- MACD Line: Green when above signal (bullish), red when below (bearish) if dynamic colors enabled. Optional black outline for enhanced visibility
- Signal Line: Orange line with optional black outline for enhanced visibility
- Histogram: Color-coded based on direction and momentum (green for bullish rising, lime for bullish falling, red for bearish falling, orange for bearish rising)
- Zero Line: Horizontal reference line at MACD = 0
- Fill to Zero: Green/red semi-transparent fill between MACD line and zero line showing bullish/bearish territory
- Fill Between OB/OS: Blue semi-transparent fill between overbought/oversold thresholds highlighting neutral zone
- OB/OS Background Colors: Background coloring when MACD enters overbought/oversold zones
- Background Colors: Dynamic or monotone backgrounds indicating MACD state, or custom chart background
- Divergence Labels: "๐" for bullish, "๐ป" for bearish, "H Bull" for hidden bullish, "H Bear" for hidden bearish
- Divergence Lines: Colored lines connecting pivot points when divergences are detected
- Volume Climax Markers: โก symbol for extremely high volume
- Volume Dry-Up Markers: ๐ง symbol for extremely low volume
- Buy/Sell Strength Labels: Show signal strength percentage (e.g., "Buy Strength: 75%")
- Strong Top/Bottom Labels: "sTop" and "sBottom" for extreme level recoveries
- Secondary MACD Lines: Purple lines showing higher timeframe MACD
- Histogram MA: Orange line showing histogram moving average
- Histogram BB: Blue bands around histogram showing extreme zones
- StochMACD Lines: %K and %D lines with overbought/oversold thresholds
- Regression Forecast: Dotted blue lines extending forward with optional confidence bands
Signal Priority and Interpretation
Signals are generated independently and can occur simultaneously. Higher-priority signals generally indicate stronger setups:
1. MACD Cross with Multiple Filters - Highest priority: Requires MACD crossover plus all enabled filters (histogram, signal strength, cross quality) and secondary timeframe confirmation if enabled. These are the most reliable signals.
2. Zero-Line Cross - High priority: Indicates momentum shift. Can provide early warning signals before MACD crosses the signal line.
3. Divergence Signals - Medium-High priority: Pivot-based divergence is more reliable than simple divergence. Hidden divergence indicates continuation rather than reversal.
4. MACD Cross with Basic Filters - Medium priority: MACD crosses signal line with basic histogram filter. Less reliable alone but useful when combined with other confirmations.
Best practice: Wait for multiple confirmations. For example, a MACD crossover combined with divergence, volume confirmation, and secondary timeframe alignment provides the strongest setup.
Chart Requirements
For proper script functionality and compliance with TradingView requirements, ensure your chart displays:
- Symbol name: The trading pair or instrument name should be visible
- Timeframe: The chart timeframe should be clearly displayed
- Script name: "Ultimate MACD " should be visible in the indicator title
These elements help traders understand what they're viewing and ensure proper script identification. The script automatically includes this information in the indicator title and chart labels.
Performance Considerations
The script is optimized for performance:
- Calculations use efficient Pine Script functions (ta.ema, ta.sma, etc.) which are optimized by TradingView
- Conditional execution: Features only calculate when enabled
- Label management: Old labels are automatically deleted to prevent accumulation
- Array management: Divergence label arrays are limited to prevent memory accumulation
The script should perform well on all timeframes. On very long historical data with many enabled features, performance may be slightly slower, but it remains usable.
Known Limitations and Considerations
- Dynamic OB/OS levels can vary significantly based on recent MACD volatility. In very volatile markets, levels may be wider; in calm markets, they may be narrower.
- Volume confirmation requires sufficient historical volume data. On new instruments or very short timeframes, volume calculations may be less reliable.
- Higher timeframe MACD uses request.security() which may have slight delays on some data feeds.
- Stochastic MACD requires the histogram to have sufficient history. Very short periods on new charts may produce less reliable StochMACD values initially.
- Divergence detection requires sufficient historical data to identify pivot points. Very short lookback periods may produce false positives.
Practical Use Cases
The indicator can be configured for different trading styles and timeframes:
Swing Trading:
Use MACD(12,26,9) with secondary timeframe confirmation. Enable divergence detection. Use signal strength filter (threshold 50+) and cross quality filter (threshold 50+) for higher-quality signals. Enable histogram analysis tools for additional context.
Day Trading:
Use MACD(8,17,7) or use "Day Trading" preset with minimal histogram smoothing for faster signals. Enable zero-line cross alerts for early signals. Use volume confirmation with threshold 1.2-1.5. Enable histogram MA for momentum tracking.
Trend Following:
Use MACD(12,26,9) or longer periods (15,30,12) for smoother signals. Enable secondary timeframe confirmation for trend alignment. Hidden divergence signals are useful for trend continuation entries. Use cross quality filter to identify high-quality crossovers.
Reversal Trading:
Focus on divergence detection (pivot-based for accuracy) combined with zero-line crosses. Enable volume confirmation. Use histogram Bollinger Bands to identify extreme histogram zones. Enable StochMACD for overbought/oversold identification.
Multi-Timeframe Analysis:
Enable secondary timeframe MACD to see context from larger timeframes. For example, use daily MACD on hourly charts to understand the larger trend context. Enable secondary confirmation to require higher timeframe alignment for signals.
Practical Tips and Best Practices
Getting Started:
Start with default settings and observe MACD behavior. The default configuration (MACD 12,26,9 with EMA) is balanced and works well across different markets. After observing behavior, customize settings to match your trading style. Consider using configuration presets for quick setup.
Reducing Repainting:
All signals are based on confirmed bars, minimizing repainting. The script uses confirmed bar data for all calculations to ensure backtesting accuracy.
Signal Quality:
MACD crosses with multiple filters provide the highest-quality signals because they require alignment across multiple indicators. These signals have lower frequency but higher reliability. Use signal strength scores to identify the strongest signals (70+). Use cross quality scores to identify high-quality crossovers (70+).
Filter Combinations:
Start with histogram filter for basic momentum alignment, then add signal strength filter for moderate signals, then cross quality filter for high-quality crossovers. Combining all filters significantly reduces false signals but also reduces signal frequency. Find your balance based on your risk tolerance.
Volume Filtering:
Set volume threshold to 1.0 (default, effectively disabled) or lower to effectively disable volume filtering if you trade instruments with unreliable volume data or want to test without volume confirmation. Standard confirmation uses 1.2-1.5 threshold.
MACD Period Selection:
Standard MACD(12,26,9) provides balanced signals suitable for most trading. Shorter periods (8,17,7) for faster signals, longer (15,30,12) for smoother signals. Adjust based on your timeframe and trading style. Consider using configuration presets for optimized settings.
Moving Average Type:
EMA provides balanced responsiveness with smoothness. RMA is smoother and less responsive. WMA gives more weight to recent prices. SMA gives equal weight to all periods. Choose based on your preference for responsiveness vs. smoothness.
Divergence:
Pivot-based divergence is more reliable than simple divergence because it uses actual pivot points. Hidden divergence indicates continuation rather than reversal, useful for trend-following strategies. Adjust pivot lookback parameters to control sensitivity.
Dynamic Thresholds:
Dynamic OB/OS thresholds automatically adapt to volatility. In volatile markets, thresholds widen; in calm markets, they narrow. Adjust the multipliers to fine-tune sensitivity. Enable OB/OS background colors for visual indication.
Zero-Line Crosses:
Zero-line crosses indicate momentum shifts and can provide early warning signals before MACD crosses the signal line. Enable alerts for zero-line crosses to catch these early signals.
Alert Management:
Enable alert cooldown (default enabled, 5 bars) to prevent alert spam. Use alert type filter to only evaluate specific alert types. Signal debounce (default enabled, 3 bars) prevents duplicate MACD cross signals during choppy markets.
Technical Specifications
- Pine Script Version: v6
- Indicator Type: Non-overlay (displays in separate panel below price chart)
- Repainting Behavior: Minimal - all signals are based on confirmed bars, ensuring accurate backtesting results
- Performance: Optimized with conditional execution. Features only calculate when enabled.
- Compatibility: Works on all timeframes (1 minute to 1 month) and all instruments (stocks, forex, crypto, futures, etc.)
- Edge Case Handling: All calculations include safety checks for division by zero, NA values, and boundary conditions. Alert cooldowns and signal debounce handle edge cases where conditions never occurred or values are NA.
Technical Notes
- All MACD values respect percentage mode conversion when enabled
- Volume confirmation uses cached volume SMA for performance
- Label arrays (divergence) are automatically limited to prevent memory accumulation
- Background coloring: OB/OS backgrounds are drawn on top of main background to ensure visibility
- All calculations are optimized with conditional execution - features only calculate when enabled (performance optimization)
- Signal strength calculation combines multiple factors into a single score for easy filtering
- Cross quality calculation rates crossover quality based on angle, volume, and distance from zero
- Secondary timeframe MACD uses request.security() for higher timeframe data access
- Histogram analysis features (Bollinger Bands, MA, StochMACD) provide additional context beyond basic MACD signals
- Statistics table dynamically adjusts to show only enabled features, keeping it clean and relevant
- Divergence detection uses MACD line (not histogram) for more reliable signals
- Configuration presets automatically optimize MACD parameters for different trading styles
- Smart label placement: Labels appear on current bar at confirmation, using strength from tracked extreme point
- Label spacing uses effective distance (base distance ร spacing multiplier) for better distribution
- Zero line polarity enforcement ensures Buy labels only appear when tracked extreme MACD < 0, Sell labels only when tracked extreme MACD > 0
- Label finalization requires MACD exit from OB/OS zone, sufficient bars passed, and recovery/decline percentage confirmation
- Strength-based filtering automatically compares and keeps only the strongest label when multiple signals are close together
- Enhanced visualization: Line outlines drawn behind main lines for superior visibility (black default, configurable)
- Enhanced visualization: Fill between MACD and zero line provides instant visual feedback (green above, red below)
- Enhanced visualization: Fill between OB/OS thresholds highlights neutral zone when dynamic levels are active
- Custom chart background overrides background mode when enabled, allowing theme-consistent indicator panels
CandelaCharts - Composite Pressure Index ๐ Overview
The CandelaCharts โ Composite Pressure Index (CPI) is a multi-factor oscillator that blends RSI , Money Flow Index (MFI) , and Chaikin Money Flow (CMF) into a single, stretchable โpressureโ line. Instead of looking at three separate indicators, CPI compresses price momentum and volume flow into one normalized curve around 0 , then amplifies extremes using a rolling z-score .
The result is a dynamic gauge of buying vs. selling pressure that can travel beyond ยฑ1 during strong regime shifts, helping you spot exhaustion, climaxes, and trend-strength phases more intuitively.
๐ฆ Features
Composite pressure engine โ Combines RSI, MFI, and CMF into a single normalized oscillator around 0, giving you a unified view of market pressure.
Custom weighting of components โ Independently weight RSI, MFI, and CMF to prioritize pure price momentum or volume-driven signals.
Rolling z-score stretch โ Uses a configurable z-score window to โstretchโ the composite values, letting the line exceed ยฑ1 during extremes instead of staying capped.
Adaptive amplitude control โ An amplitude (gain) factor lets you scale how aggressive or subtle the CPI swings appear.
EMA smoothing โ Optional smoothing removes noise while preserving the timing of swings and reversals.
Visual pressure band โ Zero, +1, and -1 reference lines with a shaded band make it easy to see when pressure is โnormalโ vs. extended.
Dynamic color gradients โ Warm/orange tones above 0 for bullish pressure and cool/blue tones below 0 for bearish pressure, with saturation increasing as pressure intensifies.
NA-safe statistics โ Custom mean and standard deviation routines ensure stable behavior from the start of the chart and during partial history.
โ๏ธ Settings
RSI Length : Lookback length for RSI . Higher values smooth the RSI component; lower values make it more reactive to short-term price momentum.
MFI Length : Lookback length for the manual Money Flow Index . Adjust this to control how sensitive CPI is to priceโvolume interaction.
CMF Length : Lookback length for Chaikin Money Flow . This defines the window used to assess accumulation/distribution through volume flow.
RSI Weight : Relative importance of RSI within the composite. Increasing this emphasizes pure price momentum in the CPI.
MFI Weight : Relative importance of MFI. Higher values strengthen the influence of volume-weighted price moves.
CMF Weight : Relative importance of CMF. Raising this highlights accumulation/distribution as a driver of the pressure index.
Smoothing : EMA length applied to the stretched CPI line. A value of 1 effectively disables smoothing, while higher values reduce noise at the cost of a slight lag.
Z-score Window : Rolling window used to compute the mean and standard deviation of the raw composite. This defines the statistical context for what counts as โextremeโ. Shorter windows adapt faster; longer windows give a more stable regime.
Amplitude : Gain factor applied to the z-scored composite. Values above 1.0 exaggerate swings and make extremes more visually pronounced; values below 1.0 compress them.
โก๏ธ Showcase
Composite Pressure Index
Mean Line
Divergences
๐ Usage
1. Identify directional pressure regimes
Use 0 as the key balance line:
CPI > 0 โ Net bullish pressure (buyers in control).
CPI < 0 โ Net bearish pressure (sellers in control).
You can treat prolonged stays above or below 0 as confirmations of trend direction, especially when price structure agrees.
2. Read statistical extremes instead of fixed levels
Because CPI is stretched via a z-score , values beyond ยฑ1 typically represent statistically meaningful extremes within your chosen window:
CPI > +1 โ Overextended bullish pressure / potential euphoria.
CPI < -1 โ Overextended bearish pressure / potential capitulation.
These zones are not automatic reversal signals, but they highlight areas where monitoring for exhaustion, blow-offs, or risk-reward shifts can be beneficial.
3. Spot divergences with price
Classic divergence logic applies particularly well when pressure is composite:
Bearish divergence โ Price makes higher highs, but CPI makes lower highs or fails to confirm.
Bullish divergence โ Price makes lower lows, but CPI makes higher lows or shows less downside extension.
These patterns can be integrated with support/resistance, liquidity levels, and other CandelaCharts tools.
4. Tune the weights to your strategy
Adjust the three weights to match your focus:
Higher RSI weight โ More sensitivity to pure price momentum (good for breakout or trend-following systems).
Higher MFI weight โ Greater emphasis on priceโvolume interaction (ideal for spotting volume-confirmed moves).
Higher CMF weight โ Stronger focus on accumulation/distribution (helpful for swing and position traders).
5. Integrate with existing setups
The CPI is designed to sit comfortably below price:
Use it as a โcontextโ oscillator underneath your main price-action and liquidity models.
Combine CPI extremes and divergences with key levels, range models, or order flow signals for higher-confluence entries.
๐จ Alerts
The indicator does not provide any alerts!
โ ๏ธ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Buy / Sell Volume + % (Classic + Pressure)Buy / Sell Volume % (Classic + Pressure)
Overview
Buy / Sell Volume (Classic + Pressure) is a volume decomposition and dominance indicator designed to help traders understand how trading volume is distributed between buying and selling pressure on each candle.
Instead of treating volume as a single number, this indicator splits total volume into estimated Buy Volume and Sell Volume, visualizes them symmetrically, and summarizes dominance using a compact on-chart dashboard.
The indicator is intended as a context and confirmation tool, not a trade signal generator.
Core Concepts
1. Buy / Sell Volume Decomposition
The indicator estimates buying and selling activity based on the position of the close within the candleโs highโlow range:
Closes near the high โ more buying pressure
Closes near the low โ more selling pressure
Middle closes โ balanced activity
This provides a clear visual view of demand vs supply on every bar.
2. Dual Calculation Modes
๐น Classic Mode (Default)
Uses pure candle-range logic
Buy Volume + Sell Volume = Total Volume (exact conservation)
No smoothing or directional bias
Values closely match traditional volume behavior
Best for:
Structural analysis
Accumulation / distribution studies
Comparing against raw volume
๐น Pressure Mode
Introduces a directional bias:
Bullish candles slightly favor buy volume
Bearish candles slightly favor sell volume
Optional EMA smoothing reduces noise
Still volume-conserving (Buy + Sell = Total Volume)
Best for:
Identifying dominance
Trend continuation confirmation
Absorption vs initiative activity
Visual Elements
Volume Bars
Buy Volume plotted above zero
Sell Volume plotted below zero
Optional Total Volume Envelope for context
Color by Dominance
Bright colors when one side dominates
Faded colors when dominance is weak
Helps instantly identify:
Accumulation
Distribution
Absorption
Dashboard (Optional)
A compact dashboard displays:
Buy %
Sell %
Dominance State
BUY DOM
SELL DOM
BALANCED
The dashboard can be toggled ON/OFF and switched between Normal and Compact size to suit multi-pane layouts.
How to Use This Indicator
This indicator works best as a confirmation layer, not a standalone system.
Common Use Cases
Confirming breakouts or breakdowns
Spotting accumulation or distribution near key levels
Identifying absorption during consolidations
Filtering false price moves
Examples
Price rising + strong Buy % โ constructive demand
Price rising + strong Sell % โ possible distribution
Flat price + balanced volume โ absorption / compression
What This Indicator Is NOT
โ Not true order-flow or bid/ask data
โ Not a buy/sell signal generator
โ Not predictive on its own
All calculations are candle-based estimations, designed for context and insight, not execution timing.
Best Use
Works on all timeframes
Most reliable on liquid instruments
Especially useful when combined with:
Support / resistance
Trend structure
Market regime or breadth indicators
Summary
Buy / Sell Volume (Classic + Pressure) helps traders go beyond raw volume by visualizing who is in control of each candle, how strong that control is, and whether volume behavior supports price action.
Used correctly, it can significantly improve trade selectivity, confidence, and risk awareness.
Short-Term Bubble Risk [Phantom] Short-Term Bubble Risk
Concept
This indicator visualizes short-term market risk by measuring how far price is stretched relative to its recent weekly trend.
Instead of focusing on absolute price levels, it looks at price behavior.
A similar reading means similar market conditions, whether price is high or low.
The goal is to help identify areas of potential accumulation and potential distribution in a clear, visual way.
How It Works
The indicator compares the weekly closing price to a weekly moving average and displays the deviation as a histogram.
When price is far below its average, risk is considered lower
When price is far above its average, risk is considered higher
The zero line represents fair value, where price equals its weekly average.
Features
Color-coded histogram showing short-term risk levels
Designed to work across different assets and price ranges
Optional bar coloring on the main chart using weekly risk data
Safe to use on any timeframe (risk is calculated on weekly data)
Settings
# Moving Average Length (Weeks):
Adjusts how sensitive the indicator is to price changes
# Color Visibility Toggles:
Allows hiding or showing specific risk zones
# Bar Coloring:
Option to color chart candles based on weekly risk levels
Usage
This indicator is best used as a risk lens, not a timing tool.
Common uses include:
Identifying potential accumulation zones during weakness
Spotting overextended conditions during strong moves
Comparing short-term risk across different assets
Adding context to trend-following or DCA strategies
Trade Ideas
# Lower-risk zones (cool colors):
Can support accumulation or patience during downtrends
# Higher-risk zones (warm colors):
Can signal caution, reduced exposure, or profit-taking
Always combine with:
Trend direction
Market structure
Higher-timeframe context
Limitations
This indicator does not predict tops or bottoms
High risk can remain high during strong trends
Low risk does not guarantee immediate reversals
It should not be used as a standalone trading system.
Disclaimer
This indicator is for educational and informational purposes only.
It is not financial advice.
Always do your own research and manage risk appropriately.
ALT Risk Metric StrategyHere's a professional write-up for your ALT Risk Strategy script:
ALT/BTC Risk Strategy - Multi-Crypto DCA with Bitcoin Correlation Analysis
Overview
This strategy uses Bitcoin correlation as a risk indicator to time entries and exits for altcoins. By analyzing how your chosen altcoin performs relative to Bitcoin, the strategy identifies optimal accumulation periods (when alt/BTC is oversold) and profit-taking opportunities (when alt/BTC is overbought). Perfect for traders who want to outperform Bitcoin by strategically timing altcoin positions.
Key Innovation: Why Alt/BTC Matters
Most traders focus solely on USD price, but Alt/BTC ratios reveal true altcoin strength:
When Alt/BTC is low โ Altcoin is undervalued relative to Bitcoin (buy opportunity)
When Alt/BTC is high โ Altcoin has outperformed Bitcoin (take profits)
This approach captures the rotation between BTC and alts that drives crypto cycles
Key Features
๐ Advanced Technical Analysis
RSI (60% weight): Primary momentum indicator on weekly timeframe
Long-term MA Deviation (35% weight): Measures distance from 150-period baseline
MACD (5% weight): Minor confirmation signal
EMA Smoothing: Filters noise while maintaining responsiveness
All calculations performed on Alt/BTC pairs for superior market timing
๐ฐ 3-Tier DCA System
Level 1 (Risk โค 70): Conservative entry, base allocation
Level 2 (Risk โค 50): Increased allocation, strong opportunity
Level 3 (Risk โค 30): Maximum allocation, extreme undervaluation
Continuous buying: Executes every bar while below threshold for true DCA behavior
Cumulative sizing: L3 triggers = L1 + L2 + L3 amounts combined
๐ Smart Profit Management
Sequential selling: Must complete L1 before L2, L2 before L3
Percentage-based exits: Sell portions of position, not fixed amounts
Auto-reset on re-entry: New buy signals reset sell progression
Prevents premature full exits during volatile conditions
๐ค 3Commas Automation
Pre-configured JSON webhooks for Custom Signal Bots
Multi-exchange support: Binance, Coinbase, Kraken, Bitfinex, Bybit
Flexible quote currency: USD, USDT, or BUSD
Dynamic order sizing: Automatically adjusts to your tier thresholds
Full webhook documentation compliance
๐จ Multi-Asset Support
Pre-configured for popular altcoins:
ETH (Ethereum)
SOL (Solana)
ADA (Cardano)
LINK (Chainlink)
UNI (Uniswap)
XRP (Ripple)
DOGE
RENDER
Custom option for any other crypto
How It Works
Risk Metric Calculation (0-100 scale):
Fetches weekly Alt/BTC price data for stability
Calculates RSI, MACD, and deviation from 150-period MA
Normalizes MACD to 0-100 range using 500-bar lookback
Combines weighted components: (MACD ร 0.05) + (RSI ร 0.60) + (Deviation ร 0.35)
Applies 5-period EMA smoothing for cleaner signals
Color-Coded Risk Zones:
Green (0-30): Extreme buying opportunity - Alt heavily oversold vs BTC
Lime/Yellow (30-70): Accumulation range - favorable risk/reward
Orange (70-85): Caution zone - consider taking initial profits
Red/Maroon (85-100+): Euphoria zone - aggressive profit-taking
Entry Logic:
Buys execute every candle when risk is below threshold
As risk decreases, position sizing automatically scales up
Example: If risk drops from 60โ25, you'll be buying at L1 rate until it hits 50, then L2 rate, then L3 rate
Exit Logic:
Sells only trigger when in profit AND risk exceeds thresholds
Sequential execution ensures partial profit-taking
If new buy signal occurs before all sells complete, sell levels reset to L1
Configuration Guide
Choosing Your Altcoin:
Select crypto from dropdown (or use CUSTOM for unlisted coins)
Pick your exchange
Choose quote currency (USD, USDT, BUSD)
Risk Metric Tuning:
Long Term MA (default 150): Higher = more extreme signals, Lower = more frequent
RSI Length (default 10): Lower = more volatile, Higher = smoother
Smoothing (default 5): Increase for less noise, decrease for faster reaction
Buy Settings (Aggressive DCA Example):
L1 Threshold: 70 | Amount: $5
L2 Threshold: 50 | Amount: $6
L3 Threshold: 30 | Amount: $7
Total L3 buy = $18 per candle when deeply oversold
Sell Settings (Balanced Exit Example):
L1: 70 threshold, 25% position
L2: 85 threshold, 35% position
L3: 100 threshold, 40% position (final exit)
3Commas Setup
Bot Configuration:
Create Custom Signal Bot in 3Commas
Set trading pair to your altcoin/USD (e.g., ETH/USD, SOL/USDT)
Order size: Select "Send in webhook, quote" to use strategy's dollar amounts
Copy Bot UUID and Secret Token
Script Configuration:
Paste credentials into 3Commas section inputs
Check "Enable 3Commas Alerts"
Save and apply to chart
TradingView Alert:
Create Alert โ Condition: "alert() function calls only"
Webhook URL: api.3commas.io
Enable "Webhook URL" checkbox
Expiration: Open-ended
Strategy Advantages
โ
Outperform Bitcoin: Designed specifically to beat BTC by timing alt rotations
โ
Capture Alt Seasons: Automatically accumulates when alts lag, sells when they pump
โ
Risk-Adjusted Sizing: Buys more when cheaper (better risk/reward)
โ
Emotional Discipline: Systematic approach removes fear and FOMO
โ
Multi-Asset: Run same strategy across multiple altcoins simultaneously
โ
Proven Indicators: Combines RSI, MACD, and MA deviation - battle-tested tools
Backtesting Insights
Optimal Timeframes:
Daily chart: Best for backtesting and signal generation
Weekly data is fetched internally regardless of display timeframe
Historical Performance Characteristics:
Accumulates heavily during bear markets and BTC dominance periods
Captures explosive altcoin rallies when BTC stagnates
Sequential selling preserves capital during extended downtrends
Works best on established altcoins with multi-year history
Risk Considerations:
Requires capital reserves for extended accumulation periods
Some altcoins may never recover if fundamentals deteriorate
Past correlation patterns may not predict future performance
Always size positions according to personal risk tolerance
Visual Interface
Indicator Panel Displays:
Dynamic color line: GreenโLimeโYellowโOrangeโRed as risk increases
Horizontal threshold lines: Dashed lines mark your buy/sell levels
Entry/Exit labels: Green labels for buys, Orange/Red/Maroon for sells
Real-time risk value: Numerical display on price scale
Customization:
All threshold lines are adjustable via inputs
Color scheme clearly differentiates buy zones (green spectrum) from sell zones (red spectrum)
Line weights emphasize most extreme thresholds (L3 buy and L3 sell)
Strategy Philosophy
This strategy is built on the principle that altcoins move in cycles relative to Bitcoin. During Bitcoin rallies, alts often bleed against BTC (high sell, accumulate). When Bitcoin consolidates, alts pump (take profits). By measuring risk on the Alt/BTC chart instead of USD price, we time these rotations with precision.
The 3-tier system ensures you're always averaging in at better prices and scaling out at better prices, maximizing your Bitcoin-denominated returns.
Advanced Tips
Multi-Bot Strategy:
Run this on 5-10 different altcoins simultaneously to:
Diversify correlation risk
Capture whichever alt is pumping
Smooth equity curve through rotation
Pairing with BTC Strategy:
Use alongside the BTC DCA Risk Strategy for complete portfolio coverage:
BTC strategy for core holdings
ALT strategies for alpha generation
Rebalance between them based on BTC dominance
Threshold Calibration:
Check 2-3 years of historical data for your chosen alt
Note where risk metric sat during major bottoms (set buy thresholds)
Note where it peaked during euphoria (set sell thresholds)
Adjust for your risk tolerance and holding period
Credits
Strategy Development & 3Commas Integration: Claude AI (Anthropic)
Technical Analysis Framework: RSI, MACD, Moving Average theory
Implementation: pommesUNDwurst
Disclaimer
This strategy is for educational purposes only. Cryptocurrency trading involves substantial risk of loss. Altcoins are especially volatile and many fail completely. The strategy assumes liquid markets and reliable Alt/BTC price data. Always do your own research, understand the fundamentals of any asset you trade, and never risk more than you can afford to lose. Past performance does not guarantee future results. The authors are not financial advisors and assume no liability for trading decisions.
Additional Warning: Using leverage or trading illiquid altcoins amplifies risk significantly. This strategy is designed for spot trading of established cryptocurrencies with deep liquidity.
Tags: Altcoin, Alt/BTC, DCA, Risk Metric, Dollar Cost Averaging, 3Commas, ETH, SOL, Crypto Rotation, Bitcoin Correlation, Automated Trading, Alt Season
Feel free to modify any sections to better match your style or add specific backtesting results you've observed! ๐Claude is AI and can make mistakes. Please double-check responses. Sonnet 4.5
On Balance Volume [BrightSideTrading]
# On Balance Volume - Complete User Guide
## Overview
This enhanced OBV indicator provides clean, actionable volume analysis with intelligent signal filtering. It combines On-Balance Volume (OBV) with a smoothed signal line to identify shifts in buying and selling pressure without chart clutter.
**Key Features:**
- Real-time OBV and signal line visualization
- Smart crossover detection with confirmation filtering
- Z-Score momentum analysis
- Customizable signal alerts with V-shaped markers
- Window-normalized option for detrended analysis
---
## What is On-Balance Volume (OBV)?
OBV is a volume-based momentum indicator that accumulates volume on up days and subtracts volume on down days. It answers a fundamental question: **Is volume flowing in (buying) or out (selling)?**
**Formula:**
- If Close > Previous Close: OBV = Previous OBV + Volume
- If Close < Previous Close: OBV = Previous OBV - Volume
- If Close = Previous Close: OBV = Previous OBV (unchanged)
**What it tells you:**
- **Rising OBV** = Accumulation (smart money buying)
- **Falling OBV** = Distribution (smart money selling)
- **OBV above zero line** = Net positive buying pressure
- **OBV below zero line** = Net negative selling pressure
---
## Interface & Settings
### **MAIN VISUALIZATION**
**OBV Line (Green/Red Ribbon)**
- Green when OBV is above the signal line (bullish trend)
- Red when OBV is below the signal line (bearish trend)
- Toggles between window-normalized (detrended) and raw values
**Signal Line (Orange)**
- Smoothed average of OBV
- Crossovers with OBV generate buy/sell signals
- Default: 21-period SMA
**V-Shaped Markers**
- Green upward V = Bullish crossover (buy signal)
- Red downward V = Bearish crossover (sell signal)
- Appears at the OBV value when signal is triggered
**Zero Line (Yellow)**
- Center equilibrium point for volume balance
- Acts as support/resistance for OBV
- Separates buying pressure (above) from selling pressure (below)
---
### **SOURCE GROUP**
**Source**
- **Default:** Close
- **Options:** Open, High, Low, or any custom value
- Controls which price value triggers OBV direction changes
- Most traders use Close for standard OBV calculation
---
### **SIGNAL SMOOTHING GROUP**
**Show Signal?**
- **Default:** ON
- Toggle visibility of the signal line
- Disable if you prefer to see raw OBV only
**Smoothing Type**
- **SMA (Simple Moving Average)** - Default, standard smoothing
- **EMA (Exponential Moving Average)** - Faster response, weights recent bars more heavily
- **Choose SMA** for consistent, traditional OBV signals
- **Choose EMA** for faster trend identification (more whipsaws possible)
**Smoothing Length**
- **Default:** 21 bars
- **Range:** 1-200 bars
- **Lower values** (5-14): Faster signals, more noise
- **Higher values** (30-50): Slower signals, fewer false alarms
- **Recommendation:** Use 21-25 for most timeframes
---
### **SIGNAL FILTERING GROUP**
This is your primary control for signal quality and frequency.
**Show Signal Markers?**
- **Default:** ON
- Toggle the V-shaped buy/sell markers on/off
- Disable if markers distract from your analysis
**Signal Filter Type**
- **None** - Shows every single crossover (noisy, best for skilled traders)
- **Confirmation Bars** - Waits N bars before confirming signal (recommended)
- **Strength-Based** - Only signals during strong momentum (filters weakest moves)
#### **CONFIRMATION BARS MODE** (Recommended)
Best for reducing false signals while staying responsive to real moves.
**Confirmation Bars**
- **Default:** 2 bars
- **Range:** 1-10 bars
- Waits for the signal to hold for N consecutive bars after crossover
- **Setting 1:** Every crossover (same as "None")
- **Setting 2:** Wait 1 bar confirmation (good balance)
- **Setting 3:** Wait 2 bars confirmation (filters 50% of noise)
- **Setting 4+:** Very selective, misses quick reversals
**How it works:**
1. OBV crosses signal line โ Confirmation counter starts
2. If OBV stays on correct side for 2 bars โ V-marker appears
3. If OBV crosses back โ Counter resets, no signal
#### **STRENGTH-BASED MODE**
Only signals when momentum is statistically significant.
**Min Z-Score Strength**
- **Default:** 0.3
- **Range:** 0.0-3.0
- Requires OBV deviation from its mean to reach this threshold
- **Setting 0.1-0.3:** More signals, lower quality
- **Setting 0.5-0.8:** Moderate signals, good quality
- **Setting 1.0+:** Only the strongest momentum shifts
**How it works:**
- Calculates how far OBV is from its 50-bar average (Z-score)
- Only shows signals when this distance is meaningful
- Automatically avoids weak, choppy market conditions
---
### **VISUALS & COLORS GROUP**
**Highlight Crossovers?**
- **Default:** ON
- Master toggle for all signal markers
- Turn OFF to see only the OBV/signal lines
**Apply Ribbon Filling?**
- **Default:** ON
- Colors the space between OBV and signal line
- Green fill = OBV above signal (bullish)
- Red fill = OBV below signal (bearish)
- Provides clear visual trend confirmation
- Turn OFF for minimal chart clutter
---
### **STATS & ZONES GROUP**
**Use Window-Normalized OBV (visual only)?**
- **Default:** ON
- Removes long-term trend from OBV for clearer short-term signals
- Detrends the indicator to highlight recent momentum changes
- **ON:** Better for swing trading and identifying reversals
- **OFF:** Better for trend-following strategies
- Note: Z-Score always uses raw OBV for statistical accuracy
**OBV Normalize Window**
- **Default:** 200 bars
- Lookback period for detrending calculation
- Larger values = more aggressive detrending
- Adjust if you want OBV to oscillate more/less around zero
**Show Z-Score (OBV)?**
- **Default:** ON
- Displays statistical momentum indicator below main chart
- Ranges from -3 to +3 (most data within -2 to +2)
- High Z-Score = Strong buying momentum
- Low Z-Score = Strong selling momentum
**Z-Score Lookback**
- **Default:** 50 bars
- Period for calculating Z-Score mean and standard deviation
- Larger = smoother Z-Score, slower response
- Smaller = noisier Z-Score, faster response
**Show ROC (OBV Momentum)?**
- **Default:** OFF
- Rate of Change indicator for OBV velocity
- Useful for identifying momentum turning points
- Enable if you want to see speed of volume changes
**ROC Lookback**
- **Default:** 14 bars
- Period for ROC calculation
**Show Z-Score StdDev Zones?**
- **Default:** ON
- Shaded regions around zero line showing statistical boundaries
- Inner Zone (ยฑ1 Z) = Normal variation
- Outer Zone (ยฑ2 Z) = Extreme moves, potential reversals
- Helps identify overbought/oversold volume conditions
**Inner Zone (ยฑZ)**
- **Default:** 1.0
- First boundary for standard deviation zones
- Most normal trading occurs within ยฑ1
**Outer Zone (ยฑZ)**
- **Default:** 2.0
- Second boundary for extreme conditions
- Crossing these zones indicates significant momentum shift
---
## Trading Strategy Examples
### **Strategy 1: Signal Line Crossovers (Beginner)**
**Setup:**
- Signal Filter Type: **Confirmation Bars**
- Confirmation Bars: **2-3**
- Show Signal Markers: **ON**
**Rules:**
1. **BUY signal** (green V): When OBV crosses above signal line and holds for 2-3 bars
- Confirms buying pressure is building
- Look for price to follow within 1-3 bars
2. **SELL signal** (red V): When OBV crosses below signal line and holds for 2-3 bars
- Confirms selling pressure is increasing
- Expect price decline
3. **Exit:** Take profits at next signal or use price support/resistance
**Best For:** Swing trading, intraday reversals, timeframes 5m-1h
---
### **Strategy 2: Zero Line Bounce (Intermediate)**
**Setup:**
- Signal Filter Type: **Strength-Based**
- Min Z-Score Strength: **0.5**
- Show Z-Score StdDev Zones: **ON**
**Rules:**
1. **Watch OBV approach zero line** during established trends
- OBV bouncing repeatedly off zero = trend is healthy
- OBV breaking through zero = trend reversal imminent
2. **Enter on bounce:** Buy when OBV bounces from zero line in uptrend
3. **Exit on break:** Close position when OBV breaks below zero line
4. **Confirm with Z-Score:** Only take trades when Z-Score shows momentum (|Z| > 0.5)
**Best For:** Trend traders, identifying trend strength, medium timeframes 15m-4h
---
### **Strategy 3: Momentum Extremes (Advanced)**
**Setup:**
- Signal Filter Type: **None**
- Show Z-Score StdDev Zones: **ON**
- Outer Zone: **2.0**
**Rules:**
1. **Identify extremes:** When Z-Score breaks outer zone (ยฑ2.0)
- Indicator is in extreme territory
- Likely overextended
2. **Fade extremes:** Take opposite position when Z-Score hits extreme
- High Z (>2.0) = OBV overbought, expect pullback
- Low Z (<-2.0) = OBV oversold, expect bounce
3. **Confirm:** Wait for crossover signal to enter
4. **Target:** Outer zone of opposite side or zero line
**Best For:** Range trading, mean reversion, experienced traders only
---
## Reading the Indicator in Different Markets
### **Strong Uptrend**
- OBV consistently above signal line (green)
- OBV well above zero line, rising higher lows
- Z-Score positive, trending upward
- **Action:** Buy dips to signal line, sell at resistance
### **Strong Downtrend**
- OBV consistently below signal line (red)
- OBV well below zero line, making lower highs
- Z-Score negative, trending downward
- **Action:** Sell rallies to signal line, cover at support
### **Consolidation/Choppy Market**
- OBV whipsaws around signal line frequently
- Crossovers occur every few bars
- Z-Score oscillating between -1 and +1
- **Action:** Increase confirmation bars to 3-4, or switch to strength-based filter
### **Accumulation (Bottom Formation)**
- OBV rising while price is flat or falling
- Volume flowing in despite downtrend (bullish divergence)
- Z-Score climbing while price lows hold
- **Action:** Expect breakout up; prepare buy near support
### **Distribution (Top Formation)**
- OBV falling while price is flat or rising
- Volume flowing out despite uptrend (bearish divergence)
- Z-Score falling while price continues higher
- **Action:** Expect breakdown down; prepare short near resistance
---
## Parameter Tuning Guide
### **Aggressive Settings (More Signals)**
- Smoothing Length: 14
- Signal Filter: None or Confirmation Bars: 1
- Min Z-Score: 0.1
- Best for: Day trading, high volatility stocks
- Risk: More false signals
### **Balanced Settings (Recommended)**
- Smoothing Length: 21
- Signal Filter: Confirmation Bars: 2
- Min Z-Score: 0.3
- Best for: Swing trading, most market conditions
- Risk/Reward: Moderate
### **Conservative Settings (Fewer Signals)**
- Smoothing Length: 30-40
- Signal Filter: Confirmation Bars: 3-4 or Strength-Based: 0.7+
- Min Z-Score: 0.8
- Best for: Position trading, high-conviction trades only
- Risk: May miss some moves
---
## Common Questions & Troubleshooting
**Q: Why are there more sell signals than buy signals?**
A: This reflects the actual market action. Markets often decline faster than they rise (fear > greed). Confirm signals with price action and support/resistance.
**Q: The indicator keeps whipsawing, should I hide it?**
A: Increase Confirmation Bars to 3-4 or switch to Strength-Based filter. Market conditions matterโchoppy markets require stricter filters.
**Q: What's the difference between normalized and raw OBV?**
A: Normalized (detrended) shows shorter-term momentum by removing long-term trends. Raw OBV shows absolute accumulation/distribution over the full period. Use normalized for swing signals, raw for trend confirmation.
**Q: My signals come too late. How do I get faster entry?**
A: Reduce Smoothing Length (try 14 instead of 21), use EMA instead of SMA, or set Confirmation Bars to 1. Trade-off: More false signals.
**Q: Can I use this for day trading?**
A: Yes, on 1m-5m charts with aggressive settings. Use Confirmation Bars: 1 and focus on Z-Score > 0.5 entries only.
**Q: Should I trade every signal?**
A: No. Filter signals using: price near support/resistance, multiple indicators confirming, and Z-Score showing momentum. Best signals occur at key levels.
---
## Best Practices
1. **Always confirm with price action:** OBV signals work best when price is near support, resistance, or moving average. Don't trade signals in a vacuum.
2. **Use volume context:** Check if volume is increasing or decreasing on the signal. Strong signals have volume confirmation (increasing volume on OBV spikes).
3. **Adjust settings per timeframe:**
- 1m-5m: Smoothing 12, Confirmation 1, Z-Score 0.2
- 15m-1h: Smoothing 20, Confirmation 2, Z-Score 0.3
- 4h-1d: Smoothing 25, Confirmation 3, Z-Score 0.5
4. **Watch the zero line:** It's your friend. OBV behavior at the zero line reveals trend strength. Bounces = healthy trend. Breaks = reversal.
5. **Risk management:** No indicator is perfect. Use proper position sizing and stop losses. OBV should confirm your thesis, not be the only reason to trade.
6. **Combine with other indicators:**
- Price moving averages for trend confirmation
- RSI or Stochastic for overbought/oversold levels
- Support/resistance for entry/exit zones
- MACD for momentum divergences
---
## Disclaimer
This indicator is for educational and informational purposes only. It is not financial advice. Past performance does not guarantee future results. Always conduct your own research and consult with a financial advisor before making trading decisions. Trading carries risk, including potential loss of principal.
---
## Version History
**Version 1.0** - Initial release with enhanced signal filtering, Z-Score analysis, and customizable parameters.
BTC - VERI - Valuation & Entity Ratio IndexVERI: Valuation & Entity Ratio IndexObservation-only.
Data: IntoTheBlock.
Overview & Philosophy
The name VERI is derived from the Latin Veritas (Truth). In a crypto market often driven by deceptive speculative noise, this indicator seeks to establish the "On-Chain Truth" of a price trend.
It operates on the thesis that price action is only sustainable when verified by high-conviction capital flows.VERI is a fundamental composite oscillator that fuses Entity Behavior (Who is holding?) with Network Valuation (Is the price fair?) to identify Bitcoin market cycle extremes.
The "Alpha"
Why this Composite stands out: on-chain metrics often tell only half the story.
MVRV tells you if the price is cheap, but not if anyone is actually buying.
Whale Activity tells you if large players are moving, but not if they are accumulating at a value discount.
VERI fuses these two dimensions into a single Z-Score. It identifies the rare, high-probability moments where Smart Money Conviction intersects with Deep Value.
Methodology
The Mathematics of VERI: The indicator constructs a composite index using three fundamental metrics from IntoTheBlock:
The "Who" (Entity Ratio) : We calculate the flow ratio between Whales (>1% supply holders) and Retail (<0.1% supply holders). A rising ratio indicates supply is transferring from weak hands to strong hands.
The "Why" (Valuation Multiplier) : We utilize the MVRV (Market Value to Realized Value) ratio. To isolate value opportunities, we use the inverse (1 / MVRV).
The Fusion : These factors are multiplied to create the raw VERI index.
Normalization & Inversion
We apply a rolling Z-Score (standard deviation from the mean) and invert the result.
How to Interpret the Indicator
Because the output is inverted, the visual logic matches price action intuitively:
๐ฅ Distribution Zone (High Values > 1.5):
The Signal: "Low Conviction Overvaluation."
Context: The price is historically expensive relative to the cost basis (High MVRV), and Whales are distributing coins to Retail.Implication: Historically precedes macro tops or deep corrections.
๐ฉ Accumulation Zone (Low Values < -1.5):
The Signal: "High Conviction Undervaluation."Context: The price is historically cheap (Low MVRV), and Whales are aggressively accumulating relative to Retail.
Implication: Historically precedes macro bottoms and generational entry points.
Zero Line : Represents the historical baseline. A crossover of the zero line often confirms a regime shift (e.g., from Bear to Bull).
Visual Guide & Features
Dynamic Coloring: The line turns Red in the Distribution Zone, Blue in the Accumulation Zone, and Orange during neutral trends.
Zone Labels: Static labels are pinned to the left side of the chart for immediate context.
The "Data Check" Monitor (Status Table): Since this indicator relies on third-party fundamental data, we have included a diagnostic table in the bottom-right corner.
Data Check Monitor Guide
STATUS: LIVE (Green): The indicator is functioning correctly. All data feeds (Whales, Retail, MVRV) are being retrieved successfully.
STATUS: WAIT (Red): The indicator cannot retrieve data. This might happen for some reasons, e.g. your TradingView plan may not support IntoTheBlock integration.
Settings
Lookback Period (Default: 365): The window used for Z-Score normalization. We use a full year to smooth out seasonal volatility.
Smoothing (Default: 7): A 7-day smoothing is applied to the signal to filter out daily noise.
Zone Thresholds: Users can customize the specific Z-Score levels for the Distribution and Accumulation bands.
Disclaimer
This script is for research and educational purposes only. It uses historical on-chain data to visualize market structure and does not constitute financial advice. Past performance of whale entities does not guarantee future results.
Tags
bitcoin, btc, on-chain, mvrv, whales, valuation, fundamentals, cycle, oscillator, veri
Wyckoff + VSA Ultimate - Complete Market Analysis
**Wyckoff + VSA Ultimate** combines three proven methodologies into one powerful indicator:
๐ท **Wyckoff Method** - Identifies market accumulation and distribution phases
๐ท **Volume Spread Analysis** - Confirms moves with volume and price spread
๐ท **Random Walk Index** - Validates trend strength and direction
**MAIN SIGNALS:**
๐ **Wyckoff Signals** (Green = Bullish, Red = Bearish)
โข SC (Selling Climax) - Major buying opportunity
โข BC (Buying Climax) - Major selling opportunity
โข AR (Automatic Rally) - Confirms accumulation
โข DAR (Automatic Reaction) - Confirms distribution
โข ST (Secondary Test) - Final test before move
๐ **VSA Patterns**
โข Upthrust bars (weakness after rally)
โข Reverse upthrust (strength after decline)
โข No demand/supply bars
โข Stopping volume
โข Effort failures
**KEY FEATURES:**
โ
Multiple signal confirmation reduces false signals
โ
Real-time info table shows phase, volume, trends
โ
Dynamic stop loss levels calculated automatically
โ
Accumulation/Distribution boxes on chart
โ
Customizable filters for your trading style
โ
12 alert conditions for all major signals
**HOW TO USE:**
For Swing Trading (4H/Daily):
1. Enable "Require VSA Confirmation"
2. Wait for SC or BC signals
3. Use displayed stop levels
4. Target next opposite phase
For Day Trading (15m/1H):
1. Enable "Require Trend Confirmation"
2. Trade only trend-aligned signals
3. Increase volume threshold to 1.5
4. Use tighter risk management
**BEST FOR:**
โ
Stocks (high volume)
โ
Forex majors
โ
Crypto (BTC, ETH)
โ
Index futures
**SETTINGS:**
Customize everything:
โข RSI & Pivot parameters
โข Volume & Spread analysis
โข Trend periods (RWI)
โข Signal filters
โข Visual display options
**ALERTS:**
Pre-configured alerts for:
โข All Wyckoff signals
โข VSA reversals
โข Strong buy/sell combinations
**Credits:** Integrates Wyckoff (faytterro) and VSA (theehoganator) methods.
**Disclaimer:** Educational purposes only. Use proper risk management. Past performance doesn't guarantee future results.
---
Pine Scriptโข v6
---
Luxy Super-Duper SuperTrend Predictor Engine and Buy/Sell signalA professional trend-following grading system that analyzes historical trend
patterns to provide statistical duration estimates using advanced similarity
matching and k-nearest neighbors analysis. Combines adaptive Supertrend with
intelligent duration statistics, multi-timeframe confluence, volume confirmation,
and quality scoring to identify high-probability setups with data-driven
target ranges across all timeframes.
Note: All duration estimates are statistical calculations based on historical data, not guarantees of future performance.
WHAT MAKES THIS DIFFERENT
Unlike traditional SuperTrend indicators that only tell you trend direction, this system answers the critical question: "What is the typical duration for trends like this?"
The Statistical Analysis Engine:
โข Analyzes your chart's last 15+ completed SuperTrend trends (bullish and bearish separately)
โข Uses k-nearest neighbors similarity matching to find historically similar setups
โข Calculates statistical duration estimates based on current market conditions
โข Learns from estimation errors and adapts over time (Advanced mode)
โข Displays visual duration analysis box showing median, average, and range estimates
โข Tracks Statistical accuracy with backtest statistics
Complete Trading System:
โข Statistical trend duration analysis with three intelligence levels
โข Adaptive Supertrend with dynamic ATR-based bands
โข Multi-timeframe confluence analysis (6 timeframes: 5M to 1W)
โข Volume confirmation with spike detection and momentum tracking
โข Quality scoring system (0-70 points) rating each setup
โข One-click preset optimization for all trading styles
โข Anti-repaint guarantee on all signals and duration estimates
METHODOLOGY CREDITS
This indicator's approach is inspired by proven trading methodologies from respected market educators:
โข Mark Minervini - Volatility Contraction Pattern (VCP) and pullback entry techniques
โข William O'Neil - Volume confirmation principles and institutional buying patterns (CANSLIM methodology)
โข Dan Zanger - Volatility expansion entries and momentum breakout strategies
Important: These are educational references only. This indicator does not guarantee any specific trading results. Always conduct your own analysis and risk management.
KEY FEATURES
1. TREND DURATION ANALYSIS SYSTEM - The Core Innovation
The statistical analysis engine is what sets this indicator apart from standard SuperTrend systems. It doesn't just identify trend changes - it provides statistical analysis of potential duration.
How It Works:
Step 1: Historical Tracking
โข Automatically records every completed SuperTrend trend (duration in bars)
โข Maintains separate databases for bullish trends and bearish trends
โข Stores up to 15 most recent trends of each type
โข Captures market conditions at each trend flip: volume ratio, ATR ratio, quality score, price distance from SuperTrend, proximity to support/resistance
Step 2: Similarity Matching (k-Nearest Neighbors)
โข When new trend begins, system compares current conditions to ALL historical flips
โข Calculates similarity score based on:
- Volume similarity (30% weight) - Is volume behaving similarly?
- Volatility similarity (30% weight) - Is ATR/volatility similar?
- Quality similarity (20% weight) - Is setup strength comparable?
- Distance similarity (10% weight) - Is price distance from ST similar?
- Support/Resistance proximity (10% weight) - Similar structural context?
โข Selects the 15 MOST SIMILAR historical trends (not just all trends)
โข This is like asking: "When conditions looked like this before, how long did trends last?"
Step 3: Statistical Analysis
โข Calculates median duration (most common outcome)
โข Calculates average duration (mean of similar trends)
โข Determines realistic range (min to max of similar trends)
โข Applies exponential weighting (recent trends weighted more heavily)
โข Outputs confidence-weighted statistical estimate
Step 4: Advanced Intelligence (Advanced Mode Only)
The Advanced mode applies five sophisticated multipliers to refine estimates:
A) Market Structure Multiplier (ยฑ30%):
โข Detects nearby support/resistance levels using pivot detection
โข If flip occurs NEAR a key level: Estimate adjusted -30% (expect bounce/rejection)
โข If flip occurs in open space: Estimate adjusted +30% (clear path for continuation)
โข Uses configurable lookback period and ATR-based proximity threshold
B) Asset Type Multiplier (ยฑ40%):
โข Adjusts duration estimates based on asset volatility characteristics
โข Small Cap / Biotech: +40% (explosive, extended moves)
โข Tech Growth: +20% (momentum-driven, longer trends)
โข Blue Chip / Large Cap: 0% (baseline, steady trends)
โข Dividend / Value: -20% (slower, grinding trends)
โข Cyclical: Variable based on macro regime
โข Crypto / High Volatility: +30% (parabolic potential)
C) Flip Strength Multiplier (ยฑ20%):
โข Analyzes the QUALITY of the trend flip itself
โข Strong flip (high volume + expanding ATR + quality score 60+): +20%
โข Weak flip (low volume + contracting ATR + quality score under 40): -20%
โข Logic: Historical data shows that powerful flips tend to be followed by longer trends
D) Error Learning Multiplier (ยฑ15%):
โข Tracks Statistical accuracy over last 10 completed trends
โข Calculates error ratio: (estimated duration / Actual Duration)
โข If system consistently over-estimates: Apply -15% correction
โข If system consistently under-estimates: Apply +15% correction
โข Learns and adapts to current market regime
E) Regime Detection Multiplier (ยฑ20%):
โข Analyzes last 3 trends of SAME TYPE (bull-to-bull or bear-to-bear)
โข Compares recent trend durations to historical average
โข If recent trends 20%+ longer than average: +20% adjustment (trending regime detected)
โข If recent trends 20%+ shorter than average: -20% adjustment (choppy regime detected)
โข Detects whether market is in trending or mean-reversion mode
Three analysis modes:
SIMPLE MODE - Basic Statistics
โข Uses raw median of similar trends only
โข No multipliers, no adjustments
โข Best for: Beginners, clean trending markets
โข Fastest calculations, minimal complexity
STANDARD MODE - Full Statistical Analysis
โข Similarity matching with k-nearest neighbors
โข Exponential weighting of recent trends
โข Median, average, and range calculations
โข Best for: Most traders, general market conditions
โข Balance of accuracy and simplicity
ADVANCED MODE - Statistics + Intelligence
โข Everything in Standard mode PLUS
โข All 5 advanced multipliers (structure, asset type, flip strength, learning, regime)
โข Highest Statistical accuracy in testing
โข Best for: Experienced traders, volatile/complex markets
โข Maximum intelligence, most adaptive
Visual Duration Analysis Box:
When a new trend begins (SuperTrend flip), a box appears on your chart showing:
โข Analysis Mode (Simple / Standard / Advanced)
โข Number of historical trends analyzed
โข Median expected duration (most likely outcome)
โข Average expected duration (mean of similar trends)
โข Range (minimum to maximum from similar trends)
โข Advanced multipliers breakdown (Advanced mode only)
โข Backtest accuracy statistics (if available)
The box extends from the flip bar to the estimated endpoint based on historical data, giving you a visual target for trend duration. Box updates in real-time as trend progresses.
Backtest & Accuracy Tracking:
โข System backtests its own duration estimates using historical data
โข Shows accuracy metrics: how well duration estimates matched actual durations
โข Tracks last 10 completed duration estimates separately
โข Displays statistics in dashboard and duration analysis boxes
โข Helps you understand statistical reliability on your specific symbol/timeframe
Anti-Repaint Guarantee:
โข duration analysis boxes only appear AFTER bar close (barstate.isconfirmed)
โข Historical duration estimates never disappear or change
โข What you see in history is exactly what you would have seen real-time
โข No future data leakage, no lookahead bias
2. INTELLIGENT PRESET CONFIGURATIONS - One-Click Optimization
Unlike indicators that require tedious parameter tweaking, this system includes professionally optimized presets for every trading style. Select your approach from the dropdown and ALL parameters auto-configure.
"AUTO (DETECT FROM TF)" - RECOMMENDED
The smartest option: automatically selects optimal settings based on your chart timeframe.
โข 1m-5m charts โ Scalping preset (ATR: 7, Mult: 2.0)
โข 15m-1h charts โ Day Trading preset (ATR: 10, Mult: 2.5)
โข 2h-4h-D charts โ Swing Trading preset (ATR: 14, Mult: 3.0)
โข W-M charts โ Position Trading preset (ATR: 21, Mult: 4.0)
Benefits:
โข Zero configuration - works immediately
โข Always matched to your timeframe
โข Switch timeframe = automatic adjustment
โข Perfect for traders who use multiple timeframes
"SCALPING (1-5M)" - Ultra-Fast Signals
Optimized for: 1-5 minute charts, high-frequency trading, quick profits
Target holding period: Minutes to 1-2 hours maximum
Best markets: High-volume stocks, major crypto pairs, active futures
Parameter Configuration:
โข Supertrend: ATR 7, Multiplier 2.0 (very sensitive)
โข Volume: MA 10, High 1.8x, Spike 3.0x (catches quick surges)
โข Volume Momentum: AUTO-DISABLED (too restrictive for fast scalping)
โข Quality minimum: 40 points (accepts more setups)
โข Duration Analysis: Uses last 15 trends with heavy recent weighting
Trading Logic:
Speed over precision. Short ATR period and low multiplier create highly responsive SuperTrend. Volume momentum filter disabled to avoid missing fast moves. Quality threshold relaxed to catch more opportunities in rapid market conditions.
Signals per session: 5-15 typically
Hold time: Minutes to couple hours
Best for: Active traders with fast execution
"DAY TRADING (15M-1H)" - Balanced Approach
Optimized for: 15-minute to 1-hour charts, intraday moves, session-based trading
Target holding period: 30 minutes to 8 hours (within trading day)
Best markets: Large-cap stocks, major indices, established crypto
Parameter Configuration:
โข Supertrend: ATR 10, Multiplier 2.5 (balanced)
โข Volume: MA 20, High 1.5x, Spike 2.5x (standard detection)
โข Volume Momentum: 5/20 periods (confirms intraday strength)
โข Quality minimum: 50 points (good setups preferred)
โข Duration Analysis: Balanced weighting of recent vs historical
Trading Logic:
The most balanced configuration. ATR 10 with multiplier 2.5 provides steady trend following that avoids noise while catching meaningful moves. Volume momentum confirms institutional participation without being overly restrictive.
Signals per session: 2-5 typically
Hold time: 30 minutes to full day
Best for: Part-time and full-time active traders
"SWING TRADING (4H-D)" - Trend Stability
Optimized for: 4-hour to Daily charts, multi-day holds, trend continuation
Target holding period: 2-15 days typically
Best markets: Growth stocks, sector ETFs, trending crypto, commodity futures
Parameter Configuration:
โข Supertrend: ATR 14, Multiplier 3.0 (stable)
โข Volume: MA 30, High 1.3x, Spike 2.2x (accumulation focus)
โข Volume Momentum: 10/30 periods (trend stability)
โข Quality minimum: 60 points (high-quality setups only)
โข Duration Analysis: Favors consistent historical patterns
Trading Logic:
Designed for substantial trend moves while filtering short-term noise. Higher ATR period and multiplier create stable SuperTrend that won't flip on minor corrections. Stricter quality requirements ensure only strongest setups generate signals.
Signals per week: 2-5 typically
Hold time: Days to couple weeks
Best for: Part-time traders, swing style
"POSITION TRADING (D-W)" - Long-Term Trends
Optimized for: Daily to Weekly charts, major trend changes, portfolio allocation
Target holding period: Weeks to months
Best markets: Blue-chip stocks, major indices, established cryptocurrencies
Parameter Configuration:
โข Supertrend: ATR 21, Multiplier 4.0 (very stable)
โข Volume: MA 50, High 1.2x, Spike 2.0x (long-term accumulation)
โข Volume Momentum: 20/50 periods (major trend confirmation)
โข Quality minimum: 70 points (excellent setups only)
โข Duration Analysis: Heavy emphasis on multi-year historical data
Trading Logic:
Conservative approach focusing on major trend changes. Extended ATR period and high multiplier create SuperTrend that only flips on significant reversals. Very strict quality filters ensure signals represent genuine long-term opportunities.
Signals per month: 1-2 typically
Hold time: Weeks to months
Best for: Long-term investors, set-and-forget approach
"CUSTOM" - Advanced Configuration
Purpose: Complete manual control for experienced traders
Use when: You understand the parameters and want specific optimization
Best for: Testing new approaches, unusual market conditions, specific instruments
Full control over:
โข All SuperTrend parameters
โข Volume thresholds and momentum periods
โข Quality scoring weights
โข analysis mode and multipliers
โข Advanced features tuning
Preset Comparison Quick Reference:
Chart Timeframe: Scalping (1M-5M) | Day Trading (15M-1H) | Swing (4H-D) | Position (D-W)
Signals Frequency: Very High | High | Medium | Low
Hold Duration: Minutes | Hours | Days | Weeks-Months
Quality Threshold: 40 pts | 50 pts | 60 pts | 70 pts
ATR Sensitivity: Highest | Medium | Lower | Lowest
Time Investment: Highest | High | Medium | Lowest
Experience Level: Expert | Advanced | Intermediate | Beginner+
3. QUALITY SCORING SYSTEM (0-70 Points)
Every signal is rated in real-time across three dimensions:
Volume Confirmation (0-30 points):
โข Volume Spike (2.5x+ average): 30 points
โข High Volume (1.5x+ average): 20 points
โข Above Average (1.0x+ average): 10 points
โข Below Average: 0 points
Volatility Assessment (0-30 points):
โข Expanding ATR (1.2x+ average): 30 points
โข Rising ATR (1.0-1.2x average): 15 points
โข Contracting/Stable ATR: 0 points
Volume Momentum (0-10 points):
โข Strong Momentum (1.2x+ ratio): 10 points
โข Rising Momentum (1.0-1.2x ratio): 5 points
โข Weak/Neutral Momentum: 0 points
Score Interpretation:
60-70 points - EXCELLENT:
โข All factors aligned
โข High conviction setup
โข Maximum position size (within risk limits)
โข Primary trading opportunities
45-59 points - STRONG:
โข Multiple confirmations present
โข Above-average setup quality
โข Standard position size
โข Good trading opportunities
30-44 points - GOOD:
โข Basic confirmations met
โข Acceptable setup quality
โข Reduced position size
โข Wait for additional confirmation or trade smaller
Below 30 points - WEAK:
โข Minimal confirmations
โข Low probability setup
โข Consider passing
โข Only for aggressive traders in strong trends
Only signals meeting your minimum quality threshold (configurable per preset) generate alerts and labels.
4. MULTI-TIMEFRAME CONFLUENCE ANALYSIS
The system can simultaneously analyze trend alignment across 6 timeframes (optional feature):
Timeframes analyzed:
โข 5-minute (scalping context)
โข 15-minute (intraday momentum)
โข 1-hour (day trading bias)
โข 4-hour (swing context)
โข Daily (primary trend)
โข Weekly (macro trend)
Confluence Interpretation:
โข 5-6/6 aligned - Very strong multi-timeframe agreement (highest confidence)
โข 3-4/6 aligned - Moderate agreement (standard setup)
โข 1-2/6 aligned - Weak agreement (caution advised)
Dashboard shows real-time alignment count with color-coding. Higher confluence typically correlates with longer, stronger trends.
5. VOLUME MOMENTUM FILTER - Institutional Money Flow
Unlike traditional volume indicators that just measure size, Volume Momentum tracks the RATE OF CHANGE in volume:
How it works:
โข Compares short-term volume average (fast period) to long-term average (slow period)
โข Ratio above 1.0 = Volume accelerating (money flowing IN)
โข Ratio above 1.2 = Strong acceleration (institutional participation likely)
โข Ratio below 0.8 = Volume decelerating (money flowing OUT)
Why it matters:
โข Confirms trend with actual money flow, not just price
โข Leading indicator (volume often leads price)
โข Catches accumulation/distribution before breakouts
โข More intuitive than complex mathematical filters
Integration with signals:
โข Optional filter - can be enabled/disabled per preset
โข When enabled: Only signals with rising volume momentum fire
โข AUTO-DISABLED in Scalping mode (too restrictive for fast trading)
โข Configurable fast/slow periods per trading style
6. ADAPTIVE SUPERTREND MULTIPLIER
Traditional SuperTrend uses fixed ATR multiplier. This system dynamically adjusts the multiplier (0.8x to 1.2x base) based on:
โข Trend Strength: Price correlation over lookback period
โข Volume Weight: Current volume relative to average
Benefits:
โข Tighter bands in calm markets (less premature exits)
โข Wider bands in volatile conditions (avoids whipsaws)
โข Better adaptation to biotech, small-cap, and crypto volatility
โข Optional - can be disabled for classic constant multiplier
7. VISUAL GRADIENT RIBBON
26-layer exponential gradient fill between price and SuperTrend line provides instant visual trend strength assessment:
Color System:
โข Green shades - Bullish trend + volume confirmation (strongest)
โข Blue shades - Bullish trend, normal volume
โข Orange shades - Bearish trend + volume confirmation
โข Red shades - Bearish trend (weakest)
Opacity varies based on:
โข Distance from SuperTrend (farther = more opaque)
โข Volume intensity (higher volume = stronger color)
The ribbon provides at-a-glance trend strength without cluttering your chart. Can be toggled on/off.
8. INTELLIGENT ALERT SYSTEM
Two-tier alert architecture for flexibility:
Automatic Alerts:
โข Fire automatically on BUY and SELL signals
โข Include full context: quality score, volume state, volume momentum
โข One alert per bar close (alert.freq_once_per_bar_close)
โข Message format: "BUY: Supertrend bullish + Quality: 65/70 | Volume: HIGH | Vol Momentum: STRONG (1.35x)"
Customizable Alert Conditions:
โข Appear in TradingView's "Create Alert" dialog
โข Three options: BUY Signal Only, SELL Signal Only, ANY Signal (BUY or SELL)
โข Use TradingView placeholders: {{ticker}}, {{interval}}, {{close}}, {{time}}
โข Fully customizable message templates
All alerts use barstate.isconfirmed - Zero repaint guarantee.
9. ANTI-REPAINT ARCHITECTURE
Every component guaranteed non-repainting:
โข Entry signals: Only appear after bar close
โข duration analysis boxes: Created only on confirmed SuperTrend flips
โข Informative labels: Wait for bar confirmation
โข Alerts: Fire once per closed bar
โข Multi-timeframe data: Uses lookahead=barmerge.lookahead_off
What you see in history is exactly what you would have seen in real-time. No disappearing signals, no changed duration estimates.
HOW TO USE THE INDICATOR
QUICK START - 3 Steps to Trading:
Step 1: Select Your Trading Style
Open indicator settings โ "Quick Setup" section โ Trading Style Preset dropdown
Options:
โข Auto (Detect from TF) - RECOMMENDED: Automatically configures based on your chart timeframe
โข Scalping (1-5m) - For 1-5 minute charts, ultra-fast signals
โข Day Trading (15m-1h) - For 15m-1h charts, balanced approach
โข Swing Trading (4h-D) - For 4h-Daily charts, trend stability
โข Position Trading (D-W) - For Daily-Weekly charts, long-term trends
โข Custom - Manual configuration (advanced users only)
Choose "Auto" and you're done - all parameters optimize automatically.
Step 2: Understand the Signals
BUY Signal (Green Triangle Below Price):
โข SuperTrend flipped bullish
โข Quality score meets minimum threshold (varies by preset)
โข Volume confirmation present (if filter enabled)
โข Volume momentum rising (if filter enabled)
โข duration analysis box shows expected trend duration
SELL Signal (Red Triangle Above Price):
โข SuperTrend flipped bearish
โข Quality score meets minimum threshold
โข Volume confirmation present (if filter enabled)
โข Volume momentum rising (if filter enabled)
โข duration analysis box shows expected trend duration
Duration Analysis Box:
โข Appears at SuperTrend flip (start of new trend)
โข Shows median, average, and range duration estimates
โข Extends to estimated endpoint based on historical data visually
โข Updates mode-specific intelligence (Simple/Standard/Advanced)
Step 3: Use the Dashboard for Context
Dashboard (top-right corner) shows real-time metrics:
โข Row 1 - Quality Score: Current setup rating (0-70)
โข Row 2 - SuperTrend: Direction and current level
โข Row 3 - Volume: Status (Spike/High/Normal/Low) with color
โข Row 4 - Volatility: State (Expanding/Rising/Stable/Contracting)
โข Row 5 - Volume Momentum: Ratio and trend
โข Row 6 - Duration Statistics: Accuracy metrics and track record
Every cell has detailed tooltip - hover for full explanations.
SIGNAL INTERPRETATION BY QUALITY SCORE:
Excellent Setup (60-70 points):
โข Quality Score: 60-70
โข Volume: Spike or High
โข Volatility: Expanding
โข Volume Momentum: Strong (1.2x+)
โข MTF Confluence (if enabled): 5-6/6
โข Action: Primary trade - maximum position size (within risk limits)
โข Statistical reliability: Highest - duration estimates most accurate
Strong Setup (45-59 points):
โข Quality Score: 45-59
โข Volume: High or Above Average
โข Volatility: Rising
โข Volume Momentum: Rising (1.0-1.2x)
โข MTF Confluence (if enabled): 3-4/6
โข Action: Standard trade - normal position size
โข Statistical reliability: Good - duration estimates reliable
Good Setup (30-44 points):
โข Quality Score: 30-44
โข Volume: Above Average
โข Volatility: Stable or Rising
โข Volume Momentum: Neutral to Rising
โข MTF Confluence (if enabled): 3-4/6
โข Action: Cautious trade - reduced position size, wait for additional confirmation
โข Statistical reliability: Moderate - duration estimates less certain
Weak Setup (Below 30 points):
โข Quality Score: Below 30
โข Volume: Low or Normal
โข Volatility: Contracting or Stable
โข Volume Momentum: Weak
โข MTF Confluence (if enabled): 1-2/6
โข Action: Pass or wait for improvement
โข Statistical reliability: Low - duration estimates unreliable
USING duration analysis boxES FOR TRADE MANAGEMENT:
Entry Timing:
โข Enter on SuperTrend flip (signal bar close)
โข duration analysis box appears simultaneously
โข Note the median duration - this is your expected hold time
Profit Targets:
โข Conservative: Use MEDIAN duration as profit target (50% probability)
โข Moderate: Use AVERAGE duration (mean of similar trends)
โข Aggressive: Aim for MAX duration from range (best historical outcome)
Position Management:
โข Scale out at median duration (take partial profits)
โข Trail stop as trend extends beyond median
โข Full exit at average duration or SuperTrend flip (whichever comes first)
โข Re-evaluate if trend exceeds estimated range
analysis mode Selection:
โข Simple: Clean trending markets, beginners, minimal complexity
โข Standard: Most markets, most traders (recommended default)
โข Advanced: Volatile markets, complex instruments, experienced traders seeking highest accuracy
Asset Type Configuration (Advanced Mode):
If using Advanced analysis mode, configure Asset Type for optimal accuracy:
โข Small Cap: Stocks under $2B market cap, low liquidity
โข Biotech / Speculative: Clinical-stage pharma, penny stocks, high-risk
โข Blue Chip / Large Cap: S&P 500, mega-cap tech, stable large companies
โข Tech Growth: High-growth tech (TSLA, NVDA, growth SaaS)
โข Dividend / Value: Dividend aristocrats, value stocks, utilities
โข Cyclical: Energy, materials, industrials (macro-driven)
โข Crypto / High Volatility: Bitcoin, altcoins, highly volatile assets
Correct asset type selection improves Statistical accuracy by 15-20%.
RISK MANAGEMENT GUIDELINES:
1. Stop Loss Placement:
Long positions:
โข Place stop below recent swing low OR
โข Place stop below SuperTrend level (whichever is tighter)
โข Use 1-2 ATR distance as guideline
โข Recommended: SuperTrend level (built-in volatility adjustment)
Short positions:
โข Place stop above recent swing high OR
โข Place stop above SuperTrend level (whichever is tighter)
โข Use 1-2 ATR distance as guideline
โข Recommended: SuperTrend level
2. Position Sizing by Quality Score:
โข Excellent (60-70): Maximum position size (2% risk per trade)
โข Strong (45-59): Standard position size (1.5% risk per trade)
โข Good (30-44): Reduced position size (1% risk per trade)
โข Weak (Below 30): Pass or micro position (0.5% risk - learning trades only)
3. Exit Strategy Options:
Option A - Statistical Duration-Based Exit:
โข Exit at median estimated duration (conservative)
โข Exit at average estimated duration (moderate)
โข Trail stop beyond average duration (aggressive)
Option B - Signal-Based Exit:
โข Exit on opposite signal (SELL after BUY, or vice versa)
โข Exit on SuperTrend flip (trend reversal)
โข Exit if quality score drops below 30 mid-trend
Option C - Hybrid (Recommended):
โข Take 50% profit at median estimated duration
โข Trail stop on remaining 50% using SuperTrend as trailing level
โข Full exit on SuperTrend flip or quality collapse
4. Trade Filtering:
For higher win-rate (fewer trades, better quality):
โข Increase minimum quality score (try 60 for swing, 50 for day trading)
โข Enable volume momentum filter (ensure institutional participation)
โข Require higher MTF confluence (5-6/6 alignment)
โข Use Advanced analysis mode with appropriate asset type
For more opportunities (more trades, lower quality threshold):
โข Decrease minimum quality score (40 for day trading, 35 for scalping)
โข Disable volume momentum filter
โข Lower MTF confluence requirement
โข Use Simple or Standard analysis mode
SETTINGS OVERVIEW
Quick Setup Section:
โข Trading Style Preset: Auto / Scalping / Day Trading / Swing / Position / Custom
Dashboard & Display:
โข Show Dashboard (ON/OFF)
โข Dashboard Position (9 options: Top/Middle/Bottom + Left/Center/Right)
โข Text Size (Auto/Tiny/Small/Normal/Large/Huge)
โข Show Ribbon Fill (ON/OFF)
โข Show SuperTrend Line (ON/OFF)
โข Bullish Color (default: Green)
โข Bearish Color (default: Red)
โข Show Entry Labels - BUY/SELL signals (ON/OFF)
โข Show Info Labels - Volume events (ON/OFF)
โข Label Size (Auto/Tiny/Small/Normal/Large/Huge)
Supertrend Configuration:
โข ATR Length (default varies by preset: 7-21)
โข ATR Multiplier Base (default varies by preset: 2.0-4.0)
โข Use Adaptive Multiplier (ON/OFF) - Dynamic 0.8x-1.2x adjustment
โข Smoothing Factor (0.0-0.5) - EMA smoothing applied to bands
โข Neutral Bars After Flip (0-10) - Hide ST immediately after flip
Volume Momentum:
โข Enable Volume Momentum Filter (ON/OFF)
โข Fast Period (default varies by preset: 3-20)
โข Slow Period (default varies by preset: 10-50)
Volume Analysis:
โข Volume MA Length (default varies by preset: 10-50)
โข High Volume Threshold (default: 1.5x)
โข Spike Threshold (default: 2.5x)
โข Low Volume Threshold (default: 0.7x)
Quality Filters:
โข Minimum Quality Score (0-70, varies by preset)
โข Require Volume Confirmation (ON/OFF)
Trend Duration Analysis:
โข Show Duration Analysis (ON/OFF) - Display duration analysis boxes
โข analysis mode - Simple / Standard / Advanced
โข Asset Type - 7 options (Small Cap, Biotech, Blue Chip, Tech Growth, Dividend, Cyclical, Crypto)
โข Use Exponential Weighting (ON/OFF) - Recent trends weighted more
โข Decay Factor (0.5-0.99) - How much more recent trends matter
โข Structure Lookback (3-30) - Pivot detection period for support/resistance
โข Proximity Threshold (xATR) - How close to level qualifies as "near"
โข Enable Error Learning (ON/OFF) - System learns from estimation errors
โข Memory Depth (3-20) - How many past errors to remember
Box Visual Settings:
โข duration analysis box Border Color
โข duration analysis box Background Color
โข duration analysis box Text Color
โข duration analysis box Border Width
โข duration analysis box Transparency
Multi-Timeframe (Optional Feature):
โข Enable MTF Confluence (ON/OFF)
โข Minimum Alignment Required (0-6)
โข Individual timeframe enable/disable toggles
โข Custom timeframe selection options
All preset configurations override manual inputs except when "Custom" is selected.
ADVANCED FEATURES
1. Scalpel Mode (Optional)
Advanced pullback entry system that waits for healthy retracements within established trends before signaling entry:
โข Monitors price distance from SuperTrend levels
โข Requires pullback to configurable range (default: 30-50%)
โข Ensures trend remains intact before entry signal
โข Reduces whipsaw and false breakouts
โข Inspired by Mark Minervini's VCP pullback entries
Best for: Swing traders and day traders seeking precision entries
Scalpers: Consider disabling for faster entries
2. Error Learning System (Advanced analysis mode Only)
The system learns from its own estimation errors:
โข Tracks last 10-20 completed duration estimates (configurable memory depth)
โข Calculates error ratio for each: estimated duration / Actual Duration
โข If system consistently over-estimates: Applies negative correction (-15%)
โข If system consistently under-estimates: Applies positive correction (+15%)
โข Adapts to current market regime automatically
This self-correction mechanism improves accuracy over time as the system gathers more data on your specific symbol and timeframe.
3. Regime Detection (Advanced analysis mode Only)
Automatically detects whether market is in trending or choppy regime:
โข Compares last 3 trends to historical average
โข Recent trends 20%+ longer โ Trending regime (+20% to estimates)
โข Recent trends 20%+ shorter โ Choppy regime (-20% to estimates)
โข Applied separately to bullish and bearish trends
Helps duration estimates adapt to changing market conditions without manual intervention.
4. Exponential Weighting
Option to weight recent trends more heavily than distant history:
โข Default decay factor: 0.9
โข Recent trends get higher weight in statistical calculations
โข Older trends gradually decay in importance
โข Rationale: Recent market behavior more relevant than old data
โข Can be disabled for equal weighting
5. Backtest Statistics
System backtests its own duration estimates using historical data:
โข Walks through past trends chronologically
โข Calculates what duration estimate WOULD have been at each flip
โข Compares to actual duration that occurred
โข Displays accuracy metrics in duration analysis boxes and dashboard
โข Helps assess statistical reliability on your specific chart
Note: Backtest uses only data available AT THE TIME of each historical flip (no lookahead bias).
TECHNICAL SPECIFICATIONS
โข Pine Script Version: v6
โข Indicator Type: Overlay (draws on price chart)
โข Max Boxes: 500 (for duration analysis box storage)
โข Max Bars Back: 5000 (for comprehensive historical analysis)
โข Security Calls: 1 (for MTF if enabled - optimized)
โข Repainting: NO - All signals and duration estimates confirmed on bar close
โข Lookahead Bias: NO - All HTF data properly offset, all duration estimates use only historical data
โข Real-time Updates: YES - Dashboard and quality scores update live
โข Alert Capable: YES - Both automatic alerts and customizable alert conditions
โข Multi-Symbol: Works on stocks, crypto, forex, futures, indices
Performance Optimization:
โข Conditional calculations (duration analysis can be disabled to reduce load)
โข Efficient array management (circular buffers for trend storage)
โข Streamlined gradient rendering (26 layers, can be toggled off)
โข Smart label cooldown system (prevents label spam)
โข Optimized similarity matching (analyzes only relevant trends)
Data Requirements:
โข Minimum 50-100 bars for initial duration analysis (builds historical database)
โข Optimal: 500+ bars for robust statistical analysis
โข Longer history = more accurate duration estimates
โข Works on any timeframe from 1 minute to monthly
KNOWN LIMITATIONS
โข Trending Markets Only: Performs best in clear trends. May generate false signals in choppy/sideways markets (use quality score filtering and regime detection to mitigate)
โข Lagging Nature: Like all trend-following systems, signals occur AFTER trend establishment, not at exact tops/bottoms. Use duration analysis boxes to set realistic profit targets.
โข Initial Learning Period: Duration analysis system requires 10-15 completed trends to build reliable historical database. Early duration estimates less accurate (first few weeks on new symbol/timeframe).
โข Visual Load: 26-layer gradient ribbon may slow performance on older devices. Disable ribbon if experiencing lag.
โข Statistical accuracy Variables: Duration estimates are statistical estimates, not guarantees. Accuracy varies by:
- Market regime (trending vs choppy)
- Asset volatility characteristics
- Quality of historical pattern matches
- Timeframe traded (higher TF = more reliable)
โข Not Best Suitable For:
- Ultra-short-term scalping (sub-1-minute charts)
- Mean-reversion strategies (designed for trend-following)
- Range-bound trading (requires trending conditions)
- News-driven spikes (estimates based on technical patterns, not fundamentals)
FREQUENTLY ASKED QUESTIONS
Q: Does this indicator repaint?
A: Absolutely not. All signals, duration analysis boxes, labels, and alerts use barstate.isconfirmed checks. They only appear after the bar closes. What you see in history is exactly what you would have seen in real-time. Zero repaint guarantee.
Q: How accurate are the trend duration estimates?
A: Accuracy varies by mode, market conditions, and historical data quality:
โข Simple mode: 60-70% accuracy (within ยฑ20% of actual duration)
โข Standard mode: 70-80% accuracy (within ยฑ20% of actual duration)
โข Advanced mode: 75-85% accuracy (within ยฑ20% of actual duration)
Best accuracy achieved on:
โข Higher timeframes (4H, Daily, Weekly)
โข Trending markets (not choppy/sideways)
โข Assets with consistent behavior (Blue Chip, Large Cap)
โข After 20+ historical trends analyzed (builds robust database)
Remember: All duration estimates are statistical calculations based on historical patterns, not guarantees.
Q: Which analysis mode should I use?
A:
โข Simple: Beginners, clean trending markets, want minimal complexity
โข Standard: Most traders, general market conditions (RECOMMENDED DEFAULT)
โข Advanced: Experienced traders, volatile/complex markets (biotech, small-cap, crypto), seeking maximum accuracy
Advanced mode requires correct Asset Type configuration for optimal results.
Q: What's the difference between the trading style presets?
A: Each preset optimizes ALL parameters for a specific trading approach:
โข Scalping: Ultra-sensitive (ATR 7, Mult 2.0), more signals, shorter holds
โข Day Trading: Balanced (ATR 10, Mult 2.5), moderate signals, intraday holds
โข Swing Trading: Stable (ATR 14, Mult 3.0), fewer signals, multi-day holds
โข Position Trading: Very stable (ATR 21, Mult 4.0), rare signals, week/month holds
Auto mode automatically selects based on your chart timeframe.
Q: Should I use Auto mode or manually select a preset?
A: Auto mode is recommended for most traders. It automatically matches settings to your timeframe and re-optimizes if you switch charts. Only use manual preset selection if:
โข You want scalping settings on a 15m chart (overriding auto-detection)
โข You want swing settings on a 1h chart (more conservative than auto would give)
โข You're testing different approaches on same timeframe
Q: Can I use this for scalping and day trading?
A: Absolutely! The preset system is specifically designed for all trading styles:
โข Select "Scalping (1-5m)" for 1-5 minute charts
โข Select "Day Trading (15m-1h)" for 15m-1h charts
โข Or use "Auto" mode and it configures automatically
Volume momentum filter is auto-disabled in Scalping mode for faster signals.
Q: What is Volume Momentum and why does it matter?
A: Volume Momentum compares short-term volume (fast MA) to long-term volume (slow MA). It answers: "Is money flowing into this asset faster now than historically?"
Why it matters:
โข Volume often leads price (early warning system)
โข Confirms institutional participation (smart money)
โข No lag like price-based indicators
โข More intuitive than complex mathematical filters
When the ratio is above 1.2, you have strong evidence that institutions are accumulating (bullish) or distributing (bearish).
Q: How do I set up alerts?
A: Two options:
Option 1 - Automatic Alerts:
1. Right-click on chart โ Add Alert
2. Condition: Select this indicator
3. Choose "Any alert() function call"
4. Configure notification method (app, email, webhook)
5. You'll receive detailed alerts on every BUY and SELL signal
Option 2 - Customizable Alert Conditions:
1. Right-click on chart โ Add Alert
2. Condition: Select this indicator
3. You'll see three options in dropdown:
- "BUY Signal" (long signals only)
- "SELL Signal" (short signals only)
- "ANY Signal" (both BUY and SELL)
4. Choose desired option and customize message template
5. Uses TradingView placeholders: {{ticker}}, {{close}}, {{time}}, etc.
All alerts fire only on confirmed bar close (no repaint).
Q: What is Scalpel Mode and should I use it?
A: Scalpel Mode waits for healthy pullbacks within established trends before signaling entry. It reduces whipsaws and improves entry timing.
Recommended ON for:
โข Swing traders (want precision entries on pullbacks)
โข Day traders (willing to wait for better prices)
โข Risk-averse traders (prefer fewer but higher-quality entries)
Recommended OFF for:
โข Scalpers (need immediate entries, can't wait for pullbacks)
โข Momentum traders (want to enter on breakout, not pullback)
โข Aggressive traders (prefer more opportunities over precision)
Q: Why do some duration estimates show wider ranges than others?
A: Range width reflects historical trend variability:
โข Narrow range: Similar historical trends had consistent durations (high confidence)
โข Wide range: Similar historical trends had varying durations (lower confidence)
Wide ranges often occur:
โข Early in analysis (fewer historical trends to learn from)
โข In volatile/choppy markets (inconsistent trend behavior)
โข On lower timeframes (more noise, less consistency)
The median and average still provide useful targets even when range is wide.
Q: Can I customize the dashboard position and appearance?
A: Yes! Dashboard settings include:
โข Position: 9 options (Top/Middle/Bottom + Left/Center/Right)
โข Text Size: Auto, Tiny, Small, Normal, Large, Huge
โข Show/Hide: Toggle entire dashboard on/off
Choose position that doesn't overlap important price action on your specific chart.
Q: Which timeframe should I trade on?
A: Depends on your trading style and time availability:
โข 1-5 minute: Active scalping, requires constant monitoring
โข 15m-1h: Day trading, check few times per session
โข 4h-Daily: Swing trading, check once or twice daily
โข Daily-Weekly: Position trading, check weekly
General principle: Higher timeframes produce:
โข Fewer signals (less frequent)
โข Higher quality setups (stronger confirmations)
โข More reliable duration estimates (better statistical data)
โข Less noise (clearer trends)
Start with Daily chart if new to trading. Move to lower timeframes as you gain experience.
Q: Does this work on all markets (stocks, crypto, forex)?
A: Yes, it works on all markets with trending characteristics:
Excellent for:
โข Stocks (especially growth and momentum names)
โข Crypto (BTC, ETH, major altcoins)
โข Futures (indices, commodities)
โข Forex majors (EUR/USD, GBP/USD, etc.)
Best results on:
โข Trending markets (not range-bound)
โข Liquid instruments (tight spreads, good fills)
โข Volatile assets (clear trend development)
Less effective on:
โข Range-bound/sideways markets
โข Ultra-low volatility instruments
โข Illiquid small-caps (use caution)
Configure Asset Type (in Advanced analysis mode) to match your instrument for best accuracy.
Q: How many signals should I expect per day/week?
A: Highly variable based on:
By Timeframe:
โข 1-5 minute: 5-15 signals per session
โข 15m-1h: 2-5 signals per day
โข 4h-Daily: 2-5 signals per week
โข Daily-Weekly: 1-2 signals per month
By Market Volatility:
โข High volatility = more SuperTrend flips = more signals
โข Low volatility = fewer flips = fewer signals
By Quality Filter:
โข Higher threshold (60-70) = fewer but better signals
โข Lower threshold (30-40) = more signals, lower quality
By Volume Momentum Filter:
โข Enabled = Fewer signals (only volume-confirmed)
โข Disabled = More signals (all SuperTrend flips)
Adjust quality threshold and filters to match your desired signal frequency.
Q: What's the difference between entry labels and info labels?
A:
Entry Labels (BUY/SELL):
โข Your primary trading signals
โข Based on SuperTrend flip + all confirmations (quality, volume, momentum)
โข Include quality score and confirmation icons
โข These are actionable entry points
Info Labels (Volume Spike):
โข Additional market context
โข Show volume events that may support or contradict trend
โข 8-bar cooldown to prevent spam
โข NOT necessarily entry points - contextual information only
Control separately: Can show entry labels without info labels (recommended for clean charts).
Q: Can I combine this with other indicators?
A: Absolutely! This works well with:
โข RSI: For divergences and overbought/oversold conditions
โข Support/Resistance: Confluence with key levels
โข Fibonacci Retracements: Pullback targets in Scalpel Mode
โข Price Action Patterns: Flags, pennants, cup-and-handle
โข MACD: Additional momentum confirmation
โข Bollinger Bands: Volatility context
This indicator provides trend direction and duration estimates - complement with other tools for entry refinement and additional confluence.
Q: Why did I get a low-quality signal? Can I filter them out?
A: Yes! Increase the Minimum Quality Score in settings.
If you're seeing signals with quality below your preference:
โข Day Trading: Set minimum to 50
โข Swing Trading: Set minimum to 60
โข Position Trading: Set minimum to 70
Only signals meeting the threshold will appear. This reduces frequency but improves win-rate.
Q: How do I interpret the MTF Confluence count?
A: Shows how many of 6 timeframes agree with current trend:
โข 6/6 aligned: Perfect agreement (extremely rare, highest confidence)
โข 5/6 aligned: Very strong alignment (high confidence)
โข 4/6 aligned: Good alignment (standard quality setup)
โข 3/6 aligned: Moderate alignment (acceptable)
โข 2/6 aligned: Weak alignment (caution)
โข 1/6 aligned: Very weak (likely counter-trend)
Higher confluence typically correlates with longer, stronger trends. However, MTF analysis is optional - you can disable it and rely solely on quality scoring.
Q: Is this suitable for beginners?
A: Yes, but requires foundational knowledge:
You should understand:
โข Basic trend-following concepts (higher highs, higher lows)
โข Risk management principles (position sizing, stop losses)
โข How to read candlestick charts
โข What volume and volatility mean
Beginner-friendly features:
โข Auto preset mode (zero configuration)
โข Quality scoring (tells you signal strength)
โข Dashboard tooltips (hover for explanations)
โข duration analysis boxes (visual profit targets)
Recommended for beginners:
1. Start with "Auto" or "Swing Trading" preset on Daily chart
2. Use Standard Analysis Mode (not Advanced)
3. Set minimum quality to 60 (fewer but better signals)
4. Paper trade first for 2-4 weeks
5. Study methodology references (Minervini, O'Neil, Zanger)
Q: What is the Asset Type setting and why does it matter?
A: Asset Type (in Advanced analysis mode) adjusts duration estimates based on volatility characteristics:
โข Small Cap: Explosive moves, extended trends (+30-40%)
โข Biotech / Speculative: Parabolic potential, news-driven (+40%)
โข Blue Chip / Large Cap: Baseline, steady trends (0% adjustment)
โข Tech Growth: Momentum-driven, longer trends (+20%)
โข Dividend / Value: Slower, grinding trends (-20%)
โข Cyclical: Macro-driven, variable (ยฑ10%)
โข Crypto / High Volatility: Parabolic potential (+30%)
Correct configuration improves Statistical accuracy by 15-20%. Using Blue Chip settings on a biotech stock may underestimate trend length (you'll exit too early).
Q: Can I backtest this indicator?
A: Yes! TradingView's Strategy Tester works with this indicator's signals.
To backtest:
1. Note the entry conditions (SuperTrend flip + quality threshold + filters)
2. Create a strategy script using same logic
3. Run Strategy Tester on historical data
Additionally, the indicator includes BUILT-IN duration estimate validation:
โข System backtests its own duration estimates
โข Shows accuracy metrics in dashboard and duration analysis boxes
โข Helps assess reliability on your specific symbol/timeframe
Q: Why does Volume Momentum auto-disable in Scalping mode?
A: Scalping requires ultra-fast entries to catch quick moves. Volume Momentum filter adds friction by requiring volume confirmation before signaling, which can cause missed opportunities in rapid scalping.
Scalping preset is optimized for speed and frequency - the filter is counterproductive for that style. It remains enabled for Day Trading, Swing Trading, and Position Trading presets where patience improves results.
You can manually enable it in Custom mode if desired.
Q: How much historical data do I need for accurate duration estimates?
A:
Minimum: 50-100 bars (indicator will function but duration estimates less reliable)
Recommended: 500+ bars (robust statistical database)
Optimal: 1000+ bars (maximum Statistical accuracy)
More history = more completed trends = better pattern matching = more accurate duration estimates.
New symbols or newly-switched timeframes will have lower Statistical accuracy initially. Allow 2-4 weeks for the system to build historical database.
IMPORTANT DISCLAIMERS
No Guarantee of Profit:
This indicator is an educational tool and does not guarantee any specific trading results. All trading involves substantial risk of loss. Duration estimates are statistical calculations based on historical patterns and are not guarantees of future performance.
Past Performance:
Historical backtest results and Statistical accuracy statistics do not guarantee future performance. Market conditions change constantly. What worked historically may not work in current or future markets.
Not Financial Advice:
This indicator provides technical analysis signals and statistical duration estimates only. It is not financial, investment, or trading advice. Always consult with a qualified financial advisor before making investment decisions.
Risk Warning:
Trading stocks, options, futures, forex, and cryptocurrencies involves significant risk. You can lose all of your invested capital. Never trade with money you cannot afford to lose. Only risk capital you can lose without affecting your lifestyle.
Testing Required:
Always test this indicator on a demo account or with paper trading before risking real capital. Understand how it works in different market conditions. Verify Statistical accuracy on your specific instruments and timeframes before trusting it with real money.
User Responsibility:
You are solely responsible for your trading decisions. The developer assumes no liability for trading losses, incorrect duration estimates, software errors, or any other damages incurred while using this indicator.
Statistical Estimation Limitations:
Trend Duration estimates are statistical estimates based on historical pattern matching. They are NOT guarantees. Actual trend durations may differ significantly from duration estimates due to unforeseen news events, market regime changes, or lack of historical precedent for current conditions.
CREDITS & ACKNOWLEDGMENTS
Methodology Inspiration:
โข Mark Minervini - Volatility Contraction Pattern (VCP) concepts and pullback entry techniques
โข William O'Neil - Volume analysis principles and CANSLIM institutional buying patterns
โข Dan Zanger - Momentum breakout strategies and volatility expansion entries
Technical Components:
โข SuperTrend calculation - Classic ATR-based trend indicator (public domain)
โข Statistical analysis - Standard median, average, range calculations
โข k-Nearest Neighbors - Classic machine learning similarity matching concept
โข Multi-timeframe analysis - Standard request.security implementation in Pine Script
For questions, feedback, or support, please comment below or send a private message.
Happy Trading!
Scout Regiment - OBV# Scout Regiment - OBV Indicator
## English Documentation
### Overview
Scout Regiment - OBV (On-Balance Volume) is an advanced momentum indicator that combines volume and price movement to identify the strength of buying and selling pressure. This indicator features an oscillator-based approach with divergence detection to help traders spot potential trend reversals and confirm price movements.
### What is OBV?
On-Balance Volume (OBV) is a cumulative volume indicator that adds volume on up days and subtracts volume on down days:
- **Rising OBV**: Accumulation (buying pressure)
- **Falling OBV**: Distribution (selling pressure)
- **OBV Oscillator**: The difference between OBV and its smoothed moving average, making divergences easier to spot
### Key Features
#### 1. **OBV Oscillator Display**
Instead of displaying raw OBV values, this indicator shows the oscillator (difference between OBV and its smoothed line):
**Benefits:**
- Easier to identify divergences
- Clearer trend changes
- More sensitive to momentum shifts
- Zero line as reference point
**Visual Elements:**
- **Step Line**: Main OBV oscillator line
- Green: Positive oscillator (accumulation)
- Red: Negative oscillator (distribution)
- **Histogram**: Visual representation of oscillator strength
- Green bars: Above zero line
- Red bars: Below zero line
- **Zero Line**: White dotted horizontal line as reference
#### 2. **Smoothing Options**
Choose from multiple moving average types to smooth the OBV:
- **None**: Raw OBV (most sensitive)
- **SMA**: Simple Moving Average (equal weight)
- **EMA**: Exponential Moving Average (recent price emphasis) - Default
- **SMMA (RMA)**: Smoothed Moving Average (very smooth)
- **WMA**: Weighted Moving Average (linear weight)
- **VWMA**: Volume Weighted Moving Average (volume emphasis)
**Default Settings:**
- Type: EMA
- Length: 21 periods
- Best for: Most market conditions
#### 3. **Multi-Timeframe Analysis**
- Calculate OBV on any timeframe
- View higher timeframe momentum on lower timeframe charts
- Align trades with larger timeframe volume trends
- Empty field = Current chart timeframe
#### 4. **Visual Enhancements**
**Background Color**
- Light green: Positive oscillator (bullish volume pressure)
- Light red: Negative oscillator (bearish volume pressure)
- Optional display for cleaner charts
**Crossover Labels**
- "็ช็ ด" (Breakout): When oscillator crosses above zero
- "่ท็ ด" (Breakdown): When oscillator crosses below zero
- Indicates potential trend changes
- Can be toggled on/off
#### 5. **Comprehensive Divergence Detection**
The indicator automatically detects four types of divergences:
**Regular Bullish Divergence (Yellow)**
- **Price**: Makes lower lows
- **OBV**: Makes higher lows
- **Signal**: Potential upward reversal
- **Label**: "็ๆถจ" (Bullish)
- **Use**: Enter long positions
**Regular Bearish Divergence (Blue)**
- **Price**: Makes higher highs
- **OBV**: Makes lower highs
- **Signal**: Potential downward reversal
- **Label**: "็่ท" (Bearish)
- **Use**: Enter short positions or exit longs
**Hidden Bullish Divergence (Light Yellow)**
- **Price**: Makes higher lows
- **OBV**: Makes lower lows
- **Signal**: Trend continuation (uptrend)
- **Label**: "้่็ๆถจ" (Hidden Bullish)
- **Use**: Add to long positions
**Hidden Bearish Divergence (Light Blue)**
- **Price**: Makes lower highs
- **OBV**: Makes higher highs
- **Signal**: Trend continuation (downtrend)
- **Label**: "้่็่ท" (Hidden Bearish)
- **Use**: Add to short positions
#### 6. **Customizable Divergence Detection**
**Pivot Lookback Settings:**
- **Left Lookback**: Bars to the left of pivot (default: 5)
- **Right Lookback**: Bars to the right of pivot (default: 5)
- Determines how "extreme" a point must be to qualify as a pivot
**Range Settings:**
- **Maximum Range**: Maximum bars between pivots (default: 60)
- **Minimum Range**: Minimum bars between pivots (default: 5)
- Filters out too-close or too-distant divergences
**Display Options:**
- Toggle regular divergences on/off
- Toggle hidden divergences on/off
- Toggle divergence labels on/off
- Show only the divergences you need
### Configuration Settings
#### Smoothing Settings
- **Smoothing Type**: Choose MA type (None/SMA/EMA/SMMA/WMA/VWMA)
- **Smoothing Length**: Number of periods for smoothing (default: 21)
#### Calculation Settings
- **Timeframe**: Select calculation timeframe (empty = current chart)
#### Display Settings
- **Show OBV Line**: Toggle step line display
- **Show OBV Histogram**: Toggle histogram display
- **Show Background Color**: Toggle background coloring
- **Show Crossover Labels**: Toggle breakout/breakdown labels
#### Divergence Settings
- **Pivot Right Lookback**: Right bars for pivot detection (default: 5)
- **Pivot Left Lookback**: Left bars for pivot detection (default: 5)
- **Range Maximum**: Max bars between divergences (default: 60)
- **Range Minimum**: Min bars between divergences (default: 5)
- **Show Regular Divergences**: Enable/disable regular divergences
- **Show Regular Labels**: Enable/disable regular divergence labels
- **Show Hidden Divergences**: Enable/disable hidden divergences
- **Show Hidden Labels**: Enable/disable hidden divergence labels
### How to Use
#### For Trend Confirmation
1. **Identify Trend with Price**
- Uptrend: Higher highs and higher lows
- Downtrend: Lower highs and lower lows
2. **Confirm with OBV Oscillator**
- Strong uptrend: OBV oscillator staying positive
- Strong downtrend: OBV oscillator staying negative
- Weak trend: OBV oscillator frequently crossing zero
3. **Volume Confirmation**
- Trend with increasing OBV = Strong trend
- Trend with decreasing OBV = Weak trend (watch for reversal)
#### For Divergence Trading
1. **Enable Divergence Detection**
- Start with regular divergences only
- Add hidden divergences for trend continuation
2. **Wait for Divergence Signal**
- Yellow label = Potential bullish reversal
- Blue label = Potential bearish reversal
3. **Confirm with Price Action**
- Wait for support/resistance break
- Look for candlestick confirmation
- Check higher timeframe alignment
4. **Enter Trade**
- Enter after confirmation
- Set stop loss beyond recent swing
- Target based on previous swing or support/resistance
#### For Breakout Trading
1. **Enable Crossover Labels**
- Identify when oscillator crosses zero line
2. **Confirm Volume Strength**
- Strong breakouts have large oscillator moves
- Weak breakouts barely cross zero
3. **Trade Direction**
- "็ช็ ด" label = Enter long
- "่ท็ ด" label = Enter short
4. **Manage Position**
- Exit when oscillator crosses back
- Use price structure for stops
#### For Multi-Timeframe Analysis
1. **Set Higher Timeframe**
- Example: On 15min chart, set timeframe to 1H or 4H
2. **Identify Higher Timeframe Trend**
- Positive oscillator = Uptrend bias
- Negative oscillator = Downtrend bias
3. **Trade with the Trend**
- Only take long signals in uptrend
- Only take short signals in downtrend
4. **Time Entries**
- Use current timeframe for precise entry
- Confirm with higher timeframe direction
### Trading Strategies
#### Strategy 1: Regular Divergence Reversal
**Setup:**
1. Price in strong trend (up or down)
2. Regular divergence appears
3. Price reaches support/resistance level
**Entry:**
- Bullish: After "็ๆถจ" label, when price breaks above recent high
- Bearish: After "็่ท" label, when price breaks below recent low
**Stop Loss:**
- Bullish: Below divergence low
- Bearish: Above divergence high
**Exit:**
- Take profit at next major support/resistance
- Or when opposite divergence appears
**Best For:** Swing trading, reversal trading
#### Strategy 2: Hidden Divergence Continuation
**Setup:**
1. Clear trend established
2. Price pulls back (retracement)
3. Hidden divergence appears
**Entry:**
- Bullish: After "้่็ๆถจ" label, when price resumes uptrend
- Bearish: After "้่็่ท" label, when price resumes downtrend
**Stop Loss:**
- Behind the pullback swing point
**Exit:**
- Trail stop as trend continues
- Exit on regular divergence (reversal signal)
**Best For:** Trend following, adding to positions
#### Strategy 3: Zero Line Crossover
**Setup:**
1. Enable crossover labels
2. Oscillator crosses zero line
3. Confirm with price structure break
**Entry:**
- "็ช็ ด" label = Buy signal
- "่ท็ ด" label = Sell signal
**Stop Loss:**
- Below/above recent swing
**Exit:**
- When oscillator crosses back over zero
- Or at predetermined target
**Best For:** Momentum trading, quick trades
#### Strategy 4: Multi-Timeframe Confluence
**Setup:**
1. Set indicator to higher timeframe (e.g., 4H on 1H chart)
2. Wait for higher TF oscillator to be positive (uptrend) or negative (downtrend)
3. Look for entries on current timeframe aligned with higher TF
**Entry:**
- Long: When both timeframes show positive oscillator or bullish divergence
- Short: When both timeframes show negative oscillator or bearish divergence
**Stop Loss:**
- Based on current timeframe structure
**Exit:**
- When higher timeframe oscillator turns negative (for longs) or positive (for shorts)
**Best For:** Swing trading, high-probability setups
### Best Practices
#### Volume Analysis
1. **Strong Moves Need Volume**
- Price increase + Rising OBV = Healthy uptrend
- Price increase + Falling OBV = Weak uptrend (warning)
2. **Watch for Confirmation**
- New highs with new OBV highs = Confirmed
- New highs without new OBV highs = Potential divergence
3. **Consider Context**
- Low volume periods (Asian session, holidays) = Less reliable
- High volume periods (News, London/NY overlap) = More reliable
#### Divergence Trading Tips
1. **Not All Divergences Work**
- Wait for price confirmation
- Stronger in oversold/overbought areas
- Better at support/resistance levels
2. **Multiple Divergences**
- Multiple divergences on same trend = Stronger signal
- Quick divergence failures = Ignore and wait for next
3. **Timeframe Matters**
- Higher timeframe divergences = More reliable
- Lower timeframe divergences = More frequent, less reliable
#### Smoothing Selection
1. **No Smoothing (None)**
- Most sensitive, more signals
- More noise, more false signals
- Best for: Scalping, very active trading
2. **EMA (Default)**
- Balanced approach
- Good for most strategies
- Best for: Swing trading, day trading
3. **SMMA (RMA)**
- Very smooth, fewer signals
- Less responsive to sudden changes
- Best for: Position trading, longer timeframes
### Indicator Combinations
**With Moving Averages:**
- Use EMAs for trend direction
- OBV for volume confirmation
- Enter when both align
**With RSI:**
- RSI for overbought/oversold
- OBV for volume confirmation
- Divergences on both = Stronger signal
**With Price Action:**
- Support/resistance for levels
- OBV for strength confirmation
- Breakouts with positive OBV = More likely to succeed
**With Bias Indicator:**
- Bias for price deviation
- OBV for volume confirmation
- Both showing divergence = High probability reversal
### Common Patterns
1. **Accumulation**: OBV rising while price consolidates (breakout likely)
2. **Distribution**: OBV falling while price consolidates (breakdown likely)
3. **Confirmation**: OBV and price both making new highs/lows (trend strong)
4. **Divergence**: OBV and price moving opposite directions (reversal warning)
5. **False Breakout**: Price breaks but OBV doesn't confirm (likely to fail)
### Performance Tips
- Disable unused display features for faster loading
- Start with regular divergences only, add hidden later
- Use histogram for quick visual reference
- Enable crossover labels for clear entry signals
- Test different smoothing lengths for your market
### Alert Conditions
The indicator includes alerts for:
- Regular bullish divergence detected
- Regular bearish divergence detected
- Hidden bullish divergence detected
- Hidden bearish divergence detected
**How to Set Alerts:**
1. Click on the indicator name
2. Select "Add Alert"
3. Choose condition
4. Configure notification method
---
## ไธญๆ่ฏดๆๆๆกฃ
### ๆฆ่ฟฐ
Scout Regiment - OBV๏ผ่ฝ้ๆฝฎ๏ผๆฏไธไธช้ซ็บงๅจ้ๆๆ ๏ผ็ปๅๆไบค้ๅไปทๆ ผๅๅจๆฅ่ฏๅซไนฐๅๅๅ็ๅผบๅบฆใ่ฏฅๆๆ ้็จๆฏ่กๅจๆนๆณๅนถๅ
ทๆ่็ฆปๆฃๆตๅ่ฝ๏ผๅธฎๅฉไบคๆ่
ๅ็ฐๆฝๅจ็่ถๅฟๅ่ฝฌๅนถ็กฎ่ฎคไปทๆ ผ่ตฐๅฟใ
### ไปไนๆฏOBV๏ผ
่ฝ้ๆฝฎ๏ผOBV๏ผๆฏไธไธช็ดฏ็งฏๆไบค้ๆๆ ๏ผๅจไธๆถจๆฅ็ดฏๅ ๆไบค้๏ผๅจไธ่ทๆฅๅๅปๆไบค้๏ผ
- **ไธๅ็OBV**๏ผ็งฏ็ดฏ๏ผไนฐๅ
ฅๅๅ๏ผ
- **ไธ้็OBV**๏ผๆดพๅ๏ผๅๅบๅๅ๏ผ
- **OBVๆฏ่กๅจ**๏ผOBVไธๅ
ถๅนณๆป็งปๅจๅนณๅ็บฟไน้ด็ๅทฎๅผ๏ผไฝฟ่็ฆปๆดๅฎนๆ่ฏๅซ
### ๆ ธๅฟๅ่ฝ
#### 1. **OBVๆฏ่กๅจๆพ็คบ**
่ฏฅๆๆ ไธๆพ็คบๅๅงOBVๅผ๏ผ่ๆฏๆพ็คบๆฏ่กๅจ๏ผOBVไธๅ
ถๅนณๆป็บฟไน้ด็ๅทฎๅผ๏ผ๏ผ
**ไผๅฟ๏ผ**
- ๆดๅฎนๆ่ฏๅซ่็ฆป
- ่ถๅฟๅๅๆดๆธ
ๆฐ
- ๅฏนๅจ้ๅๅๆดๆๆ
- ้ถ็บฟไฝไธบๅ่็น
**่ง่งๅ
็ด ๏ผ**
- **้ถๆขฏ็บฟ**๏ผไธปOBVๆฏ่กๅจ็บฟ
- ็ปฟ่ฒ๏ผๆญฃๆฏ่กๅจ๏ผ็งฏ็ดฏ๏ผ
- ็บข่ฒ๏ผ่ดๆฏ่กๅจ๏ผๆดพๅ๏ผ
- **ๆฑ็ถๅพ**๏ผๆฏ่กๅจๅผบๅบฆ็ๅฏ่งๅ่กจ็คบ
- ็ปฟ่ฒๆฑ๏ผ้ถ็บฟไปฅไธ
- ็บข่ฒๆฑ๏ผ้ถ็บฟไปฅไธ
- **้ถ็บฟ**๏ผ็ฝ่ฒ่็บฟไฝไธบๅ่
#### 2. **ๅนณๆป้้กน**
้ๆฉๅค็ง็งปๅจๅนณๅ็ฑปๅๆฅๅนณๆปOBV๏ผ
- **None**๏ผๅๅงOBV๏ผๆๆๆ๏ผ
- **SMA**๏ผ็ฎๅ็งปๅจๅนณๅ๏ผ็ญๆ้๏ผ
- **EMA**๏ผๆๆฐ็งปๅจๅนณๅ๏ผๅผบ่ฐ่ฟๆไปทๆ ผ๏ผ- ้ป่ฎค
- **SMMA (RMA)**๏ผๅนณๆป็งปๅจๅนณๅ๏ผ้ๅธธๅนณๆป๏ผ
- **WMA**๏ผๅ ๆ็งปๅจๅนณๅ๏ผ็บฟๆงๆ้๏ผ
- **VWMA**๏ผๆไบค้ๅ ๆ็งปๅจๅนณๅ๏ผๅผบ่ฐๆไบค้๏ผ
**้ป่ฎค่ฎพ็ฝฎ๏ผ**
- ็ฑปๅ๏ผEMA
- ้ฟๅบฆ๏ผ21ๅจๆ
- ้ๅ๏ผๅคงๅคๆฐๅธๅบ็ถๅต
#### 3. **ๅคๆถ้ดๆกๆถๅๆ**
- ๅจไปปไฝๆถ้ดๆกๆถไธ่ฎก็ฎOBV
- ๅจไฝๆถ้ดๆกๆถๅพ่กจไธๆฅ็้ซๆถ้ดๆกๆถๅจ้
- ไฝฟไบคๆไธๆดๅคงๆถ้ดๆกๆถ็ๆไบค้่ถๅฟไฟๆไธ่ด
- ็ฉบๅญๆฎต = ๅฝๅๅพ่กจๆถ้ดๆกๆถ
#### 4. **่ง่งๅขๅผบ**
**่ๆฏ้ข่ฒ**
- ๆต
็ปฟ่ฒ๏ผๆญฃๆฏ่กๅจ๏ผ็ๆถจๆไบค้ๅๅ๏ผ
- ๆต
็บข่ฒ๏ผ่ดๆฏ่กๅจ๏ผ็่ทๆไบค้ๅๅ๏ผ
- ๅฏ้ๆพ็คบ๏ผๅพ่กจๆดๆธ
็ฝ
**็ฉฟ่ถๆ ็ญพ**
- "็ช็ ด"๏ผๆฏ่กๅจๅไธ็ฉฟ่ถ้ถ็บฟ
- "่ท็ ด"๏ผๆฏ่กๅจๅไธ็ฉฟ่ถ้ถ็บฟ
- ๆ็คบๆฝๅจ่ถๅฟๅๅ
- ๅฏๅผๅ
ณ
#### 5. **ๅ
จ้ข็่็ฆปๆฃๆต**
ๆๆ ่ชๅจๆฃๆตๅ็ง็ฑปๅ็่็ฆป๏ผ
**ๅธธ่ง็ๆถจ่็ฆป๏ผ้ป่ฒ๏ผ**
- **ไปทๆ ผ**๏ผๅๆฐไฝ
- **OBV**๏ผๅๆด้ซ็ไฝ็น
- **ไฟกๅท**๏ผๆฝๅจๅไธๅ่ฝฌ
- **ๆ ็ญพ**๏ผ"็ๆถจ"
- **็จ้**๏ผ่ฟๅ
ฅๅคๅคดไปไฝ
**ๅธธ่ง็่ท่็ฆป๏ผ่่ฒ๏ผ**
- **ไปทๆ ผ**๏ผๅๆฐ้ซ
- **OBV**๏ผๅๆดไฝ็้ซ็น
- **ไฟกๅท**๏ผๆฝๅจๅไธๅ่ฝฌ
- **ๆ ็ญพ**๏ผ"็่ท"
- **็จ้**๏ผ่ฟๅ
ฅ็ฉบๅคดไปไฝๆ้ๅบๅคๅคด
**้่็ๆถจ่็ฆป๏ผๆต
้ป่ฒ๏ผ**
- **ไปทๆ ผ**๏ผๅๆด้ซ็ไฝ็น
- **OBV**๏ผๅๆดไฝ็ไฝ็น
- **ไฟกๅท**๏ผ่ถๅฟๅปถ็ปญ๏ผไธๅ่ถๅฟ๏ผ
- **ๆ ็ญพ**๏ผ"้่็ๆถจ"
- **็จ้**๏ผๅ ไปๅคๅคด
**้่็่ท่็ฆป๏ผๆต
่่ฒ๏ผ**
- **ไปทๆ ผ**๏ผๅๆดไฝ็้ซ็น
- **OBV**๏ผๅๆด้ซ็้ซ็น
- **ไฟกๅท**๏ผ่ถๅฟๅปถ็ปญ๏ผไธ้่ถๅฟ๏ผ
- **ๆ ็ญพ**๏ผ"้่็่ท"
- **็จ้**๏ผๅ ไป็ฉบๅคด
#### 6. **ๅฏ่ชๅฎไน็่็ฆปๆฃๆต**
**ๆข่ฝดๅๆบฏ่ฎพ็ฝฎ๏ผ**
- **ๅทฆไพงๅๆบฏ**๏ผๆข่ฝด็นๅทฆไพงK็บฟๆฐ๏ผ้ป่ฎค๏ผ5๏ผ
- **ๅณไพงๅๆบฏ**๏ผๆข่ฝด็นๅณไพงK็บฟๆฐ๏ผ้ป่ฎค๏ผ5๏ผ
- ๅณๅฎไธไธช็น่ฆๅค"ๆ็ซฏ"ๆ่ฝๆไธบๆข่ฝด็น
**่ๅด่ฎพ็ฝฎ๏ผ**
- **ๆๅคง่ๅด**๏ผๆข่ฝด็นไน้ดๆๅคงK็บฟๆฐ๏ผ้ป่ฎค๏ผ60๏ผ
- **ๆๅฐ่ๅด**๏ผๆข่ฝด็นไน้ดๆๅฐK็บฟๆฐ๏ผ้ป่ฎค๏ผ5๏ผ
- ่ฟๆปคๅคช่ฟๆๅคช่ฟ็่็ฆป
**ๆพ็คบ้้กน๏ผ**
- ๅผๅ
ณๅธธ่ง่็ฆป
- ๅผๅ
ณ้่่็ฆป
- ๅผๅ
ณ่็ฆปๆ ็ญพ
- ๅชๆพ็คบ้่ฆ็่็ฆป
### ้
็ฝฎ่ฎพ็ฝฎ
#### ๅนณๆป่ฎพ็ฝฎ
- **ๅนณๆป็ฑปๅ**๏ผ้ๆฉMA็ฑปๅ๏ผNone/SMA/EMA/SMMA/WMA/VWMA๏ผ
- **ๅนณๆป้ฟๅบฆ**๏ผๅนณๆปๅจๆๆฐ๏ผ้ป่ฎค๏ผ21๏ผ
#### ่ฎก็ฎ่ฎพ็ฝฎ
- **ๆถ้ดๅจๆ**๏ผ้ๆฉ่ฎก็ฎๆถ้ดๆกๆถ๏ผ็ฉบ = ๅฝๅๅพ่กจ๏ผ
#### ๆพ็คบ่ฎพ็ฝฎ
- **ๆพ็คบOBV็น็บฟ**๏ผๅๆข้ถๆขฏ็บฟๆพ็คบ
- **ๆพ็คบOBVๆฑ็ถๅพ**๏ผๅๆขๆฑ็ถๅพๆพ็คบ
- **ๆพ็คบ่ๆฏ้ข่ฒ**๏ผๅๆข่ๆฏ็่ฒ
- **ๆพ็คบ็ช็ ดๆ ็ญพ**๏ผๅๆข็ช็ ด/่ท็ ดๆ ็ญพ
#### ่็ฆป่ฎพ็ฝฎ
- **ๆข่ฝดๅณไพงๅๆบฏ**๏ผๆข่ฝดๆฃๆตๅณไพงK็บฟๆฐ๏ผ้ป่ฎค๏ผ5๏ผ
- **ๆข่ฝดๅทฆไพงๅๆบฏ**๏ผๆข่ฝดๆฃๆตๅทฆไพงK็บฟๆฐ๏ผ้ป่ฎค๏ผ5๏ผ
- **ๅ็่ๅดๆๅคงๅผ**๏ผ่็ฆปไน้ดๆๅคงK็บฟๆฐ๏ผ้ป่ฎค๏ผ60๏ผ
- **ๅ็่ๅดๆๅฐๅผ**๏ผ่็ฆปไน้ดๆๅฐK็บฟๆฐ๏ผ้ป่ฎค๏ผ5๏ผ
- **ๆพ็คบๅธธ่ง่็ฆป**๏ผๅฏ็จ/็ฆ็จๅธธ่ง่็ฆป
- **ๆพ็คบๅธธ่ง่็ฆปๆ ็ญพ**๏ผๅฏ็จ/็ฆ็จๅธธ่ง่็ฆปๆ ็ญพ
- **ๆพ็คบ้่่็ฆป**๏ผๅฏ็จ/็ฆ็จ้่่็ฆป
- **ๆพ็คบ้่่็ฆปๆ ็ญพ**๏ผๅฏ็จ/็ฆ็จ้่่็ฆปๆ ็ญพ
### ไฝฟ็จๆนๆณ
#### ่ถๅฟ็กฎ่ฎค
1. **็จไปทๆ ผ่ฏๅซ่ถๅฟ**
- ไธๅ่ถๅฟ๏ผๆด้ซ็้ซ็นๅๆด้ซ็ไฝ็น
- ไธ้่ถๅฟ๏ผๆดไฝ็้ซ็นๅๆดไฝ็ไฝ็น
2. **็จOBVๆฏ่กๅจ็กฎ่ฎค**
- ๅผบๅฒไธๅ่ถๅฟ๏ผOBVๆฏ่กๅจไฟๆๆญฃๅผ
- ๅผบๅฒไธ้่ถๅฟ๏ผOBVๆฏ่กๅจไฟๆ่ดๅผ
- ๅผฑๅฟ่ถๅฟ๏ผOBVๆฏ่กๅจ้ข็น็ฉฟ่ถ้ถ็บฟ
3. **ๆไบค้็กฎ่ฎค**
- ่ถๅฟไผด้ไธๅ็OBV = ๅผบ่ถๅฟ
- ่ถๅฟไผด้ไธ้็OBV = ๅผฑ่ถๅฟ๏ผๆณจๆๅ่ฝฌ๏ผ
#### ่็ฆปไบคๆ
1. **ๅฏ็จ่็ฆปๆฃๆต**
- ๅ
ไปๅธธ่ง่็ฆปๅผๅง
- ๆทปๅ ้่่็ฆป็จไบ่ถๅฟๅปถ็ปญ
2. **็ญๅพ
่็ฆปไฟกๅท**
- ้ป่ฒๆ ็ญพ = ๆฝๅจ็ๆถจๅ่ฝฌ
- ่่ฒๆ ็ญพ = ๆฝๅจ็่ทๅ่ฝฌ
3. **็จไปทๆ ผ่กไธบ็กฎ่ฎค**
- ็ญๅพ
ๆฏๆ/้ปๅ็ช็ ด
- ๅฏปๆพK็บฟ็กฎ่ฎค
- ๆฃๆฅๆด้ซๆถ้ดๆกๆถๅฏน้ฝ
4. **่ฟๅ
ฅไบคๆ**
- ็กฎ่ฎคๅ่ฟๅ
ฅ
- ๅจ่ฟๆๆณขๅจไนๅค่ฎพ็ฝฎๆญขๆ
- ๅบไบๅไธๆณขๅจๆๆฏๆ/้ปๅ่ฎพๅฎ็ฎๆ
#### ็ช็ ดไบคๆ
1. **ๅฏ็จ็ฉฟ่ถๆ ็ญพ**
- ่ฏๅซๆฏ่กๅจไฝๆถ็ฉฟ่ถ้ถ็บฟ
2. **็กฎ่ฎคๆไบค้ๅผบๅบฆ**
- ๅผบ็ช็ ดๆๅคงๆฏ่กๅจ็งปๅจ
- ๅผฑ็ช็ ดๅๅผบ็ฉฟ่ถ้ถ็บฟ
3. **ไบคๆๆนๅ**
- "็ช็ ด"ๆ ็ญพ = ่ฟๅ
ฅๅคๅคด
- "่ท็ ด"ๆ ็ญพ = ่ฟๅ
ฅ็ฉบๅคด
4. **็ฎก็ไปไฝ**
- ๆฏ่กๅจๅๅ็ฉฟ่ถๆถ้ๅบ
- ไฝฟ็จไปทๆ ผ็ปๆ่ฎพ็ฝฎๆญขๆ
#### ๅคๆถ้ดๆกๆถๅๆ
1. **่ฎพ็ฝฎๆด้ซๆถ้ดๆกๆถ**
- ไพๅฆ๏ผๅจ15ๅ้ๅพไธ๏ผ่ฎพ็ฝฎๆถ้ดๆกๆถไธบ1Hๆ4H
2. **่ฏๅซๆด้ซๆถ้ดๆกๆถ่ถๅฟ**
- ๆญฃๆฏ่กๅจ = ไธๅ่ถๅฟๅๅ
- ่ดๆฏ่กๅจ = ไธ้่ถๅฟๅๅ
3. **้กบ่ถๅฟไบคๆ**
- ไป
ๅจไธๅ่ถๅฟไธญๆฅๅๅคๅคดไฟกๅท
- ไป
ๅจไธ้่ถๅฟไธญๆฅๅ็ฉบๅคดไฟกๅท
4. **ๆๆกๅ
ฅๅบๆถๆบ**
- ไฝฟ็จๅฝๅๆถ้ดๆกๆถ่ฟ่ก็ฒพ็กฎ่ฟๅ
ฅ
- ็จๆด้ซๆถ้ดๆกๆถๆนๅ็กฎ่ฎค
### ไบคๆ็ญ็ฅ
#### ็ญ็ฅ1๏ผๅธธ่ง่็ฆปๅ่ฝฌ
**่ฎพ็ฝฎ๏ผ**
1. ไปทๆ ผๅคไบๅผบ่ถๅฟ๏ผไธๆถจๆไธ่ท๏ผ
2. ๅบ็ฐๅธธ่ง่็ฆป
3. ไปทๆ ผๅฐ่พพๆฏๆ/้ปๅๆฐดๅนณ
**ๅ
ฅๅบ๏ผ**
- ็ๆถจ๏ผๅจ"็ๆถจ"ๆ ็ญพๅ๏ผไปทๆ ผ็ช็ ด่ฟๆ้ซ็นๆถ
- ็่ท๏ผๅจ"็่ท"ๆ ็ญพๅ๏ผไปทๆ ผ่ท็ ด่ฟๆไฝ็นๆถ
**ๆญขๆ๏ผ**
- ็ๆถจ๏ผ่็ฆปไฝ็นไนไธ
- ็่ท๏ผ่็ฆป้ซ็นไนไธ
**้ๅบ๏ผ**
- ๅจไธไธไธชไธป่ฆๆฏๆ/้ปๅ่ทๅฉ
- ๆๅบ็ฐ็ธๅ่็ฆปๆถ
**้ๅ๏ผ**ๆณขๆฎตไบคๆใๅ่ฝฌไบคๆ
#### ็ญ็ฅ2๏ผ้่่็ฆปๅปถ็ปญ
**่ฎพ็ฝฎ๏ผ**
1. ๅปบ็ซๆ็กฎ่ถๅฟ
2. ไปทๆ ผๅ่ฐ๏ผๅๆค๏ผ
3. ๅบ็ฐ้่่็ฆป
**ๅ
ฅๅบ๏ผ**
- ็ๆถจ๏ผๅจ"้่็ๆถจ"ๆ ็ญพๅ๏ผไปทๆ ผๆขๅคไธๅ่ถๅฟๆถ
- ็่ท๏ผๅจ"้่็่ท"ๆ ็ญพๅ๏ผไปทๆ ผๆขๅคไธ้่ถๅฟๆถ
**ๆญขๆ๏ผ**
- ๅจๅ่ฐๆณขๅจ็นไนๅ
**้ๅบ๏ผ**
- ้็่ถๅฟๅปถ็ปญ็งปๅจๆญขๆ
- ๅบ็ฐๅธธ่ง่็ฆป๏ผๅ่ฝฌไฟกๅท๏ผๆถ้ๅบ
**้ๅ๏ผ**่ถๅฟ่ท้ใๅ ไป
#### ็ญ็ฅ3๏ผ้ถ็บฟ็ฉฟ่ถ
**่ฎพ็ฝฎ๏ผ**
1. ๅฏ็จ็ฉฟ่ถๆ ็ญพ
2. ๆฏ่กๅจ็ฉฟ่ถ้ถ็บฟ
3. ็จไปทๆ ผ็ปๆ็ช็ ด็กฎ่ฎค
**ๅ
ฅๅบ๏ผ**
- "็ช็ ด"ๆ ็ญพ = ไนฐๅ
ฅไฟกๅท
- "่ท็ ด"ๆ ็ญพ = ๅๅบไฟกๅท
**ๆญขๆ๏ผ**
- ่ฟๆๆณขๅจไนไธ/ไนไธ
**้ๅบ๏ผ**
- ๆฏ่กๅจๅๅ็ฉฟ่ถ้ถ็บฟๆถ
- ๆๅจ้ขๅฎ็ฎๆ
**้ๅ๏ผ**ๅจ้ไบคๆใๅฟซ้ไบคๆ
#### ็ญ็ฅ4๏ผๅคๆถ้ดๆกๆถๆฑๅ
**่ฎพ็ฝฎ๏ผ**
1. ่ฎพ็ฝฎๆๆ ๅฐๆด้ซๆถ้ดๆกๆถ๏ผไพๅฆ๏ผๅจ1Hๅพไธ่ฎพ็ฝฎ4H๏ผ
2. ็ญๅพ
ๆด้ซTFๆฏ่กๅจไธบๆญฃ๏ผไธๅ่ถๅฟ๏ผๆ่ด๏ผไธ้่ถๅฟ๏ผ
3. ๅจๅฝๅๆถ้ดๆกๆถไธๅฏปๆพไธๆด้ซTFไธ่ด็ๅ
ฅๅบๆบไผ
**ๅ
ฅๅบ๏ผ**
- ๅคๅคด๏ผไธคไธชๆถ้ดๆกๆถ้ฝๆพ็คบๆญฃๆฏ่กๅจๆ็ๆถจ่็ฆปๆถ
- ็ฉบๅคด๏ผไธคไธชๆถ้ดๆกๆถ้ฝๆพ็คบ่ดๆฏ่กๅจๆ็่ท่็ฆปๆถ
**ๆญขๆ๏ผ**
- ๅบไบๅฝๅๆถ้ดๆกๆถ็ปๆ
**้ๅบ๏ผ**
- ๆด้ซๆถ้ดๆกๆถๆฏ่กๅจๅไธบ่ด๏ผๅคๅคด๏ผๆๆญฃ๏ผ็ฉบๅคด๏ผๆถ
**้ๅ๏ผ**ๆณขๆฎตไบคๆใ้ซๆฆ็่ฎพ็ฝฎ
### ๆไฝณๅฎ่ทต
#### ๆไบค้ๅๆ
1. **ๅผบๅฟๆณขๅจ้่ฆๆไบค้**
- ไปทๆ ผไธๆถจ + ไธๅ็OBV = ๅฅๅบทไธๅ่ถๅฟ
- ไปทๆ ผไธๆถจ + ไธ้็OBV = ๅผฑไธๅ่ถๅฟ๏ผ่ญฆๅ๏ผ
2. **ๆณจๆ็กฎ่ฎค**
- ๆฐ้ซไผด้ๆฐOBV้ซ็น = ๅทฒ็กฎ่ฎค
- ๆฐ้ซๆฒกๆๆฐOBV้ซ็น = ๆฝๅจ่็ฆป
3. **่่่ๆฏ**
- ไฝๆไบค้ๆ๏ผไบๆดฒๆถๆฎตใๅๆ๏ผ= ๅฏ้ ๆง่พไฝ
- ้ซๆไบค้ๆ๏ผๆฐ้ปใไผฆๆฆ/็บฝ็บฆ้ๅ ๏ผ= ๆดๅฏ้
#### ่็ฆปไบคๆๆๅทง
1. **ไธๆฏๆๆ่็ฆป้ฝๆๆ**
- ็ญๅพ
ไปทๆ ผ็กฎ่ฎค
- ๅจ่ถ
ๅ/่ถ
ไนฐๅบๅๆดๅผบ
- ๅจๆฏๆ/้ปๅๆฐดๅนณๆดๅฅฝ
2. **ๅค้่็ฆป**
- ๅไธ่ถๅฟไธๅคไธช่็ฆป = ๆดๅผบไฟกๅท
- ่็ฆปๅฟซ้ๅคฑ่ดฅ = ๅฟฝ็ฅๅนถ็ญๅพ
ไธไธไธช
3. **ๆถ้ดๆกๆถ้่ฆ**
- ๆด้ซๆถ้ดๆกๆถ่็ฆป = ๆดๅฏ้
- ๆดไฝๆถ้ดๆกๆถ่็ฆป = ๆด้ข็น๏ผๅฏ้ ๆง่พไฝ
#### ๅนณๆป้ๆฉ
1. **ๆ ๅนณๆป๏ผNone๏ผ**
- ๆๆๆ๏ผๆดๅคไฟกๅท
- ๆดๅคๅช้ณ๏ผๆดๅคๅไฟกๅท
- ้ๅ๏ผๅฅๅคด็ฎใ้ๅธธๆดป่ท็ไบคๆ
2. **EMA๏ผ้ป่ฎค๏ผ**
- ๅนณ่กกๆนๆณ
- ้ๅๅคงๅคๆฐ็ญ็ฅ
- ้ๅ๏ผๆณขๆฎตไบคๆใๆฅๅ
ไบคๆ
3. **SMMA (RMA)**
- ้ๅธธๅนณๆป๏ผๆดๅฐไฟกๅท
- ๅฏน็ช็ถๅๅๅๅบ่พๆ
ข
- ้ๅ๏ผไปไฝไบคๆใๆด้ฟๆถ้ดๆกๆถ
### ๆๆ ็ปๅ
**ไธ็งปๅจๅนณๅ็บฟ้
ๅ๏ผ**
- ไฝฟ็จEMA็กฎๅฎ่ถๅฟๆนๅ
- OBV็กฎ่ฎคๆไบค้
- ไธค่
ไธ่ดๆถ่ฟๅ
ฅ
**ไธRSI้
ๅ๏ผ**
- RSI็จไบ่ถ
ไนฐ่ถ
ๅ
- OBV็จไบๆไบค้็กฎ่ฎค
- ไธค่
้ฝ่็ฆป = ๆดๅผบไฟกๅท
**ไธไปทๆ ผ่กไธบ้
ๅ๏ผ**
- ๆฏๆ/้ปๅ็กฎๅฎๆฐดๅนณ
- OBV็กฎ่ฎคๅผบๅบฆ
- ๆญฃOBV็็ช็ ด = ๆดๅฏ่ฝๆๅ
**ไธBiasๆๆ ้
ๅ๏ผ**
- Bias็จไบไปทๆ ผๅ็ฆป
- OBV็จไบๆไบค้็กฎ่ฎค
- ไธค่
้ฝๆพ็คบ่็ฆป = ้ซๆฆ็ๅ่ฝฌ
### ๅธธ่งๅฝขๆ
1. **็งฏ็ดฏ**๏ผOBVไธๅ่ไปทๆ ผ็ๆด๏ผ็ช็ ดๅฏ่ฝ๏ผ
2. **ๆดพๅ**๏ผOBVไธ้่ไปทๆ ผ็ๆด๏ผ่ท็ ดๅฏ่ฝ๏ผ
3. **็กฎ่ฎค**๏ผOBVๅไปทๆ ผ้ฝๅๆฐ้ซ/ๆฐไฝ๏ผ่ถๅฟๅผบๅฒ๏ผ
4. **่็ฆป**๏ผOBVๅไปทๆ ผๅๅ็งปๅจ๏ผๅ่ฝฌ่ญฆๅ๏ผ
5. **ๅ็ช็ ด**๏ผไปทๆ ผ็ช็ ดไฝOBVไธ็กฎ่ฎค๏ผๅฏ่ฝๅคฑ่ดฅ๏ผ
### ๆง่ฝๆ็คบ
- ็ฆ็จๆชไฝฟ็จ็ๆพ็คบๅ่ฝไปฅๅ ๅฟซๅ ่ฝฝ
- ๅ
ไปๅธธ่ง่็ฆปๅผๅง๏ผ็จๅๆทปๅ ้่่็ฆป
- ไฝฟ็จๆฑ็ถๅพๅฟซ้่ง่งๅ่
- ๅฏ็จ็ฉฟ่ถๆ ็ญพไปฅ่ทๅพๆธ
ๆฐ็ๅ
ฅๅบไฟกๅท
- ไธบๆจ็ๅธๅบๆต่ฏไธๅ็ๅนณๆป้ฟๅบฆ
### ่ญฆๆฅๆกไปถ
ๆๆ ๅ
ๅซไปฅไธ่ญฆๆฅ๏ผ
- ๆฃๆตๅฐๅธธ่ง็ๆถจ่็ฆป
- ๆฃๆตๅฐๅธธ่ง็่ท่็ฆป
- ๆฃๆตๅฐ้่็ๆถจ่็ฆป
- ๆฃๆตๅฐ้่็่ท่็ฆป
**ๅฆไฝ่ฎพ็ฝฎ่ญฆๆฅ๏ผ**
1. ็นๅปๆๆ ๅ็งฐ
2. ้ๆฉ"ๆทปๅ ่ญฆๆฅ"
3. ้ๆฉๆกไปถ
4. ้
็ฝฎ้็ฅๆนๆณ
---
## Technical Support
For questions or issues, please refer to the TradingView community or contact the indicator creator.
## ๆๆฏๆฏๆ
ๅฆๆ้ฎ้ข๏ผ่ฏทๅ่TradingView็คพๅบๆ่็ณปๆๆ ๅๅปบ่
ใ
DMV Volume Volume Radar SIMPLEThis indicator helps identify early signs of accumulation, breakout, and distribution by analyzing relative volume and price action within defined ranges.
It detects:
๐ต ACCUM: High relative volume with buying pressure near support (early accumulation)
๐ข BRK: High relative volume near range high with bullish price action (potential breakout)
๐ด DIST: High relative volume with selling pressure near range high (distribution / potential reversal)
How it works:
Measures relative volume vs. a moving average
Builds a dynamic price range using recent swing highs/lows
Looks for wick behavior + location in range to validate signals
Color-codes candles and adds labels for quick visualization
Optional alert conditions are baked in for automated notifications
Perfect for:
Pre-breakout positioning
Spotting smart-money accumulation
Identifying distribution zones for exits or reversals
Works best on 15mโ4h timeframes for crypto and alts
Twiggs Go Money Flow Enhanced [KingThies]โ OVERVIEW
The Twiggs Money Flow (TMF) is a volume-weighted momentum oscillator that
measures buying and sellistng pressure by analyzing where price closes within
each bar's true range. It's an enhanced version of Chaikin Money Flow that
uses Wilder's smoothing method, providing better trend persistence and
smoother signals.
The indicator oscillates around a zero listne:
Values above zero indicate accumulation (buying pressure)
Values below zero indicate distribution (sellistng pressure)
TMF was developed by Colistn Twiggs as an improvement over traditional money
flow indicators by incorporating true range calculations and Wilder's
exponential moving average.
โ CONCEPTS
True Range Boundaries
TMF calculates a modified true range for each bar by comparing the current
bar's high and low with the previous close:
True Range High = maximum of (previous close, current high)
True Range Low = minimum of (previous close, current low)
This accounts for overnight gaps and ensures price continuity between bars.
Average Daily Value (ADV)
The ADV represents the portion of volume attributable to buying versus sellistng:
ADV = Volume ร ((Close - TR Low) - (TR High - Close)) / True Range
When price closes near the high of the true range, ADV is positive and large.
When price closes near the low, ADV is negative and large.
A close in the middle produces values near zero.
Wilder's Moving Average
Unlistke simple moving averages, Wilder's smoothing method gives more weight
to recent values while maintaining memory of historical data:
WMA = (Previous WMA ร (Period - 1) + Current Value) / Period
This creates smoother trends that are less prone to whipsaws than standard
moving averages.
Final Calculation
TMF = Wilder's MA(ADV, Period) / Wilder's MA(Volume, Period)
By dividing smoothed ADV by smoothed volume, TMF normalistzes the reading and
makes it comparable across different securities and timeframes.
โ HOW TO USE
Zero listne Crossovers
The most straightforward trading signals:
A cross above zero suggests buyers are gaining control.
Consider this a bullistsh signal, especially when confirmed by price action.
A cross below zero suggests sellers are gaining control.
Consider this a bearish signal.
The longer TMF remains above or below zero, the stronger the trend.
Extreme Values
Strong positive or negative readings indicate intense buying or sellistng pressure:
Sustained high positive values (above +0.4) suggest strong accumulation
but may also indicate overbought conditions.
Sustained low negative values (below -0.4) suggest strong distribution
but may also indicate oversold conditions.
These extremes work best when used in conjunction with price levels and
support/resistance zones.
Divergences
Divergences between price and TMF often signal potential reversals:
Bearish divergence: Price makes a higher high but TMF makes a
lower high โ suggests buying pressure is weakening despite rising prices.
Bullistsh divergence: Price makes a lower low but TMF makes a
higher low โ suggests sellistng pressure is weakening despite fallistng prices.
Trend Confirmation
Use TMF to confirm the strength of existing trends:
In an uptrend, TMF should remain mostly positive with occasional dips below zero.
In a downtrend, TMF should remain mostly negative with occasional rises above zero.
If TMF contradicts the price trend, consider the trend weak or potentially ending.
โ FEATURES
Period (default: 21)
The lookback length for Wilder's moving average calculation:
Shorter periods (10โ15) make TMF more responsive to recent changes but
increase noise and false signals.
Longer periods (30โ50) create smoother readings but lag price action more
significantly.
The default 21-period setting balances responsiveness with relistabilistty.
Consider adjusting the period based on your trading timeframe and the
volatilistty of the security you're analyzing.
โ LIMITATIONS
TMF is a lagging indicator due to its smoothing method. Signals may occur
after optimal entry or exit points.
In low-volume or illistquid markets, TMF can produce erratic readings that
may not reflect true buying or sellistng pressure.
Ranging or choppy markets often generate frequent zero-listne crosses that
can lead to whipsaws.
listke all volume-based indicators, TMF's relistabilistty depends on accurate
volume data.
For securities with unrelistable volume reporting, consider using
price-based momentum indicators instead.
โ NOTES
This indicator uses area-style plotting in the original version to visualistze
the magnitude of buying and sellistng pressure. The filled area makes it easy
to see at a glance whether the market is in accumulation or distribution mode.
TMF works on any timeframe but tends to be most relistable on daily charts
where volume data is most accurate and meaningful.
โ CREDITS
Original indicator developed by
LazyBear .
Based on the Twiggs Money Flow concept from Incredible Charts:
Incredible Charts โ Twiggs Money Flow .
DRACO Tomas Delta (Custom/Monthly)๐ DRACO Delta SessionBox (Custom / Monthly)
Overview
The DRACO Delta SessionBox is an advanced visual and analytical tool designed to measure and display cumulative buying and selling pressure (ฮ โ delta) within a user-defined time window, such as a specific custom date range, a recurring monthly period, or the entire current month.
It visually represents market accumulation or distribution phases by calculating an approximate delta โ the imbalance between bullish and bearish volume โ and then aggregates it inside a dynamic โboxโ that spans only the selected time window.
Core Concept
Delta in this context is an approximation of the real order-flow delta (buy vs sell volume difference).
Since TradingView doesnโt provide raw tick-by-tick trade direction data, this indicator uses a proxy formula based on OHLC and volume data:
ฮ per bar
=
Volume
ร
(
Close
โ
Open
)
max
โก
(
High
โ
Low
,
Tick Size
)
ฮ per bar=Volumeร
max(HighโLow,Tick Size)
(CloseโOpen)
โ
This gives a very effective approximation of intrabar directional pressure โ whether volume was dominated by buyers (ฮ > 0) or sellers (ฮ < 0).
Modes
The indicator can operate in three distinct modes:
๐ Custom DateTime
The user manually sets an exact date & time range (From โ To).
The box only measures delta and volume accumulation within this window.
Ideal for analyzing specific events, like FOMC weeks, quarterly earnings, or macro periods.
๐ Monthly Window
The user selects start and end days of the month (e.g. 5โ20).
The same window repeats automatically every month.
Useful for identifying recurring accumulation or distribution cycles within months.
๐งญ Whole Month
Automatically measures and visualizes delta for the entire current calendar month.
The box resets when a new month begins.
Provides a macro-level view of monthly directional bias.
VWAP Composites๐ VWAP Composite - Advanced Multi-Period Volume Weighted Average Price Indicator
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ OVERVIEW
VWAP Composite is an advanced volume-weighted average price (VWAP) indicator that goes beyond traditional single-period VWAP calculations by offering composite multi-period analysis and unprecedented customization. This indicator solves a common problem traders face: traditional VWAP resets at arbitrary intervals (session start, day, week), but significant price action and volume accumulation often spans multiple periods. VWAP Composite allows you to anchor VWAP calculations to any timeframeโor combine multiple periods into a single composite VWAPโgiving you a true representation of average price weighted by volume across the exact periods that matter to your analysis.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ HOW IT WORKS - CALCULATION METHODOLOGY
๐ CORE VWAP CALCULATION
The indicator calculates VWAP using the standard volume-weighted formula:
โข Typical Price = (High + Low + Close) / 3
โข VWAP = ฮฃ(Typical Price ร Volume) / ฮฃ(Volume)
This calculation is performed across user-defined time periods, ensuring each bar's contribution to the average is proportional to its trading volume.
๐ STANDARD DEVIATION BANDS
The indicator calculates volume-weighted standard deviation to measure price dispersion around the VWAP:
โข Variance = ฮฃ / ฮฃ(Volume)
โข Standard Deviation = โVariance
โข Upper Band = VWAP + (StdDev ร Multiplier)
โข Lower Band = VWAP - (StdDev ร Multiplier)
These bands help identify overbought/oversold conditions relative to the volume-weighted mean, with high-volume price excursions having greater impact on band width than low-volume moves.
๐ COMPOSITE PERIOD METHODOLOGY (Auto Mode)
Unlike traditional VWAP that resets at fixed intervals, Auto Mode creates composite VWAPs by combining the current period with N previous periods:
โข Period Span = 1: Current period only (standard VWAP behavior)
โข Period Span = 2: Current period + 1 previous period combined
โข Period Span = 3: Current period + 2 previous periods combined
โข And so on...
Example: A 3-period Weekly composite VWAP calculates from the start of 2 weeks ago through the current week's end, creating a single VWAP that represents 21 days of continuous price and volume data. This provides context about where price stands relative to the volume-weighted average over multiple weeks, not just the current week.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง KEY FEATURES & ORIGINALITY
โ
DUAL OPERATING MODES
1๏ธโฃ MANUAL MODE (5 Independent VWAPs)
Define up to 5 separate VWAP calculations with custom start/end times:
โข Perfect for anchoring VWAP to specific events (earnings, Fed announcements, major reversals)
โข Each VWAP has independent color settings for lines and deviation band backgrounds
โข Individual control over calculation extension and visual extension (explained below)
โข Useful for tracking multiple institutional accumulation/distribution zones simultaneously
2๏ธโฃ AUTO MODE (Composite Period VWAP)
Automatically calculates VWAP across combined time periods:
โข Supported periods: Daily, Weekly, Monthly, Quarterly, Yearly
โข Configurable period span (1-20 periods)
โข Always up-to-date, recalculates on each new bar
โข Ideal for systematic analysis across consistent timeframes
โ
DUAL EXTENSION SYSTEM (Manual Mode Innovation)
Most VWAP indicators only offer "on/off" for extending calculations. This indicator provides two distinct extension options:
๐น EXTEND CALCULATION TO CURRENT BAR
When enabled, continues including new bars in the VWAP calculation after the defined end time. The VWAP value updates dynamically as new volume enters the market.
Use case: You anchored VWAP to a major low 3 weeks ago. You want the VWAP to continue evolving with new volume data to track ongoing institutional positioning.
๐น EXTEND VISUAL LINE ONLY
When enabled (and calculation extension is disabled), projects the "frozen" VWAP value forward as a reference line. The VWAP value remains fixed at what it was at the end time, but the line and deviation bands visually extend to current price.
Use case: You want to see how price is behaving relative to the VWAP that existed at a specific point in time (e.g., "Where is price now vs. the 5-day VWAP that existed at last Friday's close?").
This dual system gives you unprecedented control over whether you're tracking a "living" VWAP that incorporates new data or using historical VWAP levels as static reference points.
โ
CUSTOMIZABLE STANDARD DEVIATION BANDS
โข Adjustable multiplier (0.1 to 5.0)
โข Independent background colors with opacity control for each VWAP
โข Dashed band lines for easy visual distinction from main VWAP
โข Bands extend when visual extension is enabled, maintaining zone visibility
โ
COMPREHENSIVE LABELING SYSTEM
Each VWAP displays:
โข Current VWAP value
โข Upper deviation band value (High)
โข Lower deviation band value (Low)
โข Extension status indicator (Calc Extended / Visual Extended)
โข Color-coded for quick identification
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ HOW TO USE THIS INDICATOR
๐ฏ SCENARIO 1: EVENT-ANCHORED VWAP (Manual Mode)
Use case: A stock gaps down 15% on earnings and you want to track where institutions are positioning during the recovery.
Setup:
1. Switch to Manual Mode
2. Enable VWAP 1
3. Set Start Time to the earnings gap bar
4. Set End Time to current time (or leave far in future)
5. Enable "Extend Calculation to Current Bar"
6. Watch how price respects the VWAP as a dynamic support/resistance
Interpretation:
โข Price above VWAP = buyers in control since the event
โข Price testing VWAP from above = potential support
โข Volume-weighted standard deviation bands show normal price range
โข Price outside bands = potential exhaustion/mean reversion setup
๐ฏ SCENARIO 2: MULTI-WEEK INSTITUTIONAL ACCUMULATION ZONE (Auto Mode)
Use case: You trade swing setups and want to identify where institutions have been accumulating over the past 3 weeks.
Setup:
1. Switch to Auto Mode
2. Select "Weekly" period type
3. Set Period Span to 3
4. Enable standard deviation bands
Interpretation:
โข 3-week composite VWAP shows the true average institutional entry
โข Price bouncing off VWAP repeatedly = strong support (institutions defending their average)
โข Price breaking below VWAP on high volume = potential distribution
โข Deviation bands contracting = consolidation; expanding = volatility increase
๐ฏ SCENARIO 3: COMPARING MULTIPLE TIME HORIZONS (Manual Mode)
Use case: You want to see short-term vs medium-term vs long-term VWAP alignments.
Setup:
1. Switch to Manual Mode
2. VWAP 1: Last 5 trading days (blue)
3. VWAP 2: Last 10 trading days (orange)
4. VWAP 3: Last 20 trading days (purple)
5. Enable "Extend Calculation" for all
6. Set different background colors for visual separation
Interpretation:
โข All VWAPs aligned upward = strong trend across all timeframes
โข Price between VWAPs = finding equilibrium between different trader timeframes
โข Short-term VWAP crossing long-term VWAP = momentum shift
โข Price rejecting at higher-timeframe VWAP = that timeframe's traders defending their average
๐ฏ SCENARIO 4: HISTORICAL VWAP REFERENCE LEVELS (Manual Mode)
Use case: You want to see where the 1-month VWAP was at each month-end as static reference levels.
Setup:
1. Switch to Manual Mode
2. VWAP 1: Set to last month's start/end dates
3. VWAP 2: Set to 2 months ago start/end dates
4. VWAP 3: Set to 3 months ago start/end dates
5. Disable "Extend Calculation"
6. Enable "Extend Visual Line Only"
Interpretation:
โข Each VWAP represents the volume-weighted average for that complete month
โข These become static support/resistance levels
โข Price returning to old monthly VWAPs = institutional memory/gap fill behavior
โข Useful for identifying longer-term value areas
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐จ CUSTOMIZATION OPTIONS
GENERAL SETTINGS
โข Show/hide labels
โข Line style: Solid, Dashed, or Dotted
โข Standard deviation multiplier (impacts band width)
โข Toggle standard deviation bands on/off
MANUAL MODE (Per VWAP)
โข Custom start and end times
โข Line color picker
โข Background color picker (with transparency control)
โข Extend calculation option
โข Extend visual option
โข Show/hide individual VWAPs
AUTO MODE
โข Period type selection (Daily/Weekly/Monthly/Quarterly/Yearly)
โข Period span (1-20 periods)
โข Line color
โข Background color (with transparency control)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก TRADING APPLICATIONS
โ Mean Reversion: Use deviation bands to identify stretched prices likely to return to VWAP
โ Trend Confirmation: Price sustained above VWAP = bullish bias; below = bearish bias
โ Support/Resistance: VWAP often acts as dynamic S/R, especially on higher volume periods
โ Institutional Positioning: Multi-day/week VWAPs show where large players have established positions
โ Entry Timing: Wait for pullbacks to VWAP in trending markets
โ Stop Placement: Use VWAP ยฑ standard deviation as volatility-adjusted stop levels
โ Breakout Confirmation: Breakouts from consolidation with price reclaiming VWAP = stronger signal
โ Multi-Timeframe Analysis: Compare short vs long-period VWAPs to gauge momentum alignment
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ IMPORTANT NOTES
โข The indicator redraws on each bar to maintain accurate visual representation (uses `barstate.islast`)
โข Maximum lookback is limited to 5000 bars for performance optimization
โข Time range calculations work across all timeframes but are most effective on intraday to daily charts
โข Standard deviation bands assume volume-weighted distribution; extreme events may violate assumptions
โข Auto mode always calculates to current bar; use Manual mode for fixed historical periods
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
This indicator is open-source. Feel free to examine the code, learn from it, and adapt it to your needs.






















