Uptrick: Zero Lag HMA Trend Suite1. Name and Purpose
Uptrick: Zero Lag HMA Trend Suite is a Pine Version 6 script that builds upon the Hull Moving Average (HMA) to offer an advanced trend analysis tool. Its purpose is to help traders identify trend direction, potential reversals, and overall market momentum with reduced lag compared to traditional moving averages. By combining the HMA with Average True Range (ATR) thresholds, slope-dependent coloring, Volume Weighted Average Price (VWAP) ribbons, and optional reversal signals, the script aims to give a detailed view of price activity in various market environments.
2. Overview
This script begins with the calculation of a Hull Moving Average, a method that blends Weighted Moving Averages in a way designed to cut down on lag while still smoothing out price fluctuations. Next, several enhancements are applied. The script compares current HMA values to previous ones for slope-based coloring, which highlights uptrends and downtrends at a glance. It also plots buy and sell signals when price moves beyond or below thresholds determined by the ATR and the user’s chosen signal multiplier. An optional VWAP ribbon can be shown to confirm bullish or bearish conditions relative to a volume-weighted benchmark. Additionally, the script can plot reversal signals (labeled with B) at points where price crosses back toward the HMA from above or below. Taken together, these elements allow traders to visualize both the short-term momentum and the broader context of how price interacts with volatility and overall market direction.
3. Why These Indicators Have Been Linked Together
The reason the Hull Moving Average, the Average True Range, and the VWAP have been integrated into one script is to tackle multiple facets of market analysis in a single tool. The Zero Lag Hull Moving Average provides a responsive trend line, the ATR offers a measure of volatility that helps distinguish significant price shifts from typical fluctuations, and the VWAP acts as a reference for fair value based on traded volume. By layering all three, the script helps traders avoid the need to juggle multiple separate indicators and offers a holistic perspective. The slope-based coloring focuses on trend direction, the ATR-based thresholds refine possible buy and sell zones, and the VWAP ribbons provide insight into how price stands relative to an important volume-weighted level. The inclusion of up and down signals and reversal B labels further refines entries and exits.
4. Why Use Uptrick: Zero Lag HMA Trend Suite
The Hull Moving Average is already known for reacting more quickly to price changes compared to other moving averages while retaining a degree of smoothness. This suite enhances the basic HMA by showing colored gradients that make it easy to spot trend direction changes, highlighting potential entry or exit points based on volatility-driven thresholds, and optionally layering a volume-based measure of bullish or bearish market sentiment. By relying on a zero lag approach and additional data points, the script caters to those wanting a more responsive method of identifying shifts in market dynamics. The added reversal signals and up or down alerts give traders extra confirmation for potential turning points.
5. How This Extension Improves on the Basic HMA
This extension not only plots the Hull Moving Average but also includes data-driven alerts and visual cues that traditional HMA lines do not provide. First, it offers multi-layered slope coloring, making up or down trends quickly apparent. Second, it uses ATR-based thresholds to pinpoint moments when price may be extending beyond normal volatility, thus generating buy or sell signals. Third, the script introduces an optional VWAP ribbon to indicate whether the market is trading above or below this pivotal volume-weighted benchmark, adding a further confirmation step for bullish or bearish conditions. Finally, it incorporates optional reversal signals labeled with B, indicating points where price might swing back toward the main HMA line.
6. Core Components
The script can be broken down into several primary functions and features.
a. Zero Lag HMA Calculation
Uses two Weighted Moving Averages (half-length and full-length) combined through a smoothing step based on the square root of the chosen length. This approach is designed to reduce lag significantly compared to other moving averages.
b. Slope Detection
Compares current and prior HMA values to determine if the trend is up or down. The slope-based coloring changes between turquoise shades for upward movement and magenta shades for downward movement, making trend direction immediately visible.
c. ATR-Based Thresholding for Up and Down Signals
The script calculates an Average True Range over a user-defined period, then multiplies it by a signal factor to form two bands around the HMA. When price crosses below the lower band, an up (buy) signal appears; when it crosses above the upper band, a down (sell) signal is shown.
d. Reversal Signals (B Labels)
Tracks when price transitions back toward the main HMA from an extreme zone. When enabled, these reversal points are labeled with a B and can help traders see potential turning points or mean-reversion setups.
e. VWAP Bands
An optional Volume Weighted Average Price ribbon that plots above or below the HMA, indicating bullish or bearish conditions relative to a volume-weighted price benchmark. This can also act as a kind of support/ resistance.
7. User Inputs
a. HMA Length
Controls how quickly the moving average responds to price changes. Shorter lengths react faster but can lead to more frequent signals, whereas longer lengths produce smoother lines.
b. Source
Specifies the price input, such as close or an alternative source, for the calculation. This can help align the HMA with specific trading strategies.
c. ATR Length and Signal Multiplier
Defines how the script calculates average volatility and sets thresholds for buy or sell alerts. Adjusting these values can help filter out noise or highlight more aggressive signals.
d. Slope Index
Determines how many bars to look back for detecting slope direction, influencing how sensitive the slope coloring is to small fluctuations.
e. Show Buy and Sell Signals, Reversal Signals, and VWAP
Lets users toggle the display of these features. Turning off certain elements can reduce chart clutter if traders prefer a simpler layout.
8. Calculation Process
The script’s calculation follows a step-by-step approach. It first computes two Weighted Moving Averages of the selected price source, one over half the specified length and one over the full length. It then combines these using 2*wma1 minus wma2 to reduce lag, followed by applying another weighted average using the square root of the length. Simultaneously, it computes the ATR for a user-defined period. By multiplying ATR by the signal multiplier, it establishes upper and lower bands around the HMA, where crossovers generate buy (up) or sell (down) signals. The script can also plot reversal signals (B labels) when price crosses back from these bands in the opposite direction. For the optional VWAP feature, Pine Script’s ta.vwap function is used, and differences between the HMA and VWAP levels determine the color and opacity of the ribbon.
9. Signal Generation and Filtering
The ATR-based thresholds reduce the influence of small, inconsequential price swings. When price falls below the lower band, the script issues an up (buy) signal. If price breaks above the upper band, a down (sell) signal appears. These signals are visible through labels placed near the bars. Reversal signals, labeled with B, can be turned on to help detect when price retraces from an extended area back toward the main HMA line. Traders can disable or enable these signals to match their preferred level of chart detail or risk tolerance.
10. Visualization on the Chart
The Zero HMA Lag Trend Suite aims for visual clarity. The HMA line is plotted multiple times with increasing transparency to create a gradient effect. Turquoise gradients indicate upward slopes, and magenta gradients signify downward slopes. Bar coloring can be configured to align with the slope direction, providing quick insight into current momentum. When enabled, buy or sell labels are placed under or above the bars as price crosses the ATR-defined boundaries. If the reversal option is active, B labels appear around areas where price changes direction. The optional VWAP ribbons form background bands, using distinct coloration to signal whether price is above or below the volume-weighted metric.
11. Market Adaptability
Because the script’s parameters (HMA length, ATR length, signal multiplier, and slope index) are user-configurable, it can adapt to a wide range of markets and timeframes. Intraday traders may prefer a shorter HMA length for quick signals, while swing or position traders might use a longer HMA length to filter out short-lived price changes. The source setting can also be adjusted, allowing for specialized data inputs beyond just close or open values.
12. Risk Management Considerations
The script’s signals and labels are based on past price data and volatility readings, and they do not guarantee profitable outcomes. Sharp market reversals or unforeseen fundamental events can produce false signals. Traders should combine this tool with broader risk management strategies, including stop-loss placement, position sizing, and independent market analyses. The Zero HMA Lag Trend Suite can help highlight potential opportunities, but it should not be relied upon as the sole basis for trade decisions.
13. Combining with Other Tools
Many traders choose to verify signals from the Zero HMA Lag Trend Suite using popular indicators like the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), or even simple volume-based metrics to confirm whether a price movement has sufficient momentum. Conventional techniques such as support and resistance levels, chart patterns, or candlestick analysis can also supplement signals generated by the script’s up, down, or reversal B labels.
14. Parameter Customization and Examples
a. Short-Term Day Trading
Using a shorter HMA length (for instance, 9 or 14) and a slightly higher ATR multiplier might provide timely buy and sell signals, though it may also produce more whipsaws in choppy markets.
b. Swing or Position Trading
Selecting a longer HMA length (such as 50 or 100) with a moderate ATR multiplier can help users track more significant and sustained market moves, potentially reducing the effect of minor fluctuations.
c. Multiple Timeframe Blends
Some traders load two versions of the indicator on the same chart, one for short-term signals (with frequent B label reversals) and another for the broader trend direction, aligning entry and exit decisions with the bigger picture.
15. Realistic Expectations
Even though the Hull Moving Average helps minimize lag and the script incorporates volatility-based filters and optional VWAP overlays, it cannot predict future market behavior with complete accuracy. Periods of low liquidity or sudden market shocks can still lead to signals that do not reflect longer-term trends. Frequent parameter review and manual confirmation are advised before executing trades based solely on the script’s outputs.
16. Theoretical Background
The Hull Moving Average formula aims to balance smoothness with reactivity, accomplished by combining Weighted Moving Averages at varying lengths. By subtracting a slower average from a faster one and then applying another smoothing step with the square root of the original length, the HMA is designed to respond more promptly to price changes than typical exponential or simple moving averages. The ATR component, introduced by J. Welles Wilder, calculates the average range of price movement over a user-defined period, allowing the script to assess volatility and adapt signals accordingly. VWAP provides a volume-weighted benchmark that many institutional traders track to gauge fair intraday value.
17. Originality and Uniqueness
Although multiple HMA-based indicators can be found, Uptrick: Zero Lag HMA Trend Suite sets itself apart by merging slope-based coloring, ATR thresholds, VWAP ribbons, up or down labels, and optional reversal signals all in one cohesive platform. This synergy aims to reduce chart clutter while still giving traders a comprehensive look at trend direction, volatility, and volume-based sentiment.
18. Summary
Uptrick: Zero Lag HMA Trend Suite is a specialized trading script designed to highlight potential market trends and reversals with minimal delay. It leverages the Hull Moving Average for an adaptive yet smooth price line, pairs ATR-based thresholds for detecting possible breakouts or dips, and provides VWAP-based ribbons for added volume-weighted context. Traders can further refine their entries and exits by enabling up or down signals and reversal labels (B) where price may revert toward the HMA. Suitable for a wide range of timeframes and instrument types, the script encourages a disciplined approach to trade management and risk control.
19. Disclaimer
This script is provided for informational and educational purposes only. Trading and investing involve significant financial risk, and no indicator can guarantee success under all conditions. Users should practice robust risk management, including the placement of stop losses and position sizing, and should confirm signals with additional analysis tools. The developer of this script assumes no liability for any trading decisions or outcomes resulting from its use.
Volatilite
Comprehensive Volume and Metrics with Pre-Market Volume Data
This script is designed for traders who want a detailed view of market activity, including regular market and pre-market volume, dollar volume, relative volume (RVOL), average daily range (ADR), average true range (ATR), relative strength index (RSI), and the QQQ’s percentage change.
The script includes customizable metrics displayed in tables on the chart for easy analysis, with the option to toggle the visibility of each metric.
Key Features:
Volume and Dollar Volume:
Displays the volume of shares traded during the current day (or pre-market, if enabled).
Includes a calculation of dollar volume, representing the total dollar amount of trades (Volume × Close Price).
Relative Volume (RVOL):
Displays RVOL Day, which is the relative volume of the current day compared to the 2-day moving average.
Shows RVOL 90D, indicating relative volume over the past 90 days.
Both RVOL metrics are calculated as percentages and display the percentage change compared to the standard (100%).
Pre-Market Data:
Includes pre-market volume (PVOL) and pre-market dollar volume (P$ VOL) which are displayed only if pre-market data is enabled.
Tracks volume and dollar volume during pre-market hours (4:00 AM to 9:30 AM Eastern Time) for more in-depth analysis.
Optionally, shows pre-market RSI based on volume-weighted close prices.
Average Daily Range (ADR):
Displays the percentage change between the highest and lowest prices over the defined ADR period (default is 20 days).
Average True Range (ATR):
Shows the ATR, a popular volatility indicator, for a given period (default is 14 bars).
RSI (Relative Strength Index):
Displays RSI for the given period (default is 14).
RSI is calculated using pre-market data when available.
QQQ:
Shows the percentage change of the QQQ ETF from the previous day’s close.
The QQQ percentage change is color-coded: green for positive, red for negative, and gray for no change.
Customizable Inputs:
Visibility Options: Toggle the visibility of each metric, such as volume, dollar volume, RVOL, ADR, ATR, RSI, and QQQ.
Pre-Market Data: Enable or disable the display of pre-market data for volume and dollar volume.
Table Positioning: Adjust the position of tables displaying the metrics either at the bottom-left or bottom-right of the chart.
Text Color and Table Background: Choose between white or black text for the tables and customize the background color.
Tables:
The script utilizes tables to display multiple metrics in an organized and easy-to-read format.
The values are updated dynamically, reflecting real-time data as the market moves.
Pre-Market Data:
The script calculates pre-market volume and dollar volume, along with other key metrics like RSI and RVOL, to help assess market sentiment before the market officially opens.
The pre-market data is accumulated from 4:00 AM to 9:30 AM ET, allowing for pre-market analysis and comparison to regular market hours.
User-Friendly and Flexible:
This script is designed to be highly customizable, giving you the ability to toggle which metrics to display and where they appear on the chart. You can easily focus on the data that matters most to your trading strategy.
Composite Indicator (CCI + ATR)Composite Indicator (CCI + ATR)
The Composite Indicator (CCI + ATR) combines the Commodity Channel Index (CCI) with the Average True Range (ATR) , providing traders with a dynamic tool for identifying entry and exit points based on momentum and volatility. This indicator is particularly useful for markets like cryptocurrencies, which often exhibit sharp sell-offs and gradual upward trends.
Key Features
Momentum Analysis with CCI: The CCI calculates price momentum by comparing the current price level to its average over a specific period. The indicator generates signals when CCI crosses predefined thresholds.
- Buy Signal: Triggered when CCI crosses above the lower threshold (e.g., -100).
- Sell Signal: Triggered when CCI crosses below the upper threshold (e.g., +100).
Volatility Filtering with ATR: The ATR measures market volatility, ensuring signals occur only during significant price movements.
Separate multipliers for buy and sell signals allow tailored filtering based on market behavior.
Stop Loss Calculation: Dynamic stop loss levels are calculated using the ATR multiplier to adapt to market volatility, offering better risk management.
How It Works
CCI Calculation: The CCI is calculated using the typical price ((High + Low + Close) / 3) and a user-defined length. It detects momentum changes by measuring deviations from the average price.
ATR Calculation: The ATR determines the average price range over a specified period, identifying the market’s volatility. The ATR SMA acts as a baseline to filter signals.
Buy Signal: A buy signal is triggered when:
- CCI crosses above the lower threshold (e.g., -100).
- ATR exceeds its SMA multiplied by the buy multiplier (e.g., 1.0).
Sell Signal: A sell signal is triggered when:
- CCI crosses below the upper threshold (e.g., +100).
- ATR exceeds its SMA multiplied by the sell multiplier (e.g., 0.95).
Stop Loss Integration:
- Long positions: Stop loss = Low – (ATR * ATR Multiplier)
- Short positions: Stop loss = High + (ATR * ATR Multiplier)
Advantages
Combines momentum (CCI) and volatility (ATR) for precise signal generation.
Customizable thresholds and multipliers for different market conditions.
Dynamic stop loss ensures better risk management in volatile markets.
Suggested Parameter Settings
CCI Length: 20 (default). Adjust as follows:
- 10–15: Shorter timeframes (e.g., 5-15 minutes).
- 20: General use for 1-hour timeframes.
- 30–50: Longer timeframes (e.g., 4-hour or daily charts).
CCI Threshold: 100 (default). Adjust as follows:
- 50–75: For more frequent signals in ranging markets.
- 100: Balanced for most trading conditions.
- 150–200: For strong trends to reduce noise.
ATR Length: 14 (default). Adjust as follows:
- 10–14: For assets with moderate volatility.
- 20: For assets with lower volatility.
ATR Buy Multiplier: 1.0 (default). Adjust as follows:
- 0.9–1.0: For gradual uptrends in crypto markets.
- 1.1–1.2: For stronger trend filtering.
ATR Sell Multiplier: 0.95 (default). Adjust as follows:
- 0.8–0.95: For sharp sell-offs.
- 1.0–1.1: For stable downward trends.
ATR Multiplier (Stop Loss): 1.5 (default). Adjust as follows:
- 1.0–1.2: For shorter timeframes or less volatile markets.
- 2.0–2.5: For highly volatile markets like cryptocurrencies.
Example Use Cases
Scalping (5-15 minute charts): Use CCI Length = 10, CCI Threshold = 75, ATR Buy Multiplier = 0.9, ATR Sell Multiplier = 0.8.
Day Trading (1-hour charts): Use CCI Length = 20, CCI Threshold = 100, ATR Buy Multiplier = 1.0, ATR Sell Multiplier = 0.95.
Swing Trading (4-hour or daily charts): Use CCI Length = 30, CCI Threshold = 150, ATR Buy Multiplier = 1.2, ATR Sell Multiplier = 1.0.
Final Thoughts The Composite Indicator (CCI + ATR) is a versatile tool designed to enhance trading decisions by combining momentum analysis with volatility filtering. Whether scalping or swing trading, this indicator provides actionable insights and robust risk management to navigate complex markets effectively.
Supertrend with Buy/Sell SignalsThis simple Supertrend with Buy/Sell Signals is a trend-following indicator that helps identify market direction and potential entry/exit points. It uses the Average True Range (ATR) to calculate a dynamic support and resistance line:
Buy Signal: A green "BUY" label appears when the price crosses above the Supertrend line, indicating a possible bullish trend.
Sell Signal: A red "SELL" label appears when the price crosses below the Supertrend line, signaling a potential bearish trend.
The indicator also adapts to market volatility and displays the trend line in green for uptrends and red for downtrends. It is best used in trending markets.
BB+RSI Entry Indicator UpdateThe BB+RSI Entry Indicator is a powerful tool designed to identify precise entry points for potential trades by leveraging Bollinger Bands and the Relative Strength Index (RSI). It provides clear visual signals when price momentum shifts after extreme market conditions, helping traders anticipate trend reversals or pullbacks.
Destek/Direnç ve Heikin Ashi Dönüş Sinyali - Mustafa Üstün//@version=6
indicator("Destek/Direnç ve Heikin Ashi Dönüş Sinyali", overlay=true)
// Kullanıcı parametreleri
length = input.int(20, "Destek/Direnç Periyodu")
atrMultiplier = input.float(0.5, "ATR Çarpanı")
// Heikin Ashi mumlarını hesaplama
var float haOpen = na
haClose = (open + high + low + close) / 4
haOpen := na(haOpen) ? (open + close) / 2 : (haOpen + haClose) / 2
haHigh = math.max(high, math.max(haOpen, haClose))
haLow = math.min(low, math.min(haOpen, haClose))
// Destek ve direnç seviyelerini hesaplama
support = ta.lowest(length)
resistance = ta.highest(length)
// Fiyatın destek/direnç seviyelerine yakın olup olmadığını kontrol et
atrValue = ta.atr(14)
nearSupport = math.abs(close - support) < (atrValue * atrMultiplier)
nearResistance = math.abs(close - resistance) < (atrValue * atrMultiplier)
// Heikin Ashi dönüş sinyalleri
bullishReversal = haClose > haOpen and haClose < haOpen
bearishReversal = haClose < haOpen and haClose > haOpen
// Dönüş sinyalleri: Destek/direnç bölgelerinde Heikin Ashi'ye dayalı
buySignal = nearSupport and bullishReversal
sellSignal = nearResistance and bearishReversal
// Grafik üzerine sinyalleri çizdirme
plotshape(series=buySignal, title="Al Sinyali", location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="AL")
plotshape(series=sellSignal, title="Sat Sinyali", location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="SAT")
// Destek ve direnç seviyelerini gösterme
plot(support, title="Destek", color=color.blue, linewidth=1, style=plot.style_line)
plot(resistance, title="Direnç", color=color.red, linewidth=1, style=plot.style_line)
// Heikin Ashi mumlarını çizdirme
plot(haClose, title="Heikin Ashi Kapanış", color=color.new(color.gray, 70))
vix//@version=5
indicator("Mikfiton Vix", overlay=false)
// India VIX input using the chart's timeframe
vixSource = request.security("NSE:INDIAVIX", timeframe.period, close)
// Determine the color of the VIX line based on the trend
vixColor = vixSource > vixSource ? color.red : color.green
// Plot India VIX with dynamic color based on trend
plot(vixSource, title="India VIX", color=vixColor, linewidth=2)
// Define volatility ranges
stableRange = vixSource >= 9 and vixSource < 12
volatileRange = vixSource >= 12 and vixSource < 14
highlyVolatileRange = vixSource >= 14 and vixSource <= 20
// Fill area based on volatility ranges
bgcolor(stableRange ? color.new(color.green, 90) : na, title="Stable Zone")
bgcolor(volatileRange ? color.new(color.yellow, 90) : na, title="Volatile Zone")
bgcolor(highlyVolatileRange ? color.new(color.red, 90) : na, title="Highly Volatile Zone")
Simplified HMM for Regime DetectionSimplified HMM made possible in PineScript
This is a very basic version of Hidden Markov Model used to detect market regimes. To not confuse with the real model.
There are 3 possible states:
Bull: Positive momentum and strong uptrend.
Bear: Negative momentum and strong downtrend.
Ranging: Weak momentum or indecisive market.
The table shows the current probability of convergence, aka. what's the probability that the market will stay in the same regime and the transition probability.
How to use?
This indicator doesn't generate entry signals and is best used to asses the current trend and trend strength. For more questions, don't hesitate to ask me.
Price Oscillator Indicator (for Grid Stratagy)What is this?
This indicator represents the range that the price travels from its lowest to its highest point within a single candlestick. It is calculated as follows: (Highest Price - Lowest Price) / Closing Price * 100.
What is its purpose?
The indicator is specifically designed for grid trading, allowing traders to evaluate the arbitrage efficiency of conducting grid trading on a particular asset.
How to use this indicator?
Add it to your TradingView chart and switch the chart to a 1-minute timeframe. You can adjust the 'slow sma length' parameter to calculate the price oscillator for a specific period (the default value is 4320, which equals 3 days). The higher the amplitude of an asset, the more efficient it may be to apply a grid trading strategy on that asset.
Please note, this indicator is solely for assessing the price fluctuation range of assets and should not be taken as investment advice.
Junates HMA BandsThis indicator uses HMA moving average to create a bollinger-like bands with -+2% deviation
Cumulative Price AverageThe Cumulative Price Average (CPA) indicator calculates and plots the overall average of candlestick prices, providing a smoothed representation of the market's long-term price trend. This is achieved by aggregating the averages of each candle (Open, High, Low, Close) and dynamically updating the overall average as new candles are added.
Key Features
Long-Term Price Perspective: Displays the cumulative average of all candles from the start of the chart.
Trend Visualization: Smooths out short-term price fluctuations to highlight the overall trend.
Dynamic Updates: The average adjusts with each new bar for real-time analysis.
Usage
Trend Analysis:
Identify long-term bullish or bearish trends by observing the slope of the CPA line.
Support/Resistance:
The CPA line can act as a dynamic support or resistance level for the price.
Price Comparison:
Compare the current price to the CPA to assess whether the market is overbought or oversold relative to its historical average.
This indicator is especially useful for traders seeking to incorporate a historical perspective into their analysis, providing insights into the broader market behavior beyond short-term volatility.
Composite Indicator (Donchian + OBV)Composite Indicator (Donchian + OBV)
The Composite Indicator (Donchian + OBV) is a powerful tool designed to evaluate the strength of market breakouts and momentum trends , offering traders a comprehensive perspective on price action. This indicator combines the Donchian Channel with On-Balance Volume (OBV) to create a dynamic and easy-to-interpret metric scaled between -1 and 1 .
Key Features
Breakout Strength Analysis:
- The indicator assesses the strength of price breakouts relative to the upper and lower bounds of the Donchian Channel.
- Positive values close to 1 indicate a strong bullish breakout.
- Negative values close to -1 indicate a strong bearish breakout.
Momentum Detection with OBV:
- On-Balance Volume (OBV) tracks the cumulative buying and selling volume to gauge market momentum.
- The smoothed OBV trend ensures the momentum component aligns with price action, reducing noise.
Integrated Composite Value:
- Combines breakout strength and OBV momentum into a single metric for enhanced clarity.
- The final composite value highlights whether the market is bullish, bearish, or neutral.
Divergence Detection:
- Spot bullish divergences when the indicator rises while price falls, suggesting a potential upward reversal.
- Identify bearish divergences when the indicator falls while price rises, hinting at a potential downward reversal.
How It Works
Donchian Channel Analysis:
- Calculates the highest high and lowest low over a user-defined period to establish the upper and lower channels .
- Breakouts beyond these channels contribute to the breakout strength component.
OBV Momentum:
- Measures cumulative volume trends to validate price movements.
- Momentum is derived from the rate of change in smoothed OBV values.
Composite Calculation:
- Combines breakout strength and OBV momentum, normalized and scaled to -1 to 1 for clarity.
How to Use
Bullish Breakout:
- When the indicator value approaches 1 , it signals a strong upward breakout supported by positive OBV momentum.
- Example Action: Consider a Buy if price breaks the upper Donchian Channel with increasing OBV.
Bearish Breakout:
- When the indicator value approaches -1 , it indicates a strong downward breakout supported by negative OBV momentum.
- Example Action: Consider a Sell if price breaks the lower Donchian Channel with decreasing OBV.
Neutral Market:
- When the value is near 0 , the market is likely balanced with no significant breakout or momentum detected.
Divergence Opportunities:
- Bullish Divergence: Price makes lower lows, but the indicator trends upward → Potential upward reversal.
- Bearish Divergence: Price makes higher highs, but the indicator trends downward → Potential downward reversal.
Customization Options
Donchian Channel Length: Adjust the period for the upper and lower bounds.
OBV Smoothing Length: Modify the smoothing period for OBV to fine-tune momentum detection.
Scaling Adjustments: The composite value is automatically normalized for consistency across timeframes.
Ideal Use Cases
Breakout Trading: Identify and confirm strong breakouts in volatile markets.
Momentum Confirmation: Validate price movements with volume-based momentum.
Reversal Detection: Leverage divergences to spot potential market reversals.
Example Applications
Strong Bullish Signal:
- Price breaks the upper channel , and OBV shows increasing volume → Composite value near 1 .
- Action: Enter a Buy position and set a Stop Loss below the upper channel.
Strong Bearish Signal:
- Price breaks the lower channel , and OBV shows decreasing volume → Composite value near -1 .
- Action: Enter a Sell position and set a Stop Loss above the lower channel.
Neutral Market:
- Composite value near 0 suggests indecision or consolidation. Wait for a breakout.
Limitations
Best used alongside additional tools like RSI or MACD for filtering noise and improving decision-making.
Requires careful parameter tuning based on the asset and timeframe.
Final Thoughts
The Composite Indicator (Donchian + OBV) offers traders a versatile tool to navigate complex markets. By blending breakout analysis with volume-based momentum, this indicator provides an actionable edge for identifying high-probability opportunities and potential reversals.
Roc & Atr & MAROC - ATR and comparison of 3 moving averages.
Buy signal if 3 Moving Averages cross ATR band.
Downward Sell signal.
And comparison to each other.
Volatility - ATR and Averages.
Stan Weinstein Stage 2 Volume AnalysisStan Weinstein's Stage 2 Volume Analysis focuses on identifying a key phase in his Stage Analysis method, which is the Stage 2 Uptrend. This stage signifies the start of a strong bullish trend, often accompanied by significant volume activity. Here's a concise description:
What is Stage 2?
Stage 2 is the advancing phase of a stock's lifecycle, characterized by rising prices and a breakout above a base (support zone) and the 30-week moving average.
Volume Characteristics in Stage 2:
Breakout Confirmation: A clear surge in volume (often 50% or more above the average) during the price breakout is a strong confirmation of Stage 2.
Sustained Momentum: Subsequent pullbacks should show lower volume, while further upward moves are accompanied by increasing volume.
Significance:
High volume during a breakout indicates strong institutional buying and broad market participation, reinforcing the breakout's reliability.
Helps traders and investors avoid false breakouts and identify high-probability trades.
This analysis integrates volume with price action and trend tools to assess the strength and validity of a Stage 2 breakout.
PVSRA Volume Suite CombinedLe volume en bleue reste a améliorer " exemple en 3d arrière plan ou a moitié transparent".
SDO(SDO)
The Ultimate Oscillator for Precision Trading!
The Sarthak Dehkale Oscillator (SDO) is a powerful tool designed to identify overbought and oversold zones, giving you clear signals to capitalize on market reversals and trends. Perfect for traders of all levels, the SDO combines trend-following WaveTrend logic with visual enhancements for easy decision-making.
Key Features:
✨ Customizable Parameters: Adjust Channel Length and Average Length to suit your trading style.
✨ Dynamic Levels: Highlights primary (70, -70) and secondary (50, -50) zones with vibrant dashed lines for quick identification.
✨ Dual WaveTrend Lines: Observe WT1 and WT2 for trend strength and crossover signals.
✨ Visual Area Effect: Shaded regions between WT1 and WT2 make divergence spotting a breeze.
How to Use:
✅ Look for WT1 crossing above or below the overbought/oversold levels for potential reversals.
✅ Watch WT1 and WT2 crossovers for precise buy or sell signals.
✅ Use the shaded divergence area to gauge momentum shifts.
Empower your trades with SDO, the perfect balance of simplicity and technical depth. Add it to your chart today and trade with confidence!
Mikfiton Vix//@version=5
indicator("Mikfiton Vix", overlay=false)
// India VIX input using the chart's timeframe
vixSource = request.security("NSE:INDIAVIX", timeframe.period, close)
// Determine the color of the VIX line based on the trend
vixColor = vixSource > vixSource ? color.red : color.green
// Plot India VIX with dynamic color based on trend
plot(vixSource, title="India VIX", color=vixColor, linewidth=2)
// Define volatility ranges
stableRange = vixSource >= 9 and vixSource < 12
volatileRange = vixSource >= 12 and vixSource < 14
highlyVolatileRange = vixSource >= 14 and vixSource <= 20
// Fill area based on volatility ranges
bgcolor(stableRange ? color.new(color.green, 90) : na, title="Stable Zone")
bgcolor(volatileRange ? color.new(color.yellow, 90) : na, title="Volatile Zone")
bgcolor(highlyVolatileRange ? color.new(color.red, 90) : na, title="Highly Volatile Zone")
TP/SL ATR LevelsThis indicator plots two customized Average True Range (ATR) levels on the chart. The high ATR level (TP) is calculated using a 1.5x multiplier, while the low ATR level (SL) uses a 1.0x multiplier. This script is ideal for traders monitoring volatility boundaries relative to price action.
Trader Ahliman Indicator 1
This indicator has been created by combining multiple indicators. The signals provided by the indicator are not investment advice. I would like to thank everyone who contributed to the indicators within this tool. Best regards.
Korrelyatsiya Indikatori (US30, Nasdaq, S&P 500)by ig Toni_5123 for only corrilation us30 nasdaq and sps500
Volatility HelperIdentifying high-volatility periods in the market. It provides visual alerts and metrics to help you make informed decisions about deploying grid bots.
Scalping Indicator//@version=5
indicator("Scalping Indicator", overlay=true)
// Input parameters
fastEMA = input(9, title="Fast EMA Length")
slowEMA = input(21, title="Slow EMA Length")
signalSMA = input(9, title="Signal SMA Length")
rsiLength = input(14, title="RSI Length")
rsiOverbought = input(70, title="RSI Overbought Level")
rsiOversold = input(30, title="RSI Oversold Level")
// EMA calculations
fastEma = ta.ema(close, fastEMA)
slowEma = ta.ema(close, slowEMA)
// MACD calculations
= ta.macd(close, fastEMA, slowEMA, signalSMA)
// RSI calculation
rsi = ta.rsi(close, rsiLength)
// Entry and exit conditions
longCondition = ta.crossover(fastEma, slowEma) and macdLine > signalLine and rsi < rsiOverbought
shortCondition = ta.crossunder(fastEma, slowEma) and macdLine < signalLine and rsi > rsiOversold
// Plot buy/sell signals
plotshape(longCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Plot EMA lines
plot(fastEma, title="Fast EMA", color=color.blue)
plot(slowEma, title="Slow EMA", color=color.orange)
// Background highlights
bgcolor(longCondition ? color.new(color.green, 90) : na, title="Long Background")
bgcolor(shortCondition ? color.new(color.red, 90) : na, title="Short Background")