volatility-adjusted breakout envelopethis indicator is designed to help traders visually identify potential entry and exit points based on volatility-adjusted price thresholds. it works by calculating a dynamic expected price move around the previous close using historical volatility data smoothed by exponential moving averages to reduce noise and present a clear range boundary on the chart.
the indicator first computes the logarithmic returns over a user-defined lookback period and calculates the standard deviation of these returns, which represents raw volatility. it annualizes this volatility according to the chart timeframe selected, then uses it to estimate an expected price movement for the current timeframe. this expected move is smoothed to avoid sudden spikes or drops that could cause confusing signals.
using this expected move, the indicator generates two key threshold lines: an upper threshold and a lower threshold. these lines create a volatility-based range around the smoothed previous close price. the thresholds themselves are further smoothed with exponential moving averages to produce smooth, easy-to-interpret lines that adapt to changing market conditions without being choppy.
the core trading signals are generated when the price closes outside of these smoothed threshold ranges. specifically, a long entry signal is indicated when the price closes above the upper threshold for the first time, signaling potential upward momentum beyond normal volatility expectations. a short entry signal occurs when the price closes below the lower threshold for the first time, indicating potential downward momentum.
once an entry signal is triggered, the indicator waits for the price to close back inside the threshold range before signaling an exit. when this occurs, an exit marker is displayed to indicate that the price has returned within normal volatility bounds, which may suggest that the previous trend is losing strength or the breakout has ended.
these signals are visually represented on the chart using small shapes: triangles pointing upwards mark the initial long entries, triangles pointing downwards mark short entries, and x shapes mark the exits for both long and short positions. the colors of these shapes are customizable to suit user preferences.
to use this indicator effectively, traders should watch for the first close outside the smoothed volatility range to consider entering a position in the breakout direction. the exit signals help identify when price action reverts back into the expected range, which can be used to close or reduce the position. this method emphasizes trading breakouts supported by statistically significant moves relative to recent volatility while providing a clear exit discipline.
this indicator is best applied to intraday or daily charts with consistent volatility and volume characteristics. users should adjust the volatility lookback period, smoothing factor, and trading session times to match their specific market and trading style. because it relies on price volatility rather than fixed price levels, it can adapt to changing market conditions but should be combined with other analysis tools and proper risk management.
overall, this indicator provides a smoothed, dynamic volatility envelope with clear visual entry and exit cues based on first closes outside and back inside these envelopes, making it a helpful assistant for manual traders seeking to capture statistically significant breakouts while maintaining disciplined exits.
波動率
Uptrick: Universal Z-Score ValuationOverview
The Uptrick: Universal Z-Score Valuation is a tool designed to help traders spot when the market might be overreacting—whether that’s on the upside or the downside. It does this by combining the Z-scores of multiple key indicators into a single average, letting you see how far the current market conditions have stretched away from “normal.” This average is shown as a smooth line, supported by color-coded visuals, signal markers, optional background highlights, and a live breakdown table that shows the contribution of each indicator in real time. The focus here is on spotting potential reversals, not following trends. The indicator works well across all timeframes and asset classes, from fast intraday charts like the 1-minute and 5-minute, to higher timeframes such as the 4-hour, daily, or even weekly. Its universal design makes it suitable for any market — whether you're trading crypto, stocks, forex, or commodities.
Introduction
To understand what this indicator does, let’s start with the idea of a Z-score. In simple terms, a Z-score tells you how far a number is from the average of its recent history, measured in standard deviations. If the price of an asset is two standard deviations above its mean, that means it’s statistically “rare” or extended. That doesn’t guarantee a reversal—but it suggests the move is unusual enough to pay attention.
This concept isn’t new, but what this indicator does differently is apply the Z-score to a wide set of market signals—not just price. It looks at momentum, volatility, volume, risk-adjusted performance, and even institutional price baselines. Each of those indicators is normalized using Z-scores, and then they’re combined into one average. This gives you a single, easy-to-read line that summarizes whether the entire market is behaving abnormally. Instead of reacting to one indicator, you’re reacting to a statistically balanced blend.
Purpose
The goal of this script is to catch turning points—places where the market may be topping out or bottoming after becoming overstretched. It’s built for traders who want to fade sharp moves rather than follow trends. Think of moments when price explodes upward and starts pulling away from every moving average, volume spikes, volatility rises, and RSI shoots up. This tool is meant to spot those situations—not just when price is stretched, but when multiple different indicators agree that something is overdone.
Originality and Uniqueness
Most indicators that use Z-scores only apply them to one thing—price, RSI, or maybe Bollinger Bands. This one is different because it treats each indicator as a contributor to the full picture. You decide which ones to include, and the script averages them out. This makes the tool flexible but also deeply informative.
It doesn’t rely on complex or hidden math. It uses basic Z-score formulas, applies them to well-known indicators, and shows you the result. What makes it unique is the way it brings those signals together—statistically, visually, and interactively—so you can see what’s happening in the moment with full transparency. It’s not trying to be flashy or predictive. It’s just showing you when things have gone too far, too fast.
Inputs and Parameters
This indicator includes a wide range of configurable inputs, allowing users to customize which components are included in the Z-score average, how each indicator is calculated, and how results are displayed visually. Below is a detailed explanation of each input:
General Settings
Z-Score Lookback (default: 100): Number of bars used to calculate the mean and standard deviation for Z-score normalization. Larger values smooth the Z-scores; smaller values make them more reactive.
Bar Color Mode (default: None): Determines how bars are visually colored. Options include: None: No candle coloring applied. - Heat: Smooth gradient based on the Z-score value. - Latest Signal: Applies a solid color based on the most recent buy or sell signal
Boolean - General
Plot Universal Valuation Line (default: true): If enabled, plots the average Z-score (zAvg) line in the separate pane.
Show Signals (default: true): Displays labels ("𝓤𝓹" for buy, "𝓓𝓸𝔀𝓷" for sell) when zAvg crosses above or below user-defined thresholds.
Show Z-Score Table (default: true): Displays a live table listing each enabled indicator's Z-score and the current average.
Select Indicators
These toggles enable or disable each indicator from contributing to the Z-score average:
Use VWAP Z-Score (default: true)
Use Sortino Z-Score (default: true)
Use ROC Z-Score (default: true)
Use Price Z-Score (default: true)
Use MACD Histogram Z-Score (default: false)
Use Bollinger %B Z-Score (default: false)
Use Stochastic K Z-Score (default: false)
Use Volume Z-Score (default: false)
Use ATR Z-Score (default: false)
Use RSI Z-Score (default: false)
Use Omega Z-Score (default: true)
Use Sharpe Z-Score (default: true)
Only enabled indicators are included in the average. This modular design allows traders to tailor the signal mix to their preferences.
Indicator Lengths
These inputs control how each individual indicator is calculated:
MACD Fast Length (default: 12)
MACD Slow Length (default: 26)
MACD Signal Length (default: 9)
Bollinger Basis Length (default: 20): Used to compute the Bollinger %B.
Bollinger Deviation Multiplier (default: 2.0): Standard deviation multiplier for the Bollinger Band calculation.
Stochastic Length (default: 14)
ATR Length (default: 14)
RSI Length (default: 14)
ROC Length (default: 10)
Zones
These thresholds define key signal levels for the Z-score average:
Neutral Line Level (default: 0): Baseline for the average Z-score.
Bullish Zone Level (default: -1): Optional intermediate zone suggesting early bullish conditions.
Bearish Zone Level (default: 1): Optional intermediate zone suggesting early bearish conditions.
Z = +2 Line Level (default: 2): Primary threshold for bearish signals.
Z = +3 Line Level (default: 3): Extreme bearish warning level.
Z = -2 Line Level (default: -2): Primary threshold for bullish signals.
Z = -3 Line Level (default: -3): Extreme bullish warning level.
These zone levels are used to generate signals, fill background shading, and draw horizontal lines for visual reference.
Why These Indicators Were Merged
Each indicator in this script was chosen for a specific reason. They all measure something different but complementary.
The VWAP Z-score helps you see when price has moved far from the volume-weighted average, often used by institutions.
Sortino Ratio Z-score focuses only on downside risk, which is often more relevant to traders than overall volatility.
ROC Z-score shows how fast price is changing—strong momentum may burn out quickly.
Price Z-score is the raw measure of how far current price has moved from its mean.
RSI Z-score shows whether momentum itself is stretched.
MACD Histogram Z-score captures shifts in trend strength and acceleration.
%B (Bollinger) Z-score indicates how close price is to the upper or lower volatility envelope.
Stochastic K Z-score gives a sense of how high or low price is relative to its recent range.
Volume Z-score shows when trading activity is unusually high or low.
ATR Z-score gives a read on volatility, showing if price movement is expanding or contracting.
Sharpe Z-score measures reward-to-risk performance, useful for evaluating trend quality.
Omega Z-score looks at the ratio of good returns to bad ones, offering a more nuanced view of efficiency.
By normalizing each of these using Z-scores and averaging only the ones you turn on, the script creates a flexible, balanced view of the market’s statistical stretch.
Calculations
The core formula is the standard Z-score:
Z = (current value - average) / standard deviation
Every indicator uses this formula after it’s calculated using your chosen settings. For example, RSI is first calculated as usual, then its Z-score is calculated over your selected lookback period. The script does this for every indicator you enable. Then it averages those Z-scores together to create a single value: zAvg. That value is plotted and used to generate visual cues, signals, table values, background color changes, and candle coloring.
Sequence
Each selected indicator is calculated using your custom input lengths.
The Z-score of each indicator is computed using the shared lookback period.
All active Z-scores are added up and averaged.
The resulting zAvg value is plotted as a line.
Signal conditions check if zAvg crosses user-defined thresholds (default: ±2).
If enabled, the script plots buy/sell signal labels at those crossover points.
The candle color is updated using your selected mode (heatmap or signal-based).
If extreme Z-scores are reached, background highlighting is applied.
A live table updates with each individual Z-score so you know what’s driving the signal.
Features
This script isn’t just about stats—it’s about making them usable in real time. Every feature has a clear reason to exist, and they’re all there to give you a better read on market conditions.
1. Universal Z-Score Line
This is your primary reference. It reflects the average Z-score across all selected indicators. The line updates live and is color-coded to show how far it is from neutral. The further it gets from 0, the brighter the color becomes—cyan for deeply oversold conditions, magenta for overbought. This gives you instant feedback on how statistically “hot” or “cold” the market is, without needing to read any numbers.
2. Signal Labels (“𝓤𝓹” and “𝓓𝓸𝔀𝓷”)
When the average Z-score drops below your lower bound, you’ll see a "𝓤𝓹" label below the bar, suggesting potential bullish reversal conditions. When it rises above the upper bound, a "𝓓𝓸𝔀𝓷" label is shown above the bar—indicating possible bearish exhaustion. These labels are visually clear and minimal so they don’t clutter your chart. They're based on clear crossover logic and do not repaint.
3. Real-Time Z-Score Table
The table shows each indicator's individual Z-score and the final average. It updates every bar, giving you a transparent breakdown of what’s happening under the hood. If the market is showing an extreme average score, this table helps you pinpoint which indicators are contributing the most—so you’re not just guessing where the pressure is coming from.
4. Bar Coloring Modes
You can choose from three modes:
None: Keeps your candles clean and untouched.
Heat: Applies a smooth gradient color based on Z-score intensity. As conditions become more extreme, candle color transitions from neutral to either cyan (bullish pressure) or magenta (bearish pressure).
Latest Signal: Applies hard coloring based on the most recent signal—greenish for a buy, purple for a sell. This mode is great for tracking market state at a glance without relying on a gradient.
Every part of the candle is colored—body, wick, and border—for full visibility.
5. Background Highlighting
When zAvg enters an extreme zone (typically above +2 or below -2), the background shifts color to reflect the market’s intensity. These changes aren’t overwhelming—they’re light fills that act as ambient warnings, helping you stay aware of when price might be reaching a tipping point.
6. Customizable Zone Lines and Fills
You can define what counts as neutral, overbought, and oversold using manual inputs. Horizontal lines show your thresholds, and shaded regions highlight the most extreme zones (+2 to +3 and -2 to -3). These lines give you visual structure to understand where price currently stands in relation to your personal reversal model.
7. Modular Indicator Control
You don’t have to use all the indicators. You can enable or disable any of the 12 with a simple checkbox. This means you can build your own “blend” of market context—maybe you only care about RSI, price, and volume. Or maybe you want everything on. The script adapts accordingly, only averaging what you select.
8. Fully Customizable Sensitivity and Lengths
You can adjust the Z-score lookback length globally (default 100), and tweak individual indicator lengths separately. This lets you tune the indicator’s responsiveness to suit your trading style—slower for longer swings, faster for scalping.
9. Clean Integration with Any Chart Layout
All visual elements are designed to be informative without taking over your chart. The coloring is soft but clear, the labels are readable without being huge, and you can turn off any feature you don’t need. The indicator can work as a full dashboard or as a simple line with a couple of alerts—it’s up to you.
10. Precise, Real-Time Signal Logic
The crossover logic for signals is exact and only fires when the Z-score moves across your defined boundary. No estimation, no delay. Everything is calculated based on current and previous bar data, and nothing repaints or back-adjusts.
Conclusion
The Universal Z-Score Valuation indicator is a tool for traders who want a clear, unbiased way to detect overextension. Instead of relying on a single signal, you get a composite of several market perspectives—momentum, volatility, volume, and more—all standardized into a single view. The script gives you the freedom to control the logic, the visuals, and the components. Whether you use it as a confirmation tool or a primary signal source, it’s designed to give you clarity when markets become chaotic.
Disclaimer
This indicator is for research and educational use only. It does not constitute financial advice or guarantees of performance. All trading involves risk, and users should test any strategy thoroughly before applying it to live markets. Use this tool at your own discretion.
VWAP Deviation Channels with Probability (Lite)VWAP Deviation Channels with Probability (Lite)
Version 1.2
Overview
This indicator is a powerful tool for intraday traders, designed to identify high-probability areas of support and resistance. It plots the Volume-Weighted Average Price (VWAP) as a central "value" line and then draws statistically-based deviation channels around it.
Its unique feature is a dynamic probability engine that analyzes thousands of historical price bars to calculate and display the real-time likelihood of the price touching each of these deviation levels. This provides a quantifiable edge for making trading decisions.
Core Concepts Explained
This indicator is built on three key concepts:
The VWAP (Volume-Weighted Average Price): The dotted midline of the channels is the session VWAP. Unlike a Simple Moving Average (SMA) which only considers price, the VWAP incorporates volume into its calculation. This makes it a much more significant benchmark, as it represents the true average price where the most business has been transacted during the day. It's heavily used by institutional traders, which is why price often reacts strongly to it.
Standard Deviation Channels: The channels above and below the VWAP are based on standard deviations. Standard deviation is a statistical measure of volatility.
- Wide Bands: When the channels are wide, it signifies high volatility.
- Narrow Bands: When the channels are tight and narrow, it signifies low volatility and
consolidation (a "squeeze").
The Conditional Probability Engine: This is the heart of the indicator. For every deviation level, the script displays a percentage. This percentage answers a very specific question:
"Based on thousands of previous bars, when the last candle had a certain momentum (bullish or bearish), what was the historical probability that the price would touch this specific level?"
The probabilities are calculated separately depending on whether the previous candle was green (bullish) or red (bearish). This provides a nuanced, momentum-based edge. The level with the highest probability is highlighted, acting as a "price magnet."
How to Use This Indicator
Recommended Timeframes:
This indicator is designed specifically for intraday trading. It works best on timeframes like the 1-minute, 5-minute, and 15-minute charts. It will not display correctly on daily or higher timeframes.
Recommended Trading Strategy: Mean Reversion
The primary strategy for this indicator is "Mean Reversion." The core idea is that as the price stretches to extreme levels far away from the VWAP (the "mean"), it is statistically more likely to "snap back" toward it.
Here is a step-by-step guide to trading this setup:
1. Identify the Extreme: Wait for the price to push into one of the outer deviation bands (e.g., the -2, -3, or -4 bands for a buy setup, or the +2, +3, or +4 bands for a sell setup).
2. Look for the High-Probability Zone: Pay close attention to the highlighted probability label. This is the level that has historically acted as the strongest magnet for price. A touch of this level represents a high-probability area for a potential reversal.
3. Wait for Confirmation: Do not enter a trade just because the price has touched a band. Wait for a confirmation candle that shows momentum is shifting.
- For a Buy: Look for a strong bullish candle (e.g., a green engulfing candle or a hammer/pin
bar) to form at the lower bands.
- For a Sell: Look for a strong bearish candle (e.g., a red engulfing candle or a shooting star)
to form at the upper bands.
Define Your Exit:
- Take Profit: A logical primary target for a mean reversion trade is the VWAP (midLine).
- Stop Loss: A logical place for a stop-loss is just outside the next deviation band. For
example, if you enter a long trade at the -3 band, your stop loss could be placed just
below the -4 band.
Disclaimer: This indicator is a tool for analysis and should not be considered a standalone trading system. Trading involves significant risk, and past performance is not indicative of future results. Always use this indicator in conjunction with other forms of analysis and sound risk management practices.
Iceberg DetectorThis Pine-script indicator helps you spot potential “iceberg” order activity by highlighting bars where volume spikes well above its average while price movement remains unusually muted. It’s purely a heuristic—no true bid/ask or futures order‐flow data is used—so treat every signal as an invitation to investigate, not as a standalone buy/sell trigger.
How It Works • Volume vs. Volume-SMA: The script compares each bar’s total volume to an N-bar simple moving average. • Price Movement vs. Movement-SMA: It measures the bar’s percent change (|close–open|/open×100) against its own N-bar SMA. • Sensitivity Slider: From 1 (loose filter) to 10 (strict filter), you control how extreme the volume spike (and muted move) must be to fire a signal. • Pivot-Style Extremes Filter: Short signals only appear when price is at or very near a recent local high, and long signals only when price is at or very near a recent local low. This dramatically cuts down “noise” on lower timeframes—script execution halts on intraday charts below 1 H.
How to Use
Apply to an hourly (or higher) chart.
Tweak “Length” parameters for your preferred look-back on volume and movement SMAs.
Adjust “Sensitivity” from 1 (more signals, weaker divergences) up to 10 (very rare, extreme divergences).
Watch for red triangles above bars (Iceberg-Short) and green triangles below (Iceberg-Long).
Important Disclaimers • This is NOT a genuine order-flow or footprint tool—it only approximates delta by bar direction. • Always contextualize Short signals near the lower end of a range or support zone, and Long signals near the upper end of a range or resistance zone. • Use additional confirmation (price patterns, larger-timeframe pivots, traditional volume/price analysis) before risking real capital.
By combining volume spikes with muted price action at range extremes, you gain a fresh lens on where hidden large orders might be lurking—without needing a dedicated order-flow feed. Use it as an idea‐generator, not as gospel
Volatility Zones (STDEV %)This indicator displays the relative volatility of an asset as a percentage, based on the standard deviation of price over a custom length.
🔍 Key features:
• Uses standard deviation (%) to reflect recent price volatility
• Classifies volatility into three zones:
Low volatility (≤2%) — highlighted in blue
Medium volatility (2–4%) — highlighted in orange
High volatility (>4%) — highlighted in red
• Supports visual background shading and colored line output
• Works on any timeframe and asset
📊 This tool is useful for identifying low-risk entry zones, periods of expansion or contraction in price behavior, and dynamic market regime changes.
You can adjust the STDEV length to suit your strategy or timeframe. Best used in combination with your entry logic or trend filters.
Liquidity Rush:VSMarkettrend Liquidity Rush (LR) Indicator – Market Move Detector
🔍 What is Liquidity Rush?
The Liquidity Rush (LR) indicator detects the flow of big money (institutional or high-volume traders) into a stock over a selected time frame. It visually represents the net liquidity inflow/outflow and compares it with the stock's total market capitalization (MC) to give you a contextual view of its significance.
📊 Indicator Output:
You’ll see a label like:
250.07 Cr / 0.23%MC
250.07 Cr → Liquidity change (buy/sell impact) in the selected timeframe.
0.23%MC → This liquidity is 0.23% of the stock’s market cap.
This helps you judge:
Whether the move is impactful or just noise.
If smart money is likely entering or exiting.
⚠️ Why % of Market Cap?
Volume or liquidity alone doesn't tell the full story. 100 Cr inflow in a 5,000 Cr company is significant (2%), but the same in a 50,000 Cr company is not impactful (0.2%). That’s why this indicator shows LR as a % of MC — to give you contextual importance.
🟢 When is it Powerful?
If LR % > 2% of market cap consistently → Strong entry signals likely from big players.
If LR jumps suddenly after a dull phase → Watch for breakout or reversal.
🎨 Color Coding (Based on Liquidity Amount):
<10 Cr → Low (likely retail-driven)
>10–20 Cr → Moderate (watchful)
>20–100 Cr → Heating up
>100 Cr → High liquidity activity (possible institutional move)
📅 Best Timeframes:
Use it on Daily, Weekly for quick flow detection.
Combine with price action or volume for confirmation.
Use Cases:
Identify breakouts with backing.
Filter fake moves with weak liquidity.
Spot smart money entry before price jumps.
Note : It does not means that stock with low LR are bad and not move, many stock move with low LR also, This indicator need not to be used in isolation.
Bollinger Bands Levels | VTS Pro📊 Bollinger Bands Levels | VTS Pro
by Alireza Mossaheb
This advanced Bollinger Bands indicator takes your technical analysis to the next level by providing dynamic price bands along with customizable horizontal levels and labels. Whether you're a trend trader or a mean reversion strategist, this tool adapts to your workflow.
🔧 Key Features:
Three Modes: Choose between Strong (20, 2), Weak (10, 1.5), or Custom settings for full control.
Multi-Timeframe Support: Plot Bollinger Bands from any higher or lower timeframe.
Multiple MA Types: Select from SMA, EMA, RMA (SMMA), WMA, and VWMA for the basis line.
Visual Enhancements:
Optional background fill between bands
Stylized horizontal lines with labels (Top/Mid/Low)
Customizable line style, width, and color
Smart Labeling: Automatically names levels based on timeframe and mode.
Improved Plot Logic: Line width bug fixed for smoother rendering across presets.
🧠 Ideal For:
Spotting volatility squeezes or expansions
Confirming support/resistance with upper/lower bands
Creating confluence zones using higher timeframe Bollinger levels
Momentum Trajectory Suite📈 Momentum Trajectory Suite
🟢 Overview
Momentum Trajectory Suite is a multi-faceted indicator designed to help traders evaluate trend direction, volatility conditions, and behavioral sentiment in a single consolidated view.
By combining a customizable Trajectory EMA, adaptive Bollinger Bands, and a Greed vs. Fear heatmap, this tool empowers traders to identify directional bias, measure momentum strength, and spot potential reversals or continuation setups.
🧠 Concept
This indicator merges three classic techniques:
Trend Analysis: Trajectory EMA highlights the prevailing directional momentum by smoothing price action over a customizable period.
Volatility Envelopes: Bollinger Bands adapt to dynamic price swings, showing overbought/oversold extremes and periods of contraction or expansion.
Behavioral Sentiment: A Greed vs. Fear heatmap combines RSI and MACD Histogram readings to visualize when markets are dominated by buying enthusiasm or selling pressure.
The combination is designed to help traders interpret market context more effectively than using any single component alone.
🛠️ How to Use the Indicator
Trajectory EMA:
Use the blue EMA line to assess overall trend direction.
Price closing above the EMA may indicate bullish momentum; closing below may indicate bearish bias.
Buy/Sell Signals:
Green circles appear when price crosses above the EMA (potential long entry).
Red circles appear when price crosses below the EMA (potential exit or short entry).
Bollinger Bands:
Monitor upper/lower bands for overbought and oversold price extremes.
Narrowing bands may signal upcoming volatility expansion.
Greed vs. Fear Heatmap:
Green histogram bars indicate bullish sentiment when RSI exceeds 60 and MACD Histogram is positive.
Red histogram bars indicate bearish sentiment when RSI is below 40 and MACD Histogram is negative.
Gray bars indicate neutral or mixed conditions.
Background Color Zones:
The chart background shifts to green when EMA slope is positive and red when negative, providing quick directional cues.
All inputs are adjustable in settings, including EMA length, Bollinger Band parameters, and oscillator configurations.
📊 Interpretation
Bullish Conditions:
Price above the Trajectory EMA, background green, and Greed heatmap active.
May signal trend continuation and increased buying pressure.
Bearish Conditions:
Price below the Trajectory EMA, background red, and Fear heatmap active.
May signal momentum breakdown or potential continuation to the downside.
Volatility Clues:
Wide Bollinger Bands = trending, volatile market.
Narrow Bollinger Bands = low volatility and possible breakout setup.
Signal Confirmation:
Consider combining signals (e.g., EMA crossover + Greed/Fear heatmap + Bollinger Band touch) for higher-confidence entries.
📝 Notes
The script does not repaint or use future data.
Suitable for multiple timeframes (intraday to daily).
May be combined with other confirmation tools or price action analysis.
⚠️ Disclaimer
This script is for educational and informational purposes only and does not constitute financial advice. Trading carries risk and past performance is not indicative of future results. Always perform your own due diligence before making trading decisions.
Weekly Range PlotterThe Weekly Range Plotter is a dynamic market structure tool designed to help traders visualize critical high and low levels from specific days of the week and the previous week's range. It provides key visual anchors to support analysis of market behavior, including range compression/expansion and directional bias.
Williams VIX For Bottoms [DCD]Williams VIX Original - Authentic Volatility Fear Gauge
What This Indicator Does
The Williams VIX Fix measures market fear by calculating how far current lows deviate from recent highs, identifying potential market bottoms during high volatility periods. This implementation provides Larry Williams' original formula in its purest form.
How It Works
Core Formula:
VIX Fix = ((Highest High over 22 periods - Current Low) / Highest High over 22 periods) × 100
The calculation process:
Measures Relative Distance: Compares current low to highest high over lookback period
Converts to Percentage: Normalizes values for cross-market comparison
Applies Statistical Analysis: Uses Bollinger Bands (2 std dev) around VIX Fix values
Filters with Percentiles: 85th percentile threshold removes noise
Signal Generation
Green Flash Signals trigger when either condition is met:
VIX Fix exceeds upper Bollinger Band (2 standard deviations above 20-period MA)
VIX Fix exceeds Range High (85th percentile of recent values)
This dual-condition approach reduces false signals while capturing genuine volatility spikes.
What Makes This Original
Pure Formula Implementation: Uses Williams' exact original calculation without modifications
Dual Confirmation System: Combines Bollinger Bands with percentile analysis
Professional Visualization: Histogram display, background highlighting, and live value table
Comprehensive Alerts: Signal start/end notifications plus Green Flash alerts
How to Use
Primary Purpose: Spot high-probability reversal zones during market fear climaxes
Signal Interpretation:
Green triangle + background highlight = High volatility reversal zone
Higher VIX Fix values = Stronger fear/better reversal potential
Use with price action confirmation for best results
Optimal Settings:
Timeframes: 4H, Daily, Weekly
Markets: All (stocks, crypto, forex, commodities)
Combine with support levels and candlestick patterns
Key Parameters:
VIX Fix Length (22): Lookback period for highest high
Std Dev Multiplier (2.0): Bollinger Band sensitivity
Percentile High (0.85): Only top 15% of readings trigger signals
The VIX Fix excels at identifying market fear climaxes that coincide with significant price bottoms, making it valuable for swing traders seeking high-probability entries during market stress.
BB VolatilityBB Volatility indicator is monitoring the famous Bollinger Bands volatility in a normalised manner.
Could not find anything similar so thought this would be useful.
For confirmation signals of the BB to move into one or another direction it is complemented with SMA and EMA.
Additionally, it is complemented with Min Level of BB line - a level user can define and decide to use or not for even stronger conviction for a potential BB expansion.
How to use?
As it monitors when the BB narrows, it helps to identify potential price breakout moments in one or another direction.
Users can adjust duration and Min Level inputs as per security they are interested.
For better visualisation purposes, the background is plotted light green when BB crosses both SMA and EMA upwards. And plotted light red when BB crosses both downwards. Users can also adjust the colors as per their preferences.
This indicator just helps to define potential BB expansion moments. No indicator alone is perfect and for most effective use needs to be complemented with overall market context and other chart patterns.
Historical Volatility with HV Average & High/Low Trendlines
### 📊 **Indicator Title**: Historical Volatility with HV Average & High/Low Trendlines
**Version**: Pine Script v5
**Purpose**:
This script visualizes market volatility using **Historical Volatility (HV)** and enhances analysis by:
* Showing a **moving average** of HV to identify volatility trends.
* Marking **high and low trendlines** to highlight extremes in volatility over a selected period.
---
### 🔧 **Inputs**:
1. **HV Length (`length`)**:
Controls how many bars are used to calculate Historical Volatility.
*(Default: 10)*
2. **Average Length (`avgLength`)**:
Number of bars used for calculating the moving average of HV.
*(Default: 20)*
3. **Trendline Lookback Period (`trendLookback`)**:
Number of bars to look back for calculating the highest and lowest values of HV.
*(Default: 100)*
---
### 📈 **Core Calculations**:
1. **Historical Volatility (`hv`)**:
$$
HV = 100 \times \text{stdev}\left(\ln\left(\frac{\text{close}}{\text{close} }\right), \text{length}\right) \times \sqrt{\frac{365}{\text{period}}}
$$
* Measures how much the stock price fluctuates.
* Adjusts annualization factor depending on whether it's intraday or daily.
2. **HV Moving Average (`hvAvg`)**:
A simple moving average (SMA) of HV over the selected `avgLength`.
3. **HV High & Low Trendlines**:
* `hvHigh`: Highest HV value over the last `trendLookback` bars.
* `hvLow`: Lowest HV value over the last `trendLookback` bars.
---
### 🖍️ **Visual Plots**:
* 🔵 **HV**: Blue line showing raw Historical Volatility.
* 🔴 **HV Average**: Red line (thicker) indicating smoothed HV trend.
* 🟢 **HV High**: Green horizontal line marking volatility peaks.
* 🟠 **HV Low**: Orange horizontal line marking volatility lows.
---
### ✅ **Usage**:
* **High HV**: Indicates increased risk or potential breakout conditions.
* **Low HV**: Suggests consolidation or calm markets.
* **Cross of HV above Average**: May signal rising volatility (e.g., before breakout).
* **Touching High/Low Levels**: Helps identify volatility extremes and possible reversal zones.
Velocity + Momentum (SMA-Based)Velocity + Momentum (SMA-Based) is a clean, powerful oscillator that measures price acceleration using SMA-derived velocity and dual momentum signals. This tool is ideal for identifying directional shifts, exhaustion points, and early entries across any market or timeframe.
How It Works:
This indicator calculates velocity as the distance between the current close and a simple moving average of the open price. Then, it applies two smoothed moving averages to this velocity line:
• Internal Momentum (shorter-term smoothing)
• External Momentum (longer-term context, hidden by default)
The result is a layered view of how fast price is moving and whether that move is gaining or losing strength.
How to Use:
• The green/red histogram shows current velocity (positive = bullish, negative = bearish)
• The teal/maroon line tracks internal momentum and provides short-term signal turns
• The black/gray (hidden) line reflects external momentum and supports broader trend alignment
• Watch for crosses above/below the zero line for confirmation of directional strength
• Use the built-in alerts to catch real-time shifts in all three layers of movement: velocity, internal, and external
Why It's Useful:
• Detects subtle transitions before price structure changes
• Helps filter out noise by comparing short-term vs long-term motion
• Ideal for scalpers, swing traders, and trend-followers alike
• Pairs well with structure-based tools or price action zones
• Works on any asset and timeframe
This indicator simplifies momentum analysis by giving you actionable, multi-layered feedback on how price is accelerating — and when that’s likely to reverse.
Bid/Ask Volume Tension with Rolling Avg📊 Bid/Ask Volume Tension with Rolling Average
This indicator is designed to help traders identify pivotal moments of buildup, exhaustion, or imbalance in the market by calculating the tension between buy and sell volume.
🔍 How It Works:
Buy volume is approximated when the candle closes higher than or equal to its open.
Sell volume is approximated when the candle closes below its open.
Both are smoothed using an EMA (Exponential Moving Average) for noise reduction.
Tension is calculated as the absolute difference between smoothed buy and sell volume.
A rolling average of tension shows the baseline for normal behavior.
When instant tension rises significantly above the rolling average, it often signals:
A build-up before a large move
Aggressive order flow imbalances
Potential reversals or breakouts
🧠 How to Use:
Watch the orange line (instant tension) for spikes above the aqua line (rolling average).
Purple background highlights show when tension exceeds a customizable multiple of the average — a potential setup zone.
Use this indicator alongside:
Price action (candlestick structure)
Support/resistance
Liquidity zones or order blocks
⚙️ Settings:
Smoothing Length: Controls the responsiveness of buy/sell volume smoothing.
Rolling Avg Window: Defines the lookback period for the baseline tension.
Buildup Threshold: Triggers highlight zones when tension exceeds this multiple of the average.
🧪 Best For:
Spotting pre-breakout tension
Detecting volume-based divergences
Confirming order flow imbalances
FeraTrading Compression Indicator v1.3🧠 Overview:
The FeraTrading Compression Indicator v1.3 identifies early-stage directional breakouts that follow periods of volatility contraction. This tool is built for intraday traders looking to catch clean breakouts out of tight consolidations. It doesn’t just detect compression—it confirms when that compression is being forcefully released with directional intent.
By combining volatility filtering, trend structure via EMAs, body dominance checks, and an optional session filter, the indicator isolates breakout signals with a high degree of confluence. Users can optionally enable a Signal Flip mode to invert long/short logic—useful in mean-reverting environments or inverse structures.
⚙️ How It Works:
🔹 Volatility Compression Detection:
Compression is detected using a relative ATR comparison between short-term and long-term range averages.
When the short-term range falls below a threshold, the market is considered to be compressing.
This approach is fully adaptive—self-scaling across different asset types and timeframes.
🔹 Breakout Confirmation Logic:
A breakout is confirmed only when the following conditions align:
Range Expansion:
The breakout candle must exceed the long-term average range—confirming actual price expansion.
Strong Candle Body:
The body must represent a significant portion of the candle’s range, confirming momentum and directionality.
EMA Trend Alignment:
The script checks that a fast EMA is properly aligned with a slower EMA and that the candle closes beyond the fast EMA in the correct direction.
Optional Session Filter (08:30–11:30 EST):
Focuses signals to the high-volume portion of the day, increasing reliability. Can be disabled for full-session use.
Signal Flip Option:
Reverses signal logic for assets that often fade breakouts or move counter to structural expectations.
🧪 Built-In Backtester:
The script includes a bar-level backtester, enabling users to simulate SL/TP outcomes and visualize strategy performance directly on the chart.
🧮 Logic & Assumptions:
Trades enter at the open of the signal bar.
SL/TP levels are applied immediately.
If both are hit on the same bar, SL is assumed to hit first (for realism).
An optional setting closes trades at the end of day.
📊 Visual Feedback:
TP and SL levels are plotted in real time.
A stats box displays:
Win rate
Total trades
Max drawdown
Cumulative PnL
This provides an instant read on strategy behavior using your exact market view.
🎯 What Makes It Original:
Compression breakout logic without oscillators: Signals are built from candle structure, EMA alignment, and raw volatility—no lagging tools required.
Real-time SL/TP backtesting: Built-in engine allows traders to test performance without switching tools or exporting data.
Modular logic design: Session filters, signal flip, and compression strictness can be tailored to different markets and conditions.
Minimal input, deep logic: Two volatility filters, two EMAs, and a candle body check combine into a layered signal system that adapts in real time.
This balance of simplicity and structural precision makes it highly versatile for active day traders across asset classes.
✅ How to Use:
Add the script to any chart (1m–15m ideal).
Watch for triangle signals:
Green = bullish breakout
Red = bearish breakout
Toggle session filters or signal flip as needed.
Enable the backtester to visualize edge over time.
Combine with structure, liquidity zones, or volume tools for confluence.
This indicator is best deployed during active market hours when breakout momentum has the highest chance of follow-through.
💎 Why It’s Worth Paying For
The FeraTrading Compression Indicator v1.3 is not just another breakout tool—it is a modular signal system with embedded trade testing logic, built specifically for real-world trading environments.
What makes it premium:
Live confluence-based signals with real volatility and momentum context
Custom-built SL/TP backtester with chart-based visual performance feedback
Non-repainting, directional logic with trend and structure confirmation
Adaptive signal behavior via session and flip toggles
Designed for real execution, not just visual alerts
The blend of signal accuracy, trade simulation, and structural adaptability makes this script more than an entry indicator—it’s a breakout testing and execution framework, ready to plug into any strategy.
✅ Compliance & Originality
This script was written entirely from scratch using original compression logic, trend structure filtering, and trade simulation. It does not reuse any public code, open-source snippets, or repackaged modules. All calculations, condition checks, visuals, and stats logic are unique to this tool. EMA's and ATR were used in filter logic, yet they are only 2 of many filters used, all of the others being fully custom built.
⚠️ Risk Disclaimer & Access Policy
This tool does not predict market direction or guarantee trade results. It provides a rule-based breakout signal structure designed to align with price expansion logic.
Always use your own risk management practices and trade plans. This script is meant as a supportive tool, not a financial advisory system.
🔒 Why This Script Is Invite-Only and Closed-Source
To preserve the tool’s edge and prevent unauthorized replication, the script is invite-only and closed-source.
The following features are proprietary:
Compression zone and range expansion filter logic
Real-time SL/TP backtesting engine
Signal flip and session filtering integration
Confluence layering using structure, volatility, and body-based validation
Opening the source would expose key mechanics and reduce the integrity of the strategy’s edge. Closed access ensures the system remains performant, exclusive, and trusted by serious traders.
FeraTrading Compression Flow v1🧠 Overview:
The FeraTrading Compression Flow v1 identifies moments in the market where volatility contracts and directional momentum builds beneath the surface. It detects when price compresses into a tight range, then confirms when momentum, volatility, and trend alignment combine to signal a high-probability breakout. Once all conditions are met, the indicator activates a persistent directional bias, shown visually with colored dynamic bands.
This isn’t just another squeeze or Bollinger-style compression indicator—it adds multi-layered confirmation logic and unique bias persistence mechanics, helping traders stay aligned with trend-based breakout phases rather than just spotting volatility drops.
⚙️ How It Works:
🔹 Volatility Compression Detection:
Uses a relative ATR filter to detect when the market is in contraction.
Compares short-term range behavior to a longer-term average using a customizable multiplier.
Avoids standard band-width logic (like BB/KC), instead relying on raw candle volatility for more adaptive compression detection.
🔹 Breakout Confirmation Logic:
A breakout is confirmed only when all of the following align:
Strong Candle Body: Filters out indecision bars and ensures clear directional intent.
EMA Trend Structure: Fast EMA must be properly aligned with the slow EMA, and price must close beyond the fast EMA in the breakout direction.
Range Burst: Breakout candle must exceed historical range norms, confirming an actual volatility expansion—not a false breakout.
Each layer is required—no single condition is enough—creating a highly selective confirmation system that filters out noise.
🔹 Bias Persistence Mechanism:
Once a valid breakout is confirmed, the script activates a persistent directional bias (bullish or bearish).
The bias does not flip unless an opposing breakout confirms.
This eliminates premature resets and allows traders to hold trend alignment visually until true reversal conditions are met.
🎨 Visual Behavior:
📈 Band Calculations:
Bands are drawn using smoothed highs and lows, plus or minus a scaled ATR-based buffer.
They adjust dynamically to both price scale and volatility, expanding and contracting naturally with the market.
🎨 Band Coloring:
Green bands = Bullish breakout confirmed
Red bands = Bearish breakout confirmed
No color = Compression detected, but no directional breakout yet
These are not support/resistance levels. They are momentum flow visualizations, providing a clean, unobtrusive way to track trend phases post-compression.
💡 What Makes It Unique:
Multi-confirmation logic: Combines compression, candle strength, trend direction, and volatility surge into one system.
Bias memory: Maintains directional bias until structurally invalidated—not just until the next indecisive bar.
Volatility-scaled bands: Makes this system flexible across all assets and timeframes, without constant tweaking.
No lagging oscillators: Instead of using MACD/RSI, it reads real-time momentum through body-to-range relationships and EMA stacking.
Minimal input, maximum output: With only two adjustable inputs, the script remains simple to deploy while offering deep contextual information.
✅ How to Use It:
Add the indicator to any chart (15m and lower preferred).
Watch for band color changes:
Green = Bullish breakout phase
Red = Bearish breakout phase
Use band direction as a trend alignment filter.
Avoid trading against active bias unless part of a confirmed reversal setup.
Adjust the Input Multiplier to fine-tune compression strictness (lower = stricter, higher = more permissive).
This indicator is especially useful following periods of consolidation and works well when layered with structure, supply/demand zones, or volume overlays.
💎 Why It’s Worth Paying For
The FeraTrading Compression Flow v1 offers a uniquely structured approach to breakout detection. While most compression indicators only highlight low-volatility zones, this script confirms breakouts through confluence, activates persistent bias, and provides a visual flow overlay that dynamically adjusts to the market.
Key distinctions include:
A custom ATR-based compression filter that adapts to any asset
Breakout confirmation from price structure, EMAs, and body dominance
A bias persistence engine that filters out false flips and maintains trend visibility
Dynamic bands that scale based on both price and volatility—not just moving averages
This combination cannot be replicated with built-in indicators or open-source scripts. It reflects real trade experience, structural logic, and volatility awareness built into a visual format designed to reduce overtrading and improve signal trust.
✅ Compliance & Originality
This script was built entirely in-house using original logic. Every calculation—from compression detection to bias activation—is proprietary and coded from scratch. No open-source libraries or reused components are present. Band rendering, bias conditions, and signal architecture were designed specifically for this model. EMA's and ATR were used in filter logic, yet they are only 2 of many filters used, all of the others being fully custom built.
The script uses no external data sources and is built entirely on native Pine Script logic.
⚠️ Risk Disclaimer & Access Policy
This tool is a visual momentum and structure tracking overlay. It does not predict future price movement and should not be used in isolation to make trading decisions. Always apply proper risk management, position sizing, and market awareness.
Past performance does not guarantee future results.
🔒 Why This Script Is Invite-Only and Closed-Source
The compression detection logic, multi-step breakout confirmation, and persistent bias engine represent proprietary intellectual property developed for high-clarity directional tracking.
Releasing this logic would expose the core detection methods to copycats and diminish its edge. Access is restricted to protect:
The custom compression logic
The confluence-based breakout filters
The bias state engine and dynamic band visualizations
Closed-source protection ensures this tool retains its uniqueness and value for serious traders.
Currency Volatility Index (CVI)This Currency Volatility Index (CVI) indicator aggregates the realized volatility of the eight “major” FX pairs into a single, tradable series—much like an FX-version of the VIX. Here’s what it does step by step:
Inputs & Settings
• Volatility Length (default 20 days): the lookback over which daily log-returns’ standard deviation is computed.
• Data Timeframe (default Daily): the resolution at which price data is fetched for each pair.
• Smoothing Length (default 5): the period of a simple moving average applied to the raw, averaged volatility (in %).
Pair-by-Pair Volatility Calculation
For each hard-coded symbol (EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, USDCAD, NZDUSD, EURGBP):
Pull the series of daily closes.
Compute the series of log-returns: ln(today’s close / yesterday’s close).
Calculate the standard deviation of those log-returns over your lookback.
Annualize it (×√252) to convert daily volatility into an annualized figure.
Aggregation
The eight annualized volatilities are averaged (equal weights).
The resulting number is then multiplied by 100 to express it as a percentage.
Smoothing & Plotting
A simple moving average over the aggregated volatility smooths out spikes.
The smoothed CVI (%) is plotted as a standalone line below price charts.
Visualization Aids
A small table in the top-right corner shows each pair’s current volatility in percent.
A dynamic label on the final bar prints the latest CVI value directly on the chart.
Why use it?
Gives a one-stop measure of overall FX market turbulence.
Helps you compare “quiet” vs. “volatile” regimes across currencies.
Expanded Cloud [LuxAlgo]The Expanded Cloud tool allows traders to identify and follow trends accurately. It is based on the well-known Donchian Channels, but with enhanced features.
It features a trailing cloud that expands with the price and a trading stats dashboard.
🔶 USAGE
The tool is super easy to use. Traders can identify bigger or smaller trends just by adjusting the length from the settings panel.
Trend identification is based on Donchian Channels. An uptrend is indicated when the cloud is located below the price, while a downtrend is indicated when the cloud is above it.
Dots signal the start of a new trend, and the width of the clouds identifies the strength of the price expansion. The wider the cloud, the bigger the move.
The expanded cloud, due to its visual, can also act as a trailing stop.
🔹 Trend Identification
As we can see in the chart above, different length values identify different trends on the same BTC daily chart. Larger values identify larger trends.
🔹 Cloud Expansion
From the settings panel, traders can adjust how the clouds expand based on the Expansion % parameter. It accepts values from 0 to 100, which controls how much of the expansion is taken into account. Higher values will make the cloud expand and get closer to the price faster.
When the cloud moves opposite to the direction of the indicated trend (e.g: the cloud decreases while being below the price), it is often indicative of the end of a retracement, and we can expect the price to move with the indicated trend.
The chart above shows the effect of different Expansion % values.
🔹 Dashboard
The trading statistics dashboard informs traders of key metrics derived from the tool. The following are notable:
PNL: Theoretical profit or loss from all trends identified by the tool in the right scale units.
EXPECT.: Expected value of each trade. It is derived from win rate and risk-to-reward metrics.
AVG: 1st TOUCH: The average number of bars from the beginning of a new trend until the price touches the cloud for the first time.
🔶 SETTINGS
Length: Length for trend detection
Expansion %: Percentage of price expansion for cloud formation
Source: Source of the data
🔹 Dashboard
Show Dashboard: Enable/disable the statistics dashboard
Location: Dashboard location
Size: Dashboard size
CM Volume Projection Indicator with ATRCM Volume Projection Indicator
Description:
Elevate your trading analysis with the CM Volume Projection Indicator, a pioneering tool crafted for Trading View charts. This closed-source indicator redefines volume analysis by delivering dynamic, real-time volume forecasts, offering traders a nuanced understanding of market momentum across diverse timeframes and assets.
Key Features:
Dynamic Volume Projection: Utilizes a proprietary algorithm to generate both original and adjusted volume projections, blending current bar elapsed time with historical averages. This creates a tailored forecast that adapts to market conditions, surpassing the limitations of static volume bars.
Percentage-Based Time Adjustment: Incorporates a customizable time factor based on the percentage of remaining candle duration (default 16.67%), enabling precise scaling across timeframes. This innovative approach minimizes overestimation by adjusting projections dynamically as the candle nears completion.
Volume Change Percentage: Introduces a unique metric by comparing current volume to the proportional volume at the same elapsed time in the previous candle, capturing intrabar momentum shifts that traditional indicators, reliant on full candle data, overlook.
Adaptive Spike Factor: Enhances responsiveness by adjusting projections based on volume spikes relative to a moving average, while stabilizing low-volume periods, ensuring reliability in volatile markets.
Fully Customizable Settings: Offers user-controlled adjustments via the strategy bar—including historical averaging period, minimum adjustment factor, spike threshold, moving average type (SMA or EMA), cap threshold percentage, and scaling factor—allowing tailored application without script access.
Visual Customization: Provides color-coded bars and labels for clear interpretation, with optional debug and elapsed time displays for advanced analysis.
How It Works and Adds Value:
The CM Volume Projection Indicator combines a linear scaling of previous candle volume (proportional to elapsed time) with a dynamic cap based on the remaining time percentage, refined by a squared time factor and volatility adjustments. This synergy creates an original intrabar forecasting model that:
Forecasts in Real-Time: Provides forward-looking projections, aiding anticipation of volume trends within the current candle, adaptable to any timeframe.
Delivers Intrabar Precision: Tracks momentum shifts by comparing elapsed-time volumes, offering a granularity static indicators like OBV or volume bars cannot match.
Adapts Across Timeframes: Uses percentage-based caps to ensure consistency, reducing misleading spikes during volatile periods, a step beyond traditional moving average-based tools.
Empowers Strategy: Integrates current volume, moving averages, and adaptive adjustments into a versatile metric, giving traders a strategic edge in diverse market conditions.
Ideal For:
Day traders and scalpers seeking real-time volume insights across short timeframes.
Swing traders analyzing momentum shifts within candles on various durations.
Technical analysts customizing indicators for diverse assets and market environments.
This indicator enhances market analysis as a valuable additional tool, success depends on your strategy and risk management. Explore its potential by adjusting settings via the strategy bar to suit your trading style and leverage its innovative projections in today’s dynamic markets.
Hodie Smart Inside BarThe Hodie Smart Inside Bar indicator automatically detects and visually highlights inside bars — candles fully contained within the range of the previous (parent) candle.
How the indicator works:
Inside Bar Identification:
The indicator analyzes each candle and checks if its high is lower than the previous candle’s high, and its low is higher than the previous candle’s low. If this condition is met, the candle is considered an inside bar.
Size Filtering:
To filter out small and insignificant consolidations, the indicator compares the size of the parent candle’s range to the inside bar’s range. Only if the parent candle is significantly larger (2 times or more — adjustable parameter), the inside bar is considered significant.
Zone Drawing:
For each detected inside bar, the indicator draws a rectangular zone bounded by the parent candle’s high and low. This zone automatically extends to the right as new bars appear until the price moves outside the parent candle’s range.
Zone Completion:
Once the price closes above the parent candle’s high or below its low, the zone is considered complete and stops extending.
Visual Aids:
If enabled, the indicator can shade the background of the current inside bar for additional visual emphasis.
A label with the text "IB" appears above the inside bar candle on the chart for easier identification.
Alerts:
Supports alerts when a new inside bar forms.
Alerts help traders notice important signals promptly.
To activate, create an alert on the indicator with the condition “New Inside Bar”.
Benefits of the Indicator:
Inside bars often signal consolidation and potential liquidity accumulation, which may be followed by a strong impulsive breakout. This indicator helps traders quickly identify consolidation zones and prepare for possible price moves.
Hodie Smart Inside BarThe Hodie Smart Inside Bar indicator automatically detects and visually highlights inside bars — candles fully contained within the range of the previous (parent) candle.
How the indicator works:
Inside Bar Identification:
The indicator analyzes each candle and checks if its high is lower than the previous candle’s high, and its low is higher than the previous candle’s low. If this condition is met, the candle is considered an inside bar.
Size Filtering:
To filter out small and insignificant consolidations, the indicator compares the size of the parent candle’s range to the inside bar’s range. Only if the parent candle is significantly larger (2 times or more — adjustable parameter), the inside bar is considered significant.
Zone Drawing:
For each detected inside bar, the indicator draws a rectangular zone bounded by the parent candle’s high and low. This zone automatically extends to the right as new bars appear until the price moves outside the parent candle’s range.
Zone Completion:
Once the price closes above the parent candle’s high or below its low, the zone is considered complete and stops extending.
Visual Aids:
If enabled, the indicator can shade the background of the current inside bar for additional visual emphasis.
A label with the text "IB" appears above the inside bar candle on the chart for easier identification.
Alerts:
Supports alerts when a new inside bar forms.
Alerts help traders notice important signals promptly.
To activate, create an alert on the indicator with the condition “New Inside Bar”.
Benefits of the Indicator:
Inside bars often signal consolidation and potential liquidity accumulation, which may be followed by a strong impulsive breakout. This indicator helps traders quickly identify consolidation zones and prepare for possible price moves.
Fast_VwapThis is a Pine Script indicator that calculates and displays Volume Weighted Average Price (VWAP) with several advanced features, including multiple anchoring methods, deviation bands, and optional machine learning enhancements.
Core Components
1. VWAP Calculation
The indicator calculates VWAP using the standard formula:
text
VWAP = Σ(Price × Volume) / Σ(Volume)
Where price can be customized (default is HLC3 - the average of high, low, and close).
2. Anchoring Methods
The indicator offers four ways to reset/start the VWAP calculation:
Session: Resets at the start of each new trading day (most common)
Lowest Low: Resets when a new 10-bar low occurs
Highest High: Resets when a new 10-bar high occurs
Fixed Length: Resets after a specified number of bars (default 20)
3. Deviation Bands
The indicator can show standard deviation bands around the VWAP:
Upper band = VWAP + (Standard Deviation × Multiplier)
Lower band = VWAP - (Standard Deviation × Multiplier)
4. Machine Learning Enhancements
Two optional ML methods can be applied to smooth the VWAP:
Simple Average: Uses an EMA (Exponential Moving Average) of the VWAP
KNN (K-Nearest Neighbors): A simplified implementation that looks at recent values to adjust the current VWAP
How It Works
Inputs: The user can configure all parameters including price source, anchoring method, band settings, and ML options.
Anchoring: The script first determines when to reset the VWAP calculation based on the selected anchoring method.
VWAP Calculation: Using the anchoring points, it calculates the cumulative price×volume and total volume to compute the VWAP and standard deviation bands.
ML Processing: If enabled, the raw VWAP value is smoothed using either a simple EMA or a KNN algorithm that looks at the most similar recent values.
Visualization: The final VWAP line is plotted along with optional deviation bands and colored fills between the bands and VWAP line.
Use Cases
Intraday Trading: When anchored to session, helps identify fair value during the trading day
Swing Trading: When using fixed length or high/low anchoring, can identify support/resistance
Trend Confirmation: Deviation bands help identify overbought/oversold conditions relative to volume-weighted price
The combination of traditional VWAP with machine learning smoothing makes this a unique tool that can potentially reduce noise while maintaining the volume-weighted price information that makes VWAP valuable.
A deviation band is a statistical tool that creates upper and lower boundaries around a central line (in this case, the VWAP) based on how much prices typically vary from that average.
How It Works
Standard Deviation Calculation
The indicator calculates how much prices deviate from the VWAP:
Measures the "spread" or volatility of prices around the VWAP
Uses the mathematical formula for standard deviation
Creates bands at a specific distance from the VWAP line
What Deviation Bands Tell You
Statistical Significance
~68% of price action typically stays within 1 standard deviation
~95% stays within 2 standard deviations
When price touches the bands, it's statistically "unusual"
Trading Signals
Price hits upper band: Potentially overbought, consider selling
Price hits lower band: Potentially oversold, consider buying
Price stays within bands: Normal price action
Price breaks outside bands: Strong momentum move
Dynamic Adjustment
High volatility periods: Bands automatically widen
Low volatility periods: Bands automatically narrow
Volume changes: Affects both VWAP and band calculations
Orange Line (Default)
What it is: The main VWAP line with machine learning enhancement
Purpose: This is the core signal line - the Volume Weighted Average Price that's been processed through your selected ML method (Simple Average, KNN, or None)
Blue Line (Default)
What it is: Upper deviation band
Purpose: Shows potential resistance level - when price reaches this band, it may indicate overbought conditions
Red Line (Default)
What it is: Lower deviation band
Purpose: Shows potential support level - when price reaches this band, it may indicate oversold conditions
ATR Buy, Target, Stop + OverlayATR Buy, Target, Stop + Overlay
This tool is to assist traders with precise trade planning using the Average True Range (ATR) as a volatility-based reference.
This script plots buy, target, and stop-loss levels on the chart based on a user-defined buy price and ATR-based multipliers, allowing for objective and adaptive trade management.
*NOTE* In order for the indicator to initiate plotted lines and table values a non-zero number must be entered into the settings.
What It Does:
Buy Price Input: Users enter a manual buy price (e.g., an executed or planned trade entry).
ATR-Based Target and Stop: The script calculates:
Target Price = Buy + (ATR × Target Multiplier)
Stop Price = Buy − (ATR × Stop Multiplier)
Customizable Timeframe: Optionally override the ATR timeframe (e.g., use daily ATR on a 1-hour chart).
Visual Overlay: Lines are drawn directly on the price chart for the Buy, Target, and Stop levels.
Interactive Table: A table is displayed with relevant levels and ATR info.
Customization Options:
Line Settings:
Adjust color, style (solid/dashed/dotted), and width for Buy, Target, and Stop lines.
Choose whether to extend lines rightward only or in both directions.
Table Settings:
Choose position (top/bottom, left/right).
Toggle individual rows for Buy, Target, Stop, ATR Timeframe, and ATR Value.
Customize text color and background transparency.
How to Use It for Trading:
Plan Your Trade: Enter your intended buy price when planning a trade.
Assess Risk/Reward: The script immediately visualizes the potential stop-loss and target level, helping assess R:R ratios.
Adapt to Volatility: Use ATR-based levels to scale stop and target dynamically depending on current market volatility.
Higher Timeframe ATR: Select a different timeframe for the ATR calculation to smooth noise on lower timeframe charts.
On-the-Chart Reference: Visually track trade zones directly on the price chart—ideal for live trading or strategy backtesting.
Ideal For:
Swing traders and intraday traders
Risk management and trade planning
Traders using ATR-based exits or scaling
Visualizing asymmetric risk/reward setups
How I Use This:
After entering a trade, adding an entry price will plot desired ATR target and stop level for visualization.
Adjusting ATR multiplier values assists in evaluating and planning trades.
Visualization assists in comparing ATR multiples to recent support and resistance levels.