Adaptive On Balance Volume with Trend█ Introduction
The Adaptive On Balance Volume (AOBV) indicator enhances the traditional On Balance Volume (OBV) by introducing adaptability, volatility detection, and trend analysis. It helps traders identify the direction of volume flow, assess volume momentum, and spot potential reversals in the market.
Detecting market tops and bottoms is crucial for making informed trading decisions. The AOBV indicator offers a method for identifying these points by using an adaptive volatility detection function that highlights potential volume peaks or climaxes, suggesting when a price top or bottom may be forming.
█ Understanding the AOBV
Note: Details on how calculations are conducted can be found at the end of this script description.
1. The Basics of the AOBV Function:
• Adaptive Momentum Calculation: Instead of using a fixed momentum formula, the AOBV uses the original formula for basic momentum and enhances it based on relative strength and applies an adaptive smoothing function.
• Dynamic Smoothing:
• Strong Momentum: When the AOBV detects significant changes (strong momentum), it reduces smoothing. This makes the indicator more responsive to major market movements.
• Weak Momentum: When momentum is weak (small changes), it increases smoothing to filter out market noise.
This adaptability allows the AOBV to more accurately reflect volume momentum, responding promptly during significant market moves and remaining stable during quieter periods.
To determine the trend direction (bullish or bearish), the indicator calculates a signal curve and displays the difference as bars:
• Bar Above the Middle Line: Indicates a bullish trend.
• Bar Below the Middle Line: Indicates a bearish trend.
2. Volatility Function:
The volatility function measures how much the AOBV deviates from its average by comparing it to its smoothed version. It calculates the exponential standard deviation to estimate volatility.
• Purpose: Identifies when volume momentum is near a climax or when a trend is nearing exhaustion.
• How It Works:
• Compares current volatility to previous bars.
• Computes a percentage indicating how often the current volatility is higher than past values.
• If this percentage exceeds a defined threshold, it signals a significant volatility event by plotting a dot above or below the bar.
This pattern typically manifests itself during strong runs on price followed by a period of consolidation. Thus, estimating volatility would be an acceptable measure of when a market is reaching or nearing an implied top or bottom.
3. The Trend Function:
The trend function combines several common indicators to gauge buildup toward a reversal or a continuation of a trend when the AOBV changes direction.
• Components:
• AOBV Strength Percentage: Calculates the percentage change in the AOBV to gauge its strength and direction.
• Supertrend Indicator: Acts as the main driver for trend buildup.
• Vertical Horizontal Filter (VHF): Measures market consolidation, adjusting the trend strength accordingly.
• Adaptive RSI: Further refines the trend strength based on volume momentum.
• Trend Ranking:
• Assigns a trend rank to the AOBV that reflects both market direction and momentum.
• Colors are used to represent different trend strengths: Strong Bullish, Bullish, Strong Bearish, and Bearish.
█ How to Use the AOBV
• Above the Middle Line: Suggests a bullish trend.
• Below the Middle Line: Suggests a bearish trend
• The Volatility dots:
• Indicate strong momentum relative to previous bars.
• Signal that the trend may be nearing a climax or exhaustion.
• Can imply a potential market top or bottom.
• Consolidation can be detected by visually comparing current bars to previous ones. This should be obvious since, and as described, the AOBV bars represent volume momentum.
• The trend function is used to gauge the likelihood of a reversal or a continuation of a trend; trend is represented with several colors: strong bullish trend, bullish trend, strong bearish trend, and finally simply a bearish trend.
It is important to understand that this trend function is not the typical trend function found on other technical indicators. It must be viewed within the context of the AOBV momentum. For example, if AOBV is exerting a bullish trend (bars above middle line), then a bearish trend with no major change in momentum and no volatility indication could mean a false reversal. Conversely, a large charge in AOBV could be a strong indication of a market reversal.
█ Key Features
• Two Display Modes: Curve and Bars:
The Adaptive OBV can be viewed in two different display modes: Curve and Bars Mode. "Curve Mode" offers the classic OBV representation (but as AOBV) with trend, while "Bars Mode" incorporates volatility detection and trend, making it the recommended mode.
• Volatility Function:
• Dots appear above or below the volume bars when significant volatility events are detected.
• The sensitivity can be adjusted by changing the percentage threshold.
• Trend Analysis:
• Helps gauge the likelihood of a trend continuation or reversal.
• Uses color-coded trend ranks for easy interpretation.
• Flexible Lookback Period:
Lookback periods for the main AOBV, its signal line, trend function, and volatility function can be customized.
• Recommendations:
• Match the main lookback period with the volatility period: Ensures consistency in momentum and volatility measurements.
• Match the trend lookback period with the signal AOBV lookback period: Aligns trend analysis with the underlying momentum signals.
Below is a sample demonstrating the utility on a 1- minute chart.
█ Calculation Details:
• AOBV Calculations
The AOBV differs the traditional OBV by focusing on the differences in OBV values rather than absolute price movements. Initially, it calculates the standard OBV by accumulating volume based on whether the closing price is higher or lower than the previous close. Next, it computes the difference between the current OBV and the previous OBV to measure changes in volume momentum. It calculates the average net change and average total change of these OBV differences over a specified period using a selected averaging method (e.g., EMA, SMA). By dividing the average net change by the average total change, it obtains a change ratio that reflects the strength and direction of volume momentum.
This change ratio is then scaled to an RSI-like value between 0 and 100, which is used to derive an adaptive smoothing factor (alpha). The alpha adjusts dynamically—when the change ratio indicates strong momentum, alpha increases, making the indicator more responsive to recent changes; when momentum is weak, alpha decreases, increasing smoothing to filter out noise.
The adaptive OBV is calculated by applying this alpha to combine the current OBV and the previous adaptive OBV value. This adaptive smoothing allows the indicator to adjust its sensitivity based on market conditions, becoming more responsive during strong momentum and more stable during weak momentum.
A smoothed OBV signal line is also computed using weighted moving averages for comparison. By analyzing the difference between the adaptive OBV and this smoothed signal line, the indicator identifies bullish or bearish trends. Positive differences suggest bullish momentum (bars above the middle line), while negative differences indicate bearish momentum (bars below the middle line).
• Volatility Calculations
The volatility function in the AOBV indicator identifies significant changes in volume momentum by estimating the variability of recent momentum shifts. It begins by calculating the difference between the AOBV and its smoothed signal line, capturing the current change in volume momentum. To assess volatility, the function employs exponential smoothing to compute adaptive averages of both the volume and the squared volume over a specified lookback period. By combining these averages, it estimates the current standard deviation of the volume momentum changes, effectively measuring how much the momentum deviates from its average level.
This estimated volatility is then compared to historical volatility values over the lookback period to determine how frequently the current volatility exceeds past levels. If the proportion of times the current volatility is higher than previous values and it surpasses a user-defined threshold, it signals a significant volatility event, indicating a potential volume climax
• Trend Calculations
As outlined earlier in description, the trend function is composed of several components:
The Supertrend indicator calculates dynamic support and resistance levels based on price movements and volatility using the Average True Range. It assesses whether the closing price is above or below these levels to determine the primary trend direction. If the price is above the Supertrend line: The market is considered to be in an uptrend. If the price is below the Supertrend line: The market is considered to be in a downtrend.
The Vertical Horizontal Filter measures the strength of the trend by comparing the price range over a period to the sum of absolute price changes. It does this by comparing the difference between the highest and lowest prices over a given period (the "vertical" movement) to the sum of the absolute differences between consecutive prices (the "horizontal" movement). A higher VHF value indicates a stronger, more directional trend, while a lower value suggests that the market is moving sideways without a clear trend.. If the VHF detects consolidation, it downgrades the trend strength indicated by the Supertrend. This prevents the trend function from overemphasizing the Supertrend's signals when the market lacks clear direction.
The Adaptive RSI Analyzes recent changes in the AOBV to identify whether volume momentum is strengthening or weakening (based on the volume percent change) correlating price movement with volume momentum. It only upgrades or downgrades on a bar by bar basis if price movement is correlating with percent change. This acts as a corrective measure against the VHF since quiet periods (consolidation) can occur between strong moves. The alpha generated from the adaptive function is the same as the one generated with the AOBV calculations.
█ Disclaimer
This script is provided for educational and informational purposes only and should not be considered financial advice. Trading financial instruments carries a high level of risk and may not be suitable for all investors. Before using this script, please consult with a qualified financial advisor to ensure it aligns with your individual circumstances. The author does not guarantee the accuracy or completeness of the script and is not responsible for any losses or damages that may occur from its use. Use this script at your own risk.
Volum
Volume Zones Internal Visualizer [LuxAlgo]The Volume Zones Internal Visualizer is an alternate candle type intended to reveal lower timeframe volume activity while on a higher timeframe chart.
It displays the candle's range, the highest and lowest zones of accumulated volume throughout the candle, and the Lower Timeframe (LTF) candle close, which contained the most volume in the session (Candle Session).
🔶 USAGE
The indicator is intended to be used as its own independent candle type. It is not a replacement for traditional candlesticks; however, it is recommended that you hide the chart's display when using this indicator. Another option is to display this indicator in an additional pane alongside the normal chart, as displayed above.
The display consists of candle ranges represented by outlined boxes, within the ranges you will notice a transparent-colored zone, a solid-colored zone, and a line.
Each of these displays different points of volume-related information from an analysis of LTF data.
In addition to this analysis, the indicator also locates the LTF candle with the highest volume, and displays its close represented by the line. This line is considered as the "Peak Activity Level" (PAL), since throughout the (HTF) candle session, this candle's close is the outcome of the most volume transacted at the time.
We are further tracking these PALs by continuing to extend them into the future, looking towards them for potential further interaction. Once a PAL is crossed, we are removing it from display as it has been mitigated.
🔶 DETAILS
The indicator aggregates the volume data from each LTF candle and creates a volume profile from it; the number of rows in the profile is determined by the "Row Size" setting.
With this profile, it locates and displays the highest (solid area) and lowest (transparent area) volume zones from the profile created.
🔶 SETTINGS
Row Size: Sets the number of rows used for the calculation of the volume profile based on LTF data.
Intrabar Timeframe: Sets the Lower Timeframe to use for calculations.
Show Last Unmitigated PALs: Choose how many Unmitigated PALs to extend.
Style: Toggle on and off features, as well as adjust colors for each.
Auto-Length Moving Average + Trend Signals (Zeiierman)█ Overview
The Auto-Length Moving Average + Trend Signals (Zeiierman) is an easy-to-use indicator designed to help traders dynamically adjust their moving average length based on market conditions. This tool adapts in real-time, expanding and contracting the moving average based on trend strength and momentum shifts.
The indicator smooths out price fluctuations by modifying its length while ensuring responsiveness to new trends. In addition to its adaptive length algorithm, it incorporates trend confirmation signals, helping traders identify potential trend reversals and continuations with greater confidence.
This indicator suits scalpers, swing traders, and trend-following investors who want a self-adjusting moving average that adapts to volatility, momentum, and price action dynamics.
█ How It Works
⚪ Dynamic Moving Average Length
The core feature of this indicator is its ability to automatically adjust the length of the moving average based on trend persistence and market conditions:
Expands in strong trends to reduce noise.
Contracts in choppy or reversing markets for faster reaction.
This allows for a more accurate moving average that aligns with current price dynamics.
⚪ Trend Confirmation & Signals
The indicator includes built-in trend detection logic, classifying trends based on market structure. It evaluates trend strength based on consecutive bars and smooths out transitions between bullish, bearish, and neutral conditions.
Uptrend: Price is persistently above the adjusted moving average.
Downtrend: Price remains below the adjusted moving average.
Neutral: Price fluctuates around the moving average, indicating possible consolidation.
⚪ Adaptive Trend Smoothing
A smoothing factor is applied to enhance trend readability while minimizing excessive lag. This balances reactivity with stability, making it easier to follow longer-term trends while avoiding false signals.
█ How to Use
⚪ Trend Identification
Bullish Trend: The indicator confirms an uptrend when the price consistently stays above the dynamically adjusted moving average.
Bearish Trend: A downtrend is recognized when the price remains below the moving average.
⚪ Trade Entry & Exit
Enter long when the dynamic moving average is green and a trend signal occurs. Exit when the price crosses below the dynamic moving average.
Enter short when the dynamic moving average is red and a trend signal occurs. Exit when the price crosses above the dynamic moving average.
█ Slope-Based Reset
This mode resets the trend counter when the moving average slope changes direction.
⚪ Interpretation & Insights
Best for trend-following traders who want to filter out noise and only reset when a clear shift in momentum occurs.
Higher slope length (N): More stable trends, fewer resets.
Lower slope length (N): More reactive to small price swings, frequent resets.
Useful in swing trading to track significant trend reversals.
█ RSI-Based Reset
The counter resets when the Relative Strength Index (RSI) crosses predefined overbought or oversold levels.
⚪ Interpretation & Insights
Best for reversal traders who look for extreme overbought/oversold conditions.
High RSI threshold (e.g., 80/20): Fewer resets, only extreme conditions trigger adjustments.
Lower RSI threshold (e.g., 60/40): More frequent resets, detecting smaller corrections.
Great for detecting exhaustion in trends before potential reversals.
█ Volume-Based Reset
A reset occurs when current volume significantly exceeds its moving average, signaling a shift in market participation.
⚪ Interpretation & Insights
Best for traders who follow institutional activity (high volume often means large players are active).
Higher volume SMA length: More stable trends, only resets on massive volume spikes.
Lower volume SMA length: More reactive to short-term volume shifts.
Useful in identifying breakout conditions and trend acceleration points.
█ Bollinger Band-Based Reset
A reset occurs when price closes above the upper Bollinger Band or below the lower Bollinger Band, signaling potential overextension.
⚪ Interpretation & Insights
Best for traders looking for volatility-based trend shifts.
Higher Bollinger Band multiplier (k = 2.5+): Captures only major price extremes.
Lower Bollinger Band multiplier (k = 1.5): Resets on moderate volatility changes.
Useful for detecting overextensions in strong trends before potential retracements.
█ MACD-Based Reset
A reset occurs when the MACD line crosses the signal line, indicating a momentum shift.
⚪ Interpretation & Insights
Best for momentum traders looking for trend continuation vs. exhaustion signals.
Longer MACD lengths (260, 120, 90): Captures major trend shifts.
Shorter MACD lengths (10, 5, 3): Reacts quickly to momentum changes.
Useful for detecting strong divergences and market shifts.
█ Stochastic-Based Reset
A reset occurs when Stochastic %K crosses overbought or oversold levels.
⚪ Interpretation & Insights
Best for short-term traders looking for fast momentum shifts.
Longer Stochastic length: Filters out false signals.
Shorter Stochastic length: Captures quick intraday shifts.
█ CCI-Based Reset
A reset occurs when the Commodity Channel Index (CCI) crosses predefined overbought or oversold levels. The CCI measures the price deviation from its statistical mean, making it a useful tool for detecting overextensions in price action.
⚪ Interpretation & Insights
Best for cycle traders who aim to identify overextended price deviations in trending or ranging markets.
Higher CCI threshold (e.g., ±200): Detects extreme overbought/oversold conditions before reversals.
Lower CCI threshold (e.g., ±10): More sensitive to trend shifts, useful for early signal detection.
Ideal for detecting momentum shifts before price reverts to its mean or continues trending strongly.
█ Momentum-Based Reset
A reset occurs when Momentum (Rate of Change) crosses zero, indicating a potential shift in price direction.
⚪ Interpretation & Insights
Best for trend-following traders who want to track acceleration vs. deceleration.
Higher momentum length: Captures longer-term shifts.
Lower momentum length: More responsive to short-term trend changes.
█ How to Interpret the Trend Strength Table
The Trend Strength Table provides valuable insights into the current market conditions by tracking how the dynamic moving average is adjusting based on trend persistence. Each metric in the table plays a role in understanding the strength, longevity, and stability of a trend.
⚪ Counter Value
Represents the current length of trend persistence before a reset occurs.
The higher the counter, the longer the current trend has been in place without resetting.
When this value reaches the Counter Break Threshold, the moving average resets and contracts to become more reactive.
Example:
A low counter value (e.g., 10) suggests a recent trend reset, meaning the market might be changing directions frequently.
A high counter value (e.g., 495) means the trend has been ongoing for a long time, indicating strong trend persistence.
⚪ Trend Strength
Measures how strong the current trend is based on the trend confirmation logic.
Higher values indicate stronger trends, while lower values suggest weaker trends or consolidations.
This value is dynamic and updates based on price action.
Example:
Trend Strength of 760 → Indicates a high-confidence trend.
Trend Strength of 50 → Suggests weak price action, possibly a choppy market.
⚪ Highest Trend Score
Tracks the strongest trend score recorded during the session.
Helps traders identify the most dominant trend observed in the timeframe.
This metric is useful for analyzing historical trend strength and comparing it with current conditions.
Example:
Highest Trend Score = 760 → Suggests that at some point, there was a strong trend in play.
If the current trend strength is much lower than this value, it could indicate trend exhaustion.
⚪ Average Trend Score
This is a rolling average of trend strength across the session.
Provides a bigger picture of how the trend strength fluctuates over time.
If the average trend score is high, the market has had persistent trends.
If it's low, the market may have been choppy or sideways.
Example:
Average Trend Score of 147 vs. Current Trend Strength of 760 → Indicates that the current trend is significantly stronger than the historical average, meaning a breakout might be occurring.
Average Trend Score of 700+ → Suggests a strong trending market overall.
█ Settings
⚪ Dynamic MA Controls
Base MA Length – Sets the starting length of the moving average before dynamic adjustments.
Max Dynamic Length – Defines the upper limit for how much the moving average can expand.
Trend Confirmation Length – The number of bars required to validate an uptrend or downtrend.
⚪ Reset & Adaptive Conditions
Reset Condition Type – Choose what triggers the moving average reset (Slope, RSI, Volume, MACD, etc.).
Trend Smoothing Factor – Adjusts how smoothly the moving average responds to price changes.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
AI Volume Breakout for scalpingPurpose of the Indicator
This script is designed for trading, specifically for scalping, which involves making numerous trades within a very short time frame to take advantage of small price movements. The indicator looks for volume breakouts, which are moments when trading volume significantly increases, potentially signaling the start of a new price movement.
Key Components:
Parameters:
Volume Threshold (volumeThreshold): Determines how much volume must increase from one bar to the next for it to be considered significant. Set at 4.0, meaning volume must quadruplicate for a breakout signal.
Price Change Threshold (priceChangeThreshold): Defines the minimum price change required for a breakout signal. Here, it's 1.5% of the bar's opening price.
SMA Length (smaLength): The period for the Simple Moving Average, which helps confirm the trend direction. Here, it's set to 20.
Cooldown Period (cooldownPeriod): Prevents signals from being too close together, set to 10 bars.
ATR Period (atrPeriod): The period for calculating Average True Range (ATR), used to measure market volatility.
Volatility Threshold (volatilityThreshold): If ATR divided by the close price exceeds this, the market is considered too volatile for trading according to this strategy.
Calculations:
SMA (Simple Moving Average): Used for trend confirmation. A bullish signal is more likely if the price is above this average.
ATR (Average True Range): Measures market volatility. Lower volatility (below the threshold) is preferred for this strategy.
Signal Generation:
The indicator checks if:
Volume has increased significantly (volumeDelta > 0 and volume / volume >= volumeThreshold).
There's enough price change (math.abs(priceDelta / open) >= priceChangeThreshold).
The market isn't too volatile (lowVolatility).
The trend supports the direction of the price change (trendUp for bullish, trendDown for bearish).
If all these conditions are met, it predicts:
1 (Bullish) if conditions suggest buying.
0 (Bearish) if conditions suggest selling.
Cooldown Mechanism:
After a signal, the script waits for a number of bars (cooldownPeriod) before considering another signal to avoid over-trading.
Visual Feedback:
Labels are placed on the chart:
Green label for bullish breakouts below the low price.
Red label for bearish breakouts above the high price.
How to Use:
Entry Points: Look for the labels on your chart to decide when to enter trades.
Risk Management: Since this is for scalping, ensure each trade has tight stop-losses to manage risk due to the quick, small movements.
Market Conditions: This strategy might work best in markets with consistent volume and price changes but not extreme volatility.
Caveats:
This isn't real AI; it's a heuristic based on volume and price. Actual AI would involve machine learning algorithms trained on historical data.
Always backtest any strategy, and consider how it behaves in different market conditions, not just the ones it was designed for.
My auto dual avwap with Auto swing low/pivot low finderWelcome to My Auto Dual AVWAP with Auto Swing Low/Pivot Low Finder – an open-source TradingView indicator designed to enhance your technical analysis toolbox. This indicator is published under the Mozilla Public License 2.0 and is available for anyone to study, modify, and distribute.
Key Features
Auto Pivot/Swing Low Finder:
In addition to VWAP lines, the indicator incorporates an automatic detection mechanism for swing lows/pivot lows. This feature assists in identifying potential support areas and price reversals, further enhancing your trading strategy.
Dual VWAP Calculation with high/low range:
The indicator calculates two separate volume-weighted average price (VWAP) lines based on different price inputs (low and high prices) and defined time sessions. This allows traders to gain a more nuanced view of market activity during specific trading periods.
Customizable Time Sessions:
You can specify distinct start and end times for each VWAP calculation session. This flexibility helps you align the indicator with your preferred trading hours or market sessions, making it adaptable to various time zones and trading styles.
Easy to Customize:
With clear code structure and detailed comments, the script is designed to be accessible even for traders who want to customize or extend its functionality. Whether you're a seasoned coder or just starting out, the code is written with transparency in mind.
How It Works
Session Initialization:
The script sets up two distinct time sessions using user-defined start and end times. For each session, it detects the beginning of the trading period to reset cumulative values.
Cumulative Calculations:
During each session, the indicator accumulates the product of price and volume as well as the total volume. The VWAP is then computed as the ratio of these cumulative values.
Dual Data Sources:
Two separate data inputs (using low and high prices) are used to calculate two VWAP lines. This dual approach provides a broader perspective on market trends and can help in identifying dynamic support and resistance levels.
Visualization:
The calculated VWAP lines are plotted directly on your chart with distinct colors and thickness settings for easy visualization. This makes it simple to interpret the data at a glance.
Why Use This Indicator?
Whether you are a day trader, swing trader, or simply looking to refine your market analysis, My Auto Dual AVWAP with Auto Swing Low/Pivot Low Finder offers a robust set of features that can help you identify key price levels and improve your decision-making process. Its open-source nature invites collaboration and customization, ensuring that you can tailor it to fit your unique trading style.
Feel free to explore, modify, and share this indicator. Happy trading!
N day Anchored Rolling VWAP
⭐ Overview
The N-Day Anchored Rolling VWAP is designed to automate and simplify the use of anchored VWAP for traders, making it an invaluable tool for those who rely on VWAP for trend filtering, support/resistance identification, or strategy implementation. This indicator removes the tedious and repetitive manual process of setting the anchored VWAP for multiple charts or stocks in a watchlist. Once added, the indicator dynamically maintains and updates the anchor point across charts, allowing users to focus on their analysis instead of time-consuming adjustments.
________________________________________
⭐ Goal of the Indicator
The primary goal of this indicator is to automate the manual process of anchoring the VWAP for multiple charts or stocks. By removing the need to manually set the anchor every day, this script simplifies the workflow and saves valuable time for traders.
The examples and chart illustrations provided showcases some of the most common and widely used ways traders utilize anchored VWAP in their strategies. They are intended as demonstrations, not exhaustive applications, as specific use cases may vary based on individual trading approaches.
________________________________________
⭐ Why the Name?
1).N-Day Anchored:
The term "N-Day Anchored" reflects the flexibility of the anchor point. Users can specify the number of days prior to the present day where the VWAP calculation should begin. For
example:
🟢"0" anchors the VWAP to the current day's opening.
🟢"1" anchor it to the previous day's opening.
🟢"2" anchors it to the day before yesterday, and so on.
2).Rolling:
The "Rolling" aspect signifies that the anchor point remains consistent relative to the current day. For instance:
If the anchor is set to the day before yesterday, the indicator will continuously adjust to
ensure the anchor remains two days prior, even as new trading days begin. This means the
lines plotted always reflect the VWAP anchored to the chosen
relative day, regardless of how many days have passed.
________________________________________
⭐ Inputs, Settings, and Functionality
1). Anchor Point (Days Prior): Use the "Days prior" input to set the anchor point for VWAP:
🟢"0": Anchors the VWAP to the start of the current day's trading session.
🟢"1": (default): Anchors the VWAP to the start of the previous day's trading session.
🟢"2": Anchors the VWAP to the day before yesterday, and so on.
This input determines the starting point for the VWAP calculation and updates dynamically each day.
2). VWAP Line Customization: The orange dashed line represents the anchored VWAP.
You can adjust its color through the input’s menu.
3). Standard Deviation Bands:
⭕ Three Bands: The indicator plots three upper and three lower bands to represent standard deviation levels from the VWAP.
➡️ On the current day, these bands are plotted as thick, solid lines with bright colors, providing clear real-time plotting.
➡️ On historical days, the bands appear as faint, dotted lines, offering a visual
representation of the anchored VWAP without cluttering the chart.
⭕ Customizable Settings:
➡️Multiplier: Set the distance of each band from the VWAP.
➡️Colors: Choose separate colors for the upper and lower bands.
➡️Visibility Toggle: Enable or disable specific bands as needed.
This clear differentiation ensures traders can easily distinguish between real-time plotting (current day) and the visualization of historical anchoring.
________________________________________
⭐ Example Use Cases
1). Trend Filter: Use the anchored VWAP as a trend filter:
➡️When the price is above the anchored VWAP, the trend is bullish.
➡️When the price is below the anchored VWAP, the trend is bearish.
2). 2-Day Anchored VWAP Strategy: This strategy uses the VWAP anchored to the
previous day’s opening candle, continuing through today’s price action. Traders can
identify entry and exit points based on how the price interacts with this 2-day anchored VWAP.
3). Standard Deviation Bands as Support or Resistance: Utilize the standard deviation
bands to find potential support and resistance levels, as prices often react near these
bands.
4). VWAP Rejection (VWAP Bounce): Look for rejections near the anchored VWAP to
confirm a continuation of the current trend. For example, if the price rejects the 2-day
anchored VWAP, it can signal a strong continuation in the current trend direction.
GOLD Volume-Based Entry StrategyShort Description:
This script identifies potential long entries by detecting two consecutive bars with above-average volume and bullish price action. When these conditions are met, a trade is entered, and an optional profit target is set based on user input. This strategy can help highlight momentum-driven breakouts or trend continuations triggered by a surge in buying volume.
How It Works
Volume Moving Average
A simple moving average of volume (vol_ma) is calculated over a user-defined period (default: 20 bars). This helps us distinguish when volume is above or below recent averages.
Consecutive Green Volume Bars
First bar: Must be bullish (close > open) and have volume above the volume MA.
Second bar: Must also be bullish, with volume above the volume MA and higher than the first bar’s volume.
When these two bars appear in sequence, we interpret it as strong buying pressure that could drive price higher.
Entry & Profit Target
Upon detecting these two consecutive bullish bars, the script places a long entry.
A profit target is set at current price plus a user-defined fixed amount (default: 5 USD).
You can adjust this target, or you can add a stop-loss in the script to manage risk further.
Visual Cues
Buy Signal Marker appears on the chart when the second bar confirms the signal.
Green Volume Columns highlight the bars that fulfill the criteria, providing a quick visual confirmation of high-volume bullish bars.
Works fine on 1M-2M-5M-15M-30M. Do not use it on higher TF. Due the lack of historical data on lower TF, the backtest result is limited.
Absolute Volume Levels [AlgoRich]This indicator classifies the volume of each candle into three levels—weak, intermediate, and strong—using absolute thresholds. It allows you to define fixed levels for what constitutes low, moderate, or high activity.
Key Features:
Classification by Absolute Thresholds:
The indicator uses two configurable cut-off points:
Intermediate Volume Threshold: The value from which volume is no longer considered weak and is classified as intermediate.
Strong Volume Threshold: The value from which volume is considered strong.
Any volume below the intermediate threshold is classified as weak; volume between the thresholds is classified as intermediate; and volume above the strong threshold is considered strong.
Distinction Between Bullish and Bearish Candles:
Bullish candles are displayed with positive volume (bars pointing upward).
Bearish candles are shown with negative volume (bars pointing downward).
This makes it easier to quickly identify the prevailing direction of volume activity.
Customizable Colors:
You can independently adjust the colors for each volume level for both bullish and bearish candles. This helps to visually highlight unusual volume levels, which can be useful for detecting breakouts or liquidity sweeps.
Benefits of Using This Indicator:
Simplicity and Clarity:
By using absolute thresholds, you eliminate the dependency on moving averages, obtaining a direct measure of volume relative to fixed values. This is particularly useful if you know the typical volume ranges for your asset.
Adaptability:
The thresholds and colors can be easily adjusted to suit different assets and timeframes, allowing you to fine-tune the indicator to your trading style and needs.
Effective Visualization:
The representation of volume bars—differentiated by both direction (bullish or bearish) and intensity (weak, intermediate, or strong)—facilitates the quick identification of changes in market activity, helping you make more informed trading decisions.
This indicator is ideal for traders who want to assess volume in absolute terms and clearly visualize spikes in activity that may indicate trading opportunities or confirm trend changes.
STRAW Volume Spike IndicatorThis is basically a:
High-Volume Impulse Detector
The High-Volume Impulse Detector is a refined tool designed to highlight key moments of explosive volume surges in the market, specifically calibrated for assets like Bitcoin on the 15-minute timeframe. Unlike generic volume-based indicators, this script doesn’t just flag high volume—it intelligently adapts to market dynamics by incorporating a custom-moving average baseline and highlighting instances where volume exceeds a significant threshold relative to the average.
Key Features
✅ Adaptive Volume Benchmark – Uses a dynamic moving average to filter out noise and pinpoint meaningful volume spikes.
✅ Impulse Confirmation – Only highlights volume bars that exceed the 50% threshold above the baseline, ensuring signals capture real liquidity shifts.
✅ Smart Color Coding – Differentiates high-impact bullish and bearish volume with distinct visual cues for easy market structure identification.
✅ Designed for Order Block Traders – Helps validate liquidity-driven price movements essential for refining order block and break-of-structure strategies.
Unlike conventional volume overlays, this tool helps traders connect volume surges to key structural shifts, making it an ideal companion for those navigating momentum shifts, market inefficiencies, and institutional footprints.
⚡ Best used on BTC 15m for tracking aggressive volume-driven moves in real-time.
All-in-One BB Stoch RSI + PSAR + Keltner + ADX + Trailing StopThis invite-only indicator combines multiple advanced tools into a single script, generating buy/short signals alongside comprehensive alerts. Priced at just $25/month, it’s ideal for both manual trading and integration with bots.
Key Features & Alerts
Buy & Short Signals
Quickly identify potential long or short entries.
Three Take-Profit (TP) Lines
Long: After a BUY signal, three lines appear (TP1, TP2, TP3), allowing you to take partial profits—e.g., 30%, 30%, 30%—and keep the remaining 10% to trail.
Short: Similarly, after a SHORT signal, three TP lines help you scale out as price moves in your favor.
Stop-Loss Line (Based on Bollinger Width)
Precisely calculates a stop-loss distance using Bollinger Band width (a percentage below for longs or above for shorts).
Trailing Stop-Loss
Any remaining position can be trailed under (or above) Parabolic SAR, Keltner Channels, and Bollinger, with an extra 0.2% margin for added caution.
ADX + Stoch RSI + RSI (MA)
Filter out weak trends, gauge volatility, and confirm overbought/oversold regions in real time.
Compatible With Trading Bots
Built-in alerts can be connected to bot logic (via webhooks), enabling automated management of entries, TPs, stop-losses, and trailing stops.
Why Use This Indicator?
All-in-One Script: Eliminates chart clutter by merging multiple indicators into one.
Partial Take-Profits: Clearly defined TP1, TP2, TP3 lines help you lock in gains progressively.
Enhanced Risk Control: Stop-loss and trailing stop lines update automatically, keeping your trades protected.
Easy Bot Integration: Perfect for traders wanting direct alerts or automated trading setups.
Invite-Only for Exclusive Access: Maintain a competitive edge with protected source code.
How to Use:
Add to Chart
After access is granted, go to Indicators → Invite-Only Scripts and select this script.
Enable Specialized Alerts
Receive notifications for Buy/Short signals, the three TP lines, Stop-Loss, and Trailing Stop events.
Scale Out or Automate
Manually close partial positions at the TP lines (e.g., 30% each time) and let the remaining 10% trail for bigger moves.
Or link these alerts to a trading bot for fully automated position management.
Price: $25/month
Interested? Contact me (via direct message or email) for more details and to subscribe. Experience clearer charts, timely signals, and robust risk management in one invite-only package!
True Liquidity BlocksSo basically I've been deep diving into liquidity trading concepts similar to ICT (Inner Circle Trader) and developed an indicator that breaks down market movement through a volume-centric lens.
Key Concept:
Markets move not just by price, but by resolving trapped positions
Volume segments, not time intervals, show true market dynamics
VWAP (Volume Weighted Average Price) becomes a key structural reference
What Makes This Different:
Tracks volume segments instead of fixed time frames
Identifies "trapped" trader positions
Measures liquidity level efficiency
Color-codes bars based on nearest liquidity zone
Indicator Features:
Cyan/Red liquidity levels showing buy/sell pressure
Efficiency tracking for each level
Dynamic volume-based segmentation
Bar coloring to show nearest liquidity zone
Theoretical Inspiration: Viewed markets as energy systems where:
Positions create potential energy
Price movement resolves this energy
Trends form through systematic position liquidation
VWAP Recalculation in Each Segment:
Segment Start:
VWAP resets when volume threshold User Inputtable (600,000) is reached
Uses the last 4 price values (High, Low, Close, Close) for calculation
Weighted by volume traded during that segment
Calculation Method:
pineCopy = ta.vwap(hlcc4, na(segment_start) ? true : na, 1)
hlcc4: Combines high, low, close prices
na(segment_start): Ensures reset at new segment
Weighted by volume, not equal time intervals
Key Points:
Dynamic recalculation each segment
Reflects most recent trading activity
Provides real-time fair price reference
Tracks positioning
Essentially, VWAP resets and recalculates with each new volume segment, creating a rolling, volume-weighted average price that maps trader positioning.
BSL (Buy Side Liquidity) and SSL (Sell Side Liquidity) Explained:
When a volume segment closes relative to VWAP, it creates natural positioning traps:
BSL (Cyan) - Created when price closes BELOW THAT SEGMENT'S VWAP:
Bulls are positioned BELOW VWAP (trapped)
Shorts are positioned ABOVE VWAP (In Profit)
SSL (Red) - Created when price closes ABOVE THAT SEGMENT"S VWAP:
Bulls are positioned ABOVE VWAP (trapped)
Shorts are positioned BELOW VWAP (trapped)
Core Mechanism:
VWAP acts as a reference point for trader positioning
Trapped positions create inherent market tension
Levels expand to show accumulating pressure
Color-coded for quick identification of potential move direction
The goal: Visualize where traders are likely "stuck" and must eventually resolve their positions or liquidate other's, driving market movement.
It was just a fun experiment but If ya'll have any thoughts on it or what I could do to improve it, I would appreciate it.
Just a little note, It's optimized for futures, but if u uncheck the "Rest at Futures Open ?" setting, it allow full reign of any asset with volume data.
Draw on Liquidity [PhenLabs]📊 Draw on Liquidity (DOL) Indicator
Version: PineScript™ v6
Description
The Draw on Liquidity (DOL) indicator is an advanced technical analysis tool designed to identify and visualize significant liquidity zones in the market. It combines volume analysis, pivot point detection, and real-time proximity alerts to help traders identify potential support and resistance levels where significant trading activity occurs. The indicator features dual display modes, adaptive volume thresholds, and a comprehensive real-time dashboard.
🔧 Components
• Liquidity Detection: Advanced pivot point analysis with volume validation
• Volume Analysis: Adaptive volume threshold system
• Display Modes: Historical and Current visualization options
• Proximity Detection: Real-time price-to-level distance monitoring
• Visual Dashboard: Dynamic status display with alert system
🚨 Important Dashboard Features 🚨
The dashboard provides real-time information about:
• High Draw Zones: Resistance levels with significant liquidity
• Low Draw Zones: Support levels with high trading activity
• Current Price: Real-time price monitoring
• Active Alerts: Proximity warnings when price approaches liquidity zones
📈 Visualization
• Historical Mode: Displays all past and present liquidity zones
• Current Mode: Shows only active, unhit liquidity levels
• Color-coded lines: Blue for high liquidity, Red for low liquidity
• Dynamic line extension: Updates with price movement
• Alert indicators: Visual signals when price approaches zones
Historical Visualization
Current Visualization
📌 Usage Guidelines
The indicator is highly customizable with several key parameters:
Pivot Settings:
• Shorter lengths (3-7): More frequent zones, suitable for scalping
• Longer lengths (7-15): Major zones, better for swing trading
Volume Analysis:
• Lower multiplier (1.5-2.0): More zones, higher sensitivity
• Higher multiplier (2.0-3.0): Major zones only, reduced noise
✅ Best Practices:
• Start with default settings and adjust based on timeframe
• Use Historical mode for analysis, Current mode for active trading
• Monitor dashboard alerts for potential trade setups
• Combine with trend analysis for better entry/exit points
⚠️ Limitations
• Requires sufficient volume data for accurate analysis
• Performance varies with market volatility
• Historical mode may become visually cluttered on longer timeframes
• Best performance during regular market hours
What Makes This Unique
• Dual Display System: Choose between historical analysis and current trading modes
• Volume-Validated Zones: Only marks levels with significant trading activity
• Real-time Proximity Alerts: Dynamic warnings when approaching liquidity zones
• Adaptive Threshold System: Automatically adjusts to market conditions
• Comprehensive Dashboard: All-in-one view of current market status
🔧 How It Works
The indicator processes market data through three main components:
1. Liquidity Detection (40% weight):
• Identifies pivot points using customizable lookback periods
• Validates levels with volume analysis
• Marks significant zones based on combined criteria
2. Volume Analysis (40% weight):
• Calculates dynamic volume thresholds
• Compares current volume to moving average
• Filters out low-volume noise
3. Proximity Analysis (20% weight):
• Monitors price distance to active zones
• Triggers alerts based on customizable thresholds
• Updates dashboard status in real-time
💡 Note: For optimal results, combine with price action analysis and consider using multiple timeframes for confirmation. The indicator performs best in markets with consistent volume and clear trend structure.
Modified Volume IndicatorThis indicator colors volume bars based on price and range conditions for a given period:
Green Bars:
The close is at least 70% of the way up the daily range (from the low).
The close is also 1% or more above the low.
Red Bars:
The close is at least 70% of the way down the daily range (from the high).
The close is also 1% or more below the high.
Gray Bars:
Volume bars that don’t meet the above conditions are neutral.
Purpose
Green Bars highlight strong upward closes.
Red Bars indicate weak downward closes.
Gray Bars show neutral or inconclusive price movement.
This indicator helps traders identify momentum shifts and trend strength in real-time.
[AlbaTherium] MTF Volatility Edge Zones Premium for Price Action Volatility Edge Zones Premium for Price Action (HTF)
The MTF Volatility Edge Zones Premium for Price Action is an advanced Multiple Timeframes (MTF) trading indicator that combines the power of volume analysis with price action, designed to reveal key volatility zones and assess market participants’ engagement levels . This tool offers unique insights into the dynamics of higher timeframes (HTF), helping traders identify critical zones of decision-making, such as potential reversals, continuations, or breakout areas.
Introduction to the MTF Volatility Edge Zones Premium
This indicator is built upon a deep understanding of the interaction between price action and volume. By mapping volume data onto price action, Volatility Edge Zones Premium (HTF) pinpoints areas of heightened market engagement. These zones represent where buyers and sellers have shown significant activity, allowing traders to identify market intent and anticipate key movements.
Key Features:
Higher Timeframe Analysis: Focuses on significant price and volume interactions over HTFs (e.g., 4H, Daily, Weekly) for a broader perspective on market trends.
Volatility Zones : Highlights areas where market participants show increased activity, signaling potential market turning points or strong continuations.
Volume-Driven Insights: Tracks the behavior of aggressive buyers and sellers, showing their engagement levels relative to price changes.
Overlayon Price Action: Provides a clear and actionable visual representation of volatility and engagement zones directly on price charts.
Chapter 1: Understanding Volatility and Engagement
1.1 Volatility Edge Zones
Volatility Edge Zones are areas where price and volume interact to signal potential changes in market direction or momentum. These zones are derived from high-volume clusters where significant market activity occurs.
1.2 Participant Engagement
Market participants can be categorized based on their level of engagement in these zones:
Aggressive Buyers: Represented by sharp spikes in volume and upward price action.
Aggressive Sellers: Represented by high volume during downward price movement.
Passive Participants: Identified in zones of consolidation or low volatility.
By isolating these behaviors, traders can gain a clearer picture of market sentiment and the relative strength of buyers versus sellers.
Chapter 2: The Principle of Volume and Price Interplay
2.1 Volume as a Leading Indicator
Volume often precedes price movements, and the Volatility Edge Zones Premium captures this relationship by overlaying volume activity onto price charts. This allows traders to:
Identify where volume supports price movement (trend confirmation).
Spot divergences where price moves without volume support (potential reversals).
2.2 The Role of Higher Timeframes
HTFs filter out market noise, revealing macro trends and key levels of engagement. The indicator uses this perspective to highlight long-term volatility zones, helping traders align their strategies with the broader market context.
Chapter 3: Visualizing Volatility Edge Zones
3.1 Color-Coded Zones for Engagement
The indicator uses a color-coded system to represent volatility zones and market engagement levels. These colors correspond to different market conditions:
Red Zones: High selling pressure and aggressive bearish activity.
Blue Zones: High buying pressure and aggressive bullish activity.
Yellow Zones: Transitional zones, representing indecision or balance between buyers and sellers.
White Zones: Neutral areas, where low engagement is observed but could serve as potential breakout points.
3.2 Key Metrics Tracked
Volume Clusters: Areas of concentrated buying or selling activity.
Directional Bias: Net buying or selling dominance.
Momentum Shifts: Sudden changes in volume relative to price action.
These metrics provide actionable insights into market dynamics, making it easier to predict key movements.
Chapter 4: Practical Applications in Trading
4.1 Identifying High-Impact Zones
By focusing on HTFs, traders can use the Volatility Edge Zones Premium to identify high-impact areas where market participants are most engaged. These zones often align with:
Support and Resistance Levels: High-volume areas that act as barriers or catalysts for price movement.
Breakout Points: Zones of heightened volatility where price is likely to escape consolidation.
4.2 Detecting Bull and Bear Campaigns
The indicator highlights early signs of bullish or bearish campaigns by analyzing volume surges in critical volatility zones. These campaigns often signal the beginning of significant trends.
Chapter 5: Real-World Examples and Strategies
5.1 Spotting Market Reversals
Real-world examples demonstrate how the indicator can identify volatility zones signaling potential reversals, allowing traders to enter positions early.
5.2 Riding the Trend
By tracking volatility zones in alignment with HTF trends, traders can maximize profit potential by entering during periods of high engagement and riding the trend until it weakens.
Conclusion
The MTF Volatility Edge Zones Premium for Price Action is an essential tool for traders looking to master market dynamics through a combination of volume and price action analysis. By focusing on higher timeframes and overlaying volatility zones onto price charts, this indicator provides unparalleled insights into market participant engagement.
Whether you’re trading intraday, swing, or long-term strategies, the MTF Volatility Edge Zones Premium equips you with the information needed to make confident and precise trading decisions. Stay tuned as we continue to enhance this tool for even greater accuracy and usability.
Anchored VWAPAnchored VWAP with 3 Standard Deviation Bands
📈 Version: Pine Script v5
📌 Author: Aymen Haddaji
🔍 Overview
This indicator calculates an Anchored Volume-Weighted Average Price (AVWAP), allowing traders to anchor the VWAP calculation from a user-defined date and time. It also plots three standard deviation bands above and below the AVWAP to help identify potential areas of overbought and oversold conditions.
📊 Features & Functionality
✔ Custom Anchor Point: Select a specific date and time to start the AVWAP calculation.
✔ OHLC/4 Calculation: Uses the average of Open, High, Low, and Close to smooth the price input.
✔ Three Standard Deviation Bands:
1st Deviation (Green): Moderate volatility zone.
2nd Deviation (Orange): High volatility zone.
3rd Deviation (Red): Extreme overbought/oversold areas.
✔ Real-Time Calculation: Updates dynamically with each price movement.
✔ Clear Visuals:
AVWAP (Blue Line) represents the fair market price from the anchor.
Deviation Bands (Dashed Lines) show potential support and resistance levels.
🛠 How It Works
VWAP Calculation
Uses a cumulative sum of price × volume divided by cumulative volume.
Calculation starts from the user-defined anchor time.
Standard Deviation Bands
Measures the price dispersion around the AVWAP.
The wider the bands, the higher the volatility.
When price touches or exceeds the 3rd deviation, a potential reversal zone is indicated.
Trading Strategies with AVWAP & Deviation Bands
Trend Confirmation:
Price above AVWAP = Uptrend (bullish).
Price below AVWAP = Downtrend (bearish).
Support & Resistance:
AVWAP acts as dynamic support or resistance.
1st & 2nd deviations often act as secondary levels.
Mean Reversion Trading:
When price reaches the 3rd standard deviation, a pullback is likely.
Breakout Confirmation:
A strong close above/below the 3rd deviation may indicate trend continuation.
⚙️ Input Settings
📍 Anchor Time: Allows you to set the exact date and time to start the AVWAP calculation.
🎯 Ideal For
✅ Intraday traders looking for short-term mean reversion plays.
✅ Swing traders identifying key support/resistance zones.
✅ Trend traders confirming long-term market direction.
✅ Volatility traders using standard deviation for trade entries.
Volume & Trend Confluence OscillatorVolume & Trend Confluence Oscillator (VTCO)
Overview:
The Volume & Trend Confluence Oscillator (VTCO) is a technical analysis tool designed to help traders assess market conditions by integrating volume analysis, momentum, and trend direction into a single oscillator. This indicator provides traders with additional confirmation when evaluating potential trade entries and exits.
Key Features:
Volume Analysis: Calculates a Z-score to detect unusual trading activity.
Momentum Measurement: Evaluates the rate of price change to gauge market velocity.
Trend Confirmation: Utilizes an Exponential Moving Average (EMA) to assess overall market direction.
Signal Filtering: Incorporates minimum movement thresholds and a confirmation period to reduce false signals.
Visual Enhancements: Background shading indicates trend direction, and buy/sell markers highlight key signals.
How It Works:
The VTCO applies a volume multiplier to momentum readings when volume activity significantly deviates from its historical norm. Additionally, it prioritizes momentum moves that align with the prevailing market trend. A smoothing mechanism refines the oscillator’s signal line, ensuring a more stable and actionable output. The indicator generates alerts when key conditions are met, assisting traders in identifying potential trend shifts.
Signal Generation:
Buy Signal: Triggered when the oscillator crosses above zero after an oversold condition, ideally within an uptrend.
Sell Signal: Triggered when the oscillator crosses below zero after an overbought condition, ideally within a downtrend.
Alerts: Configurable alerts notify traders when key market conditions are met.
Usage Considerations:
Works effectively across various timeframes but may provide more reliable signals on higher timeframes.
Best utilized in conjunction with additional technical indicators and risk management strategies.
No indicator guarantees future performance; proper analysis and trade management remain essential.
Disclaimer:
This indicator is provided for educational purposes only and should not be considered financial advice. Trading involves risk, and past performance is not indicative of future results. Always conduct independent analysis before making trading decisions.
On Balance Volume with Cross DetectionThis indicator enhances the On Balance Volume (OBV) indicator by detecting and visually highlighting crossovers and crossunders between the OBV and its smoothed moving average. The script colors the background of the chart to make these key events more noticeable: red highlights a bearish crossunder when the OBV crosses below the smoothed OBV, while green marks a bullish crossover when the OBV crosses above the smoothed OBV. By focusing on these significant interactions, the script provides traders with a clear visual cue to help identify potential buying and selling opportunities based on the relationship between OBV and its smoothed trend.
This script offers several customizable features to suit different trading preferences. The main editable parameter is the type of moving average used to smooth the OBV: you can choose from options such as Simple Moving Average (SMA), Exponential Moving Average (EMA), Smoothed Moving Average (RMA), Weighted Moving Average (WMA), or Volume Weighted Moving Average (VWMA). The length of the moving average can also be adjusted to better match the trader’s desired sensitivity, with the default set to 14 periods. These options allow traders to tailor the script to their preferred smoothing method and time frame, making it a flexible tool for a variety of strategies. The ability to switch between different moving averages and adjust their lengths ensures that the script can be adapted to various market conditions and trading styles.
This indicator enhances the analysis of the On Balance Volume (OBV) indicator by visually highlighting key crossovers and crossunders with its smoothed moving average. With customizable settings for different moving averages and lengths, traders can tailor the script to their specific strategies. By offering clear visual cues through background coloring, it helps quickly identify potential buy and sell signals. When combined with other technical analysis tools, this script can further improve trading decisions by providing additional context and confirmation, allowing traders to create a more robust and comprehensive trading strategy.
Volume with EMA and Coloring RulesSummary
This indicator plots the market’s volume as a histogram in a separate panel (not overlaid on the main price chart). An EMA (Exponential Moving Average) is then calculated based on the volume. The color of each volume bar switches dynamically:
• Blue when the bar’s volume is higher than the EMA
• White when the bar’s volume is lower than or equal to the EMA
This simple visual cue allows you to quickly see if the market’s current volume is above or below its average trend.
How to Use
1. Add to Chart
Apply the indicator to your TradingView chart, and it will open in a separate panel beneath the price.
2. Adjust EMA Length
Modify the “EMA Length” to control how quickly the average volume adapts to changes.
3. Interpretation
• Blue bars may indicate stronger-than-usual participation.
• White bars indicate volume is relatively lower compared to its recent average.
This indicator provides an at-a-glance way to see if trading activity is intensifying or easing, which can be paired with other technical or fundamental tools to help confirm market shifts or potential opportunities.
Johnny's Machine Learning Moving Average (MLMA) w/ Trend Alerts📖 Overview
Johnny's Machine Learning Moving Average (MLMA) w/ Trend Alerts is a powerful adaptive moving average indicator designed to capture market trends dynamically. Unlike traditional moving averages (e.g., SMA, EMA, WMA), this indicator incorporates volatility-based trend detection, Bollinger Bands, ADX, and RSI, offering a comprehensive view of market conditions.
The MLMA is "machine learning-inspired" because it adapts dynamically to market conditions using ATR-based windowing and integrates multiple trend strength indicators (ADX, RSI, and volatility bands) to provide an intelligent moving average calculation that learns from recent price action rather than being static.
🛠 How It Works
1️⃣ Adaptive Moving Average Selection
The MLMA automatically selects one of four different moving averages:
📊 EMA (Exponential Moving Average) – Reacts quickly to price changes.
🔵 HMA (Hull Moving Average) – Smooth and fast, reducing lag.
🟡 WMA (Weighted Moving Average) – Gives recent prices more importance.
🔴 VWAP (Volume Weighted Average Price) – Accounts for volume impact.
The user can select which moving average type to use, making the indicator customizable based on their strategy.
2️⃣ Dynamic Trend Detection
ATR-Based Adaptive Window 📏
The Average True Range (ATR) determines the window size dynamically.
When volatility is high, the moving average window expands, making the MLMA more stable.
When volatility is low, the window shrinks, making the MLMA more responsive.
Trend Strength Filters 📊
ADX (Average Directional Index) > 25 → Indicates a strong trend.
RSI (Relative Strength Index) > 70 or < 30 → Identifies overbought/oversold conditions.
Price Position Relative to Upper/Lower Bands → Determines bullish vs. bearish momentum.
3️⃣ Volatility Bands & Dynamic Support/Resistance
Bollinger Bands (BB) 📉
Uses standard deviation-based bands around the MLMA to detect overbought and oversold zones.
Upper Band = Resistance, Lower Band = Support.
Helps traders identify breakout potential.
Adaptive Trend Bands 🔵🔴
The MLMA has built-in trend envelopes.
When price breaks the upper band, bullish momentum is confirmed.
When price breaks the lower band, bearish momentum is confirmed.
4️⃣ Visual Enhancements
Dynamic Gradient Fills 🌈
The trend strength (ADX-based) determines the gradient intensity.
Stronger trends = More vivid colors.
Weaker trends = Lighter colors.
Trend Reversal Arrows 🔄
🔼 Green Up Arrow: Bullish reversal signal.
🔽 Red Down Arrow: Bearish reversal signal.
Trend Table Overlay 🖥
Displays ADX, RSI, and Trend State dynamically on the chart.
📢 Trading Signals & How to Use It
1️⃣ Bullish Signals 📈
✅ Conditions for a Long (Buy) Trade:
The MLMA crosses above the lower band.
The ADX is above 25 (confirming trend strength).
RSI is above 55, indicating positive momentum.
Green trend reversal arrow appears (confirmation of a bullish reversal).
🔹 How to Trade It:
Enter a long trade when the MLMA turns bullish.
Set stop-loss below the lower Bollinger Band.
Target previous resistance levels or use the upper band as take-profit.
2️⃣ Bearish Signals 📉
✅ Conditions for a Short (Sell) Trade:
The MLMA crosses below the upper band.
The ADX is above 25 (confirming trend strength).
RSI is below 45, indicating bearish pressure.
Red trend reversal arrow appears (confirmation of a bearish reversal).
🔹 How to Trade It:
Enter a short trade when the MLMA turns bearish.
Set stop-loss above the upper Bollinger Band.
Target the lower band as take-profit.
💡 What Makes This a Machine Learning Moving Average?
📍 1️⃣ Adaptive & Self-Tuning
Unlike static moving averages that rely on fixed parameters, this MLMA automatically adjusts its sensitivity to market conditions using:
ATR-based dynamic windowing 📏 (Expands/contracts based on volatility).
Adaptive smoothing using EMA, HMA, WMA, or VWAP 📊.
Multi-indicator confirmation (ADX, RSI, Volatility Bands) 🏆.
📍 2️⃣ Intelligent Trend Confirmation
The MLMA "learns" from recent price movements instead of blindly following a fixed-length average.
It incorporates ADX & RSI trend filtering to reduce noise & false signals.
📍 3️⃣ Dynamic Color-Coding for Trend Strength
Strong trends trigger more vivid colors, mimicking confidence levels in machine learning models.
Weaker trends appear faded, suggesting uncertainty.
🎯 Why Use the MLMA?
✅ Pros
✔ Combines multiple trend indicators (MA, ADX, RSI, BB).
✔ Automatically adjusts to market conditions.
✔ Filters out weak trends, making it more reliable.
✔ Visually intuitive (gradient colors & reversal arrows).
✔ Works across all timeframes and assets.
⚠️ Cons
❌ Not a standalone strategy → Best used with volume confirmation or candlestick analysis.
❌ Can lag slightly in fast-moving markets (due to smoothing).
SASDv2rSensitive Altcoin Season Detector V2
This Pine Script™ code, titled "SASDv2r" (Sensitive Altcoin Season Detector version 2 revised), is designed for cryptocurrency trading analysis on the TradingView platform and tailored for those interested in tracking when altcoins might be outperforming Bitcoin, potentially indicating a market shift towards altcoins.
Feel free to use and modify. If you made it better, please let me know. Intention was to help the community with a tool for retail traders have no access to advanced, MV indicators. Solution uses classic TA only.
Use it witl TOTAL3/BTC indicator.
Please check: it gave signal just before last alt season % rose more than 250%.
Market Cap Data Fetching: The script fetches market capitalization data for Bitcoin, Ethereum, and all other altcoins (excluding Bitcoin and Ethereum) using request.security function.
Altcoin to Bitcoin Ratio: It calculates the ratio of total market cap of altcoins to Bitcoin's market cap (altToBtcRatio), which is central to identifying an "altcoin season."
Moving Averages: Several moving averages are computed for different time frames (50-day SMA, 200-day SMA, 20-day SMA, and 10-day EMA) to analyze trends in the altcoin to Bitcoin ratio.
Momentum Indicators: The script uses RSI (Relative Strength Index) and MACD (Moving Average Convergence Divergence) to gauge momentum and potential reversal points in the market.
Custom Indicators: It includes Volume Weighted Moving Average (VWMA) and a custom momentum indicator (altMomentum and altMomentumAvg) to provide additional insights into market movements.
Volatility Measurement: Bollinger Bands are calculated to assess volatility in the altcoin to Bitcoin ratio, which helps identify periods of high or low market activity.
Visual Analysis: Various plots are added to the chart for visual interpretation, including the altcoin to Bitcoin ratio, different moving averages, and Bollinger Bands.
Alt Season Detection: The script defines conditions for detecting when an "altcoin season" might be starting, based on crossovers of moving averages, RSI levels, MACD signals, and other custom criteria.
Performance Tracking: After signaling an alt season, the script evaluates the performance over the next 30 days by checking if there's been an increase in the altcoin to Bitcoin ratio, adding labels for positive or negative trends.(this one is in progress). Logic still gives false signals and aim is to identify failed signals.
Visual Signals: Labels are placed on the chart to visually indicate the beginning of a potential alt season or the performance outcome after a signal, aiding traders in making informed decisions.
Aggregated Volume (Multi-Exchange)Indicator: Aggregated Volume (Multi-Exchange)
Overview:
The Aggregated Volume (Multi-Exchange) indicator is designed to aggregate trading volume data from multiple exchanges for a specific cryptocurrency pair. The goal is to provide a consolidated view of the total trading volume across different platforms, helping traders and analysts gauge the overall market activity for a given asset.
Features:
Multi-Exchange Support: The indicator allows you to aggregate trading volume data from various exchanges. Users can enable or disable volume data from specific exchanges (e.g., Binance, Bybit, Kucoin, etc.).
Spot and Futures Volumes: The indicator can sum the volume for spot trading and futures trading separately if desired. However, in the current version, it only sums the volume for specific pairs across multiple exchanges, without distinguishing between spot and futures volumes (though this feature can be added if necessary).
Customizable Exchange Selection: Users can select which exchanges' volume data to include in the aggregation.
Real-Time Updates: The volume data is updated in real-time as new bars are formed on the chart, providing an up-to-date picture of the trading volume.
Purpose:
The primary purpose of this indicator is to consolidate trading volume information from multiple exchanges for the same trading pair (e.g., BTC/USD). Traders can use this aggregated volume to gain a better understanding of market activity across various platforms, as well as assess the level of liquidity and interest in a particular asset.
By viewing the total aggregated volume, traders can:
Track market trends: Higher aggregated volume can signal increased market interest, making it easier to spot trends or potential breakouts.
Analyze liquidity: This indicator can help traders assess liquidity in the market, especially when using multiple exchanges.
Identify potential market manipulation: If there is a sudden spike in volume on multiple exchanges, it could signal market manipulation or an event-driven surge.
How it Works:
Volume Aggregation: The indicator collects and sums the volume data for a given symbol (e.g., BTC/USD) from different exchanges like Binance, Bybit, Kucoin, and others.
Multiple Exchanges: The volume data is aggregated from each selected exchange and plotted as a single volume value on the chart.
Real-Time Volume Plotting: The total aggregated volume is then plotted as a histogram on the chart, with the color of the bars changing depending on whether the price is rising or falling (typically green for rising prices and red for falling prices).
Inputs/Settings:
Exchange Selection: A list of checkboxes where users can choose which exchanges' volume data to include (e.g., Binance, Bybit, Kucoin, etc.).
Color Settings: Users can set the color for the histogram bars based on price direction (e.g., green for rising and red for falling).
Volume Calculation: The indicator calculates the volume for a specific cryptocurrency pair across selected exchanges in real-time.
Enhanced Volume Profile█ OVERVIEW
The Enhanced Volume Profile (EVP) is an indicator designed to plot a volume profile on the chart based on either the visible chart range or a fixed lookback period. The script helps analyze the distribution of volume at different price levels over time, providing insights into areas of high trading activity and potential support/resistance zones.
█ KEY FEATURES
1. Visible Chart Range vs. Fixed Lookback Depth
Visible Chart Range
- Default analysis mode
- Calculates profile based on visible portion of the chart
- Dynamically updates with chart view changes
Fixed Lookback Depth
- Optional alternative to visible range
- Uses specified number of bars (10-3000)
- Provides consistent analysis depth
- Independent of chart view
2. Custom Resolution
Auto-Resolution Mode
Automatically selects timeframes based on chart's current timeframe:
≤ 1 minute: Uses 1-minute resolution
≤ 5 minutes: Uses 1-minute resolution
≤ 15 minutes: Uses 5-minute resolution
≤ 1 hour: Uses 5-minute resolution
≤ 4 hours: Uses 15-minute resolution
≤ 12 hours: Uses 15-minute resolution
≤ 1 day: Uses 1-hour resolution
≤ 3 days: Uses 2-hours resolution
≤ 1 week: Uses 4-hours resolution
Custom Resolution Override
Optional override of auto-resolution system
Provides control over data granularity
Must be lower than or equal to chart's timeframe
Falls back to auto-resolution if validation fails
3. Volume Profile Resolution
Adjustable number of points (10-400)
Controls profile granularity
Higher resolution provides more detail
Balance between precision and performance
4. Point of Control (PoC)
Identifies price level with highest traded volume
Optional display with customizable appearance
Adjustable line thickness (1-30)
Configurable color
5. Value Area (VA)
Shows price range of majority trading volume
Adjustable coverage (5-95%), default is 68%
Customizable boundary lines
Configurable lines color and thickness (1-20)
█ INPUT PARAMETERS
Lookback Settings
Use Visible Chart Range
- Default: true
- Calculates profile based on visible bars
- Ideal for focused analysis
Fixed Lookback Bars
- Range: 10-3000
- Default: 200
- Used when visible range is disabled
Resolution Settings
Enable Custom Resolution
- Default: false
- Overrides auto-resolution
Custom Resolution
- Default: 1-minute
- Changes automatically when "Enable Custom Resolution" is disabled
Volume Profile Appearance
Profile Resolution
- Range: 10-400
- Default: 200
- Controls detail level
Profile Width Scale
- Range: 1-50
- Default: 15
- Adjusts profile width
Right Offset
- Range: 0-500
- Default: 20
- Controls spacing from price bars
Profile Fill Color
- Default: #5D606B (70% transparency)
Point of Control Settings
Show Point of Control
- Default: true
- Toggles PoC visibility
PoC Line Thickness
- Range: 1-30
- Default: 1
PoC Line Color
- Default: Red
Value Area Settings
Show Value Area
- Default: true
- Toggles VA lines
Value Area Coverage
- Range: 5-95%
- Default: 68%
Value Area Line Color
- Default: Blue
Value Area Line Thickness
- Range: 1-20
- Default: 1
█ TECHNICAL IMPLEMENTATION DETAILS
Exceeding Bars Management
The script dynamically adjusts the number of bars used in the volume profile calculation based on the selected timeframe and the maximum allowed bars (max_bars_back).
If the total number of bars exceeds the predefined threshold (6000 bars), the script reduces the lookback period (lookback_bars) by trimming some of the historical data, ensuring the chart does not become overloaded with data.
The adjustment is made based on the ratio of bars per candle (bars_per_candle), ensuring that the volume profile remains computationally efficient while maintaining its relevance.
█ EXAMPLE USE CASES
1. Visible Range Mode
For analyzing a recent trend and focusing on only the visible part of the chart, enabling the "Use Visible Chart Range" option calculates the profile based on the current view, without considering historical data outside the visible area.
2. Fixed Lookback Depth
For analyzing a specific period in the past (e.g., the last 200 bars), disabling the visible range and setting a fixed lookback depth of 200 bars ensures the profile always considers the last 200 bars, regardless of the visible range.
3. Custom Resolution
If there’s a need for greater control over the timeframe used for volume profile calculations (e.g., using a 5-minute resolution on a 15-minute chart), enabling custom resolution and setting the desired timeframe provides this control.
HAPPY TRADING ✌️
Advanced Order Blocks with VolumeAdvanced Order Blocks with Volume Indicator
This professional-grade indicator combines order block detection with sophisticated volume analysis to identify high-probability trading opportunities. It automatically detects and displays bullish and bearish order blocks formed during consolidation periods, enhanced by three distinct volume calculation methods (Simple, Relative, and Weighted).
Key Features:
- Smart consolidation detection with customizable thresholds
- Volume-filtered order blocks to avoid false signals
- Automatic order block mitigation tracking
- Clear visual presentation with volume metrics
- Flexible customization options for colors and parameters
Settings:
Core Parameters:
- Consolidation Threshold %: Sets the maximum price range (0.1-1.0%) for detecting consolidation zones
- Lookback Period: Number of bars (2-10) to analyze for consolidation patterns
Volume Analysis:
- Volume Calculation Method: Choose between Simple (basic average), Relative (compared to average), or Weighted (prioritized recent volume)
- Volume Lookback Period: Historical bars (5-100) used for volume analysis
- Volume Threshold Multiplier: Minimum volume requirement (1.0-5.0x) for valid order blocks
Visual Settings:
- Bullish/Bearish OB Color: Background colors for order blocks
- Bullish/Bearish OB Text Color: Colors for volume information display
Perfect for traders focusing on institutional price levels and volume-based trading strategies. The indicator helps identify potential reversal zones with strong institutional interest, validated by significant volume conditions.