VWAP Price ChannelVWAP Price Channel cuts the crust off of a traditional price channel (Donchian Channel) by anchoring VWAPs at the highs and lows. By doing this, the flat levels, characteristic of traditional Donchian Channels, are no more!
Author's Note: This indicator is formed with no inherent use, and serves solely as a thought experiment.
> Concept
I would be hesitant to call this a "predictive" indicator, however the behavior of it would suggest it could be considered at least partially predictive
Essentially, the Anchored VWAPs creates something from otherwise nothing.
While the DC upper or lower values are staying flat, the VWAPs improvise based on price and volume to project a level that may be a better representation of where future highs or lows may settle.
Visually, this looks like we have cut off the corners of the Donchian Channel.
Note: Notice how we are calculating values before the corners are realized.
> Implementation
While this is only a concept indicator, The specific application I've gone with for this, is a sort of supertrend-ish display (A Trend Flipping Trailing Stop Loss).
The script uses basic logic to create a trend direction, and then displays the Anchored VWAPs as a form of trailing stop loss.
While "In Trend", the script fills in the area between the VWAP and Price in the direction of trend.
When new highs or lows are made while in trend, the opposite VWAP will start to generate at the new highs or lows. These happen on every new high or low, so they are not indicating the trend shift, but could be interpreted as breakout levels for the current trend direction in order for continuation.
Note: All values are drawn live, but when using higher timeframes, there is a natural calculation discrepancy when using live data vs. historical.
> Technicals
In this script, I'm simply detecting new highs or lows from the DC and using those as the anchor frequency on the built-in VWAP function.
So each time a new high or low is made based on DC, the VWAP function re-anchors to the high or low of the candle.
Past that, I have implemented some logic in order to account for a common occurrence I faced during development.
Frequently, the price would outpace the anchored VWAP, so we would end up with the VWAP being further from price than the actual DC upper or lower.
Due to this, what I have ended up with was a third value which, rather than switching between raw VWAP values and DC values, it adjusts the value based on the change in the VWAP value.
This can be simply thought of as a "Start + Change" type of setup.
By doing this, I can use the change values from the actual anchored VWAP, and under normal conditions, this will also be the true VWAP value.
However, situationally, I am able to update the start value which we're applying the VWAP change to.
In other words, when these situations happen, the VWAP change is added to the new (closer to price) DC value.
The specific trend logic being used is nothing fancy at all, we are simply checking if a new high or low is created and setting the trend in that direction.
This is in line with some traditional DC Strategies.
To those who made it here,
Just remember:
The chart may be ugly, but it's the fastest analysis of the data you can get.
Nicer displays often come at the hidden cost of latency.
You have to shoot your shot to make it.
Choose 2: Fast, Clean, Useful
Enjoy!
Volatilità
Adaptive Valuation [BackQuant]Adaptive Valuation
What this is
A composite, zero-centered oscillator that standardizes several classic indicators and blends them into one “valuation” line. It computes RSI, CCI, Demarker, and the Price Zone Oscillator, converts each to a rolling z-score, then forms a weighted average. Optional smoothing, dynamic overbought and oversold bands, and an on-chart table make the inputs and the final score easy to inspect.
How it works
Components
• RSI with its own lookback.
• CCI with its own lookback.
• DM (Demarker) with its own lookback.
• PZO (Price Zone Oscillator) with its own lookback.
Standardization via z-score
Each component is transformed using a rolling z-score over lookback bars:
z = (value − mean) ÷ stdev , where the mean is an EMA and the stdev is rolling.
This puts all inputs on a comparable scale measured in standard deviations.
Weighted blend
The z-scores are combined with user weights w_rsi, w_cci, w_dm, w_pzo to produce a single valuation series. If desired, it is then smoothed with a selected moving average (SMA, EMA, WMA, HMA, RMA, DEMA, TEMA, LINREG, ALMA, T3). ALMA’s sigma input shapes its curve.
Dynamic thresholds (optional)
Two ways to set overbought and oversold:
• Static : fixed levels at ob_thres and os_thres .
• Dynamic : ±k·σ bands, where σ is the rolling standard deviation of the valuation over dynLen .
Bands can be centered at zero or around the valuation’s rolling mean ( centerZero ).
Visualization and UI
• Zero line at 0 with gradient fill that darkens as the valuation moves away from 0.
• Optional plotting of band lines and background highlights when OB or OS is active.
• Optional candle and background coloring driven by the valuation.
• Summary table showing each component’s current z-score, the final score, and a compact status.
How it can be used
• Bias filter : treat crosses above 0 as bullish bias and below 0 as bearish bias.
• Mean-reversion context : look for exhaustion when the valuation enters the OB or OS region, then watch for exits from those regions or a return toward 0.
• Signal confirmation : use the final score to confirm setups from structure or price action.
• Adaptive banding : with dynamic thresholds, OB and OS adjust to prevailing variability rather than relying on fixed lines.
• Component tuning : change weights to emphasize trend (raise DM, reduce RSI/CCI) or range behavior (raise RSI/CCI, reduce DM). PZO can help in swing environments.
Why z-score blending helps
Indicators often live on different scales. Z-scoring places them on a common, unitless axis, so a one-sigma move in RSI has comparable influence to a one-sigma move in CCI. This reduces scale bias and allows transparent weighting. It also facilitates regime-aware thresholds because the dynamic bands scale with recent dispersion.
Inputs to know
• Component lookbacks : rsilb, ccilb, dmlb, pzolb control each raw signal.
• Standardization window : lookback sets the z-score memory. Longer smooths, shorter reacts.
• Weights : w_rsi, w_cci, w_dm, w_pzo determine each component’s influence.
• Smoothing : maType, smoothP, sig govern optional post-blend smoothing.
• Dynamic bands : dyn_thres, dynLen, thres_k, centerZero configure the adaptive OB/OS logic.
• UI : toggle the plot, table, candle coloring, and threshold lines.
Reading the plot
• Above 0 : composite pressure is positive.
• Below 0 : composite pressure is negative.
• OB region : valuation above the chosen OB line. Risk of mean reversion rises and momentum continuation needs evidence.
• OS region : mirror logic on the downside.
• Band exits : leaving OB or OS can serve as a normalization cue.
Strengths
• Normalizes heterogeneous signals into one interpretable series.
• Adjustable component weights to match instrument behavior.
• Dynamic thresholds adapt to changing volatility and drift.
• Transparent diagnostics from the on-chart table.
• Flexible smoothing choices, including ALMA and T3.
Limitations and cautions
• Z-scores assume a reasonably stationary window. Sharp regime shifts can make recent bands unrepresentative.
• Highly correlated components can overweight the same effect. Consider adjusting weights to avoid double counting.
• More smoothing adds lag. Less smoothing adds noise.
• Dynamic bands recalibrate with dynLen ; if set too short, bands may swing excessively. If too long, bands can be slow to adapt.
Practical tuning tips
• Trending symbols: increase w_dm , use a modest smoother like EMA or T3, and use centerZero dynamic bands.
• Choppy symbols: increase w_rsi and w_cci , consider ALMA with a higher sigma , and widen bands with a larger thres_k .
• Multiday swing charts: lengthen lookback and dynLen to stabilize the scale.
• Lower timeframes: shorten component lookbacks slightly and reduce smoothing to keep signals timely.
Alerts
• Enter and exit of Overbought and Oversold, based on the active band choice.
• Bullish and bearish zero crosses.
Use alerts as prompts to review context rather than as stand-alone trade commands.
Final Remarks
We created this to show people a different way of making indicators & trading.
You can process normal indicators in multiple ways to enhance or change the signal, especially with this you can utilise machine learning to optimise the weights, then trade accordingly.
All of the different components were selected to give some sort of signal, its made out of simple components yet is effective. As long as the user calibrates it to their Trading/ investing style you can find good results. Do not use anything standalone, ensure you are backtesting and creating a proper system.
Sunmool's Next Day Model FVG AlertNY Killzone FVG Alert - ICT Fair Value Gap Detection Indicator
This comprehensive Pine Script indicator is specifically designed for traders following ICT (Inner Circle Trader) methodology and Smart Money Concepts. The indicator automatically detects Fair Value Gaps (FVG) that occur during the New York Killzone session, providing real-time alerts when these critical market imbalances are identified.
Key Features:
🎯 Fair Value Gap Detection
Automatically identifies bullish and bearish Fair Value Gaps using the classic 3-candle pattern
Filters gaps based on customizable minimum size thresholds to avoid insignificant imbalances
Provides visual representation through colored boxes and labels for easy identification
⏰ New York Killzone Focus
Specifically monitors the NY Killzone session (default: 7:00 AM - 10:00 AM EST)
Fully customizable session times to accommodate different trading preferences
Only detects FVGs when all three candles forming the gap occur within the killzone timeframe
📅 ICT Next Day Model Compliance
Automatically excludes Mondays from FVG detection as per ICT Next Day Model principles
Optional Monday exclusion can be toggled on/off based on trading strategy
Ensures alignment with professional ICT trading methodologies
🔔 Advanced Alert System
Three distinct alert conditions: Bullish FVG, Bearish FVG, and Combined alerts
Customizable alert messages for different notification preferences
Compatible with TradingView's full alert system including email, SMS, and webhook notifications
🎨 Visual Customization
Adjustable colors for bullish and bearish FVG boxes
Configurable box extension length for better visualization
Optional background highlighting during killzone sessions
Clean, professional chart presentation that doesn't clutter your analysis
📊 Technical Specifications
Works on all timeframes, though most effective on intraday charts (1m, 5m, 15m)
Timezone-aware calculations ensure accurate session detection globally
Efficient code structure minimizes processing load and chart lag
Compatible with other indicators and doesn't interfere with existing chart setups
🎯 Ideal For:
ICT methodology traders seeking automated FVG detection
Smart Money Concepts practitioners
Scalpers and day traders focusing on NY session
Traders looking to identify high-probability entry zones
Anyone interested in market structure and liquidity concepts
📈 Trading Applications:
Fair Value Gaps often serve as areas where price may return to "fill" the imbalance, making them excellent zones for:
Potential reversal areas
Take profit targets
Stop loss placement reference points
Market structure analysis
Confluence with other ICT concepts
⚙️ Customizable Parameters:
FVG minimum size filter
Killzone session start/end times
Visual display options
Alert preferences
Color schemes and styling options
This indicator brings institutional trading concepts to retail traders, helping identify the same market inefficiencies that smart money targets. By focusing specifically on the New York Killzone - one of the most liquid and volatile trading sessions - it provides high-quality signals during optimal market conditions.
Whether you're new to ICT concepts or an experienced trader looking to automate your FVG detection, this indicator provides the precision and reliability needed for professional trading analysis.
VVIX/VIX Ratio with Interpretation LevelsVVIX/VIX Ratio with Interpretation Levels
This indicator plots the ratio of VVIX (Volatility of Volatility Index) to VIX (CBOE Volatility Index) in a separate panel.
The ratio highlights when the options market is pricing unusually high volatility in volatility (VVIX) relative to the base volatility index (VIX).
Ratio < 5 → Complacency: Markets expect stability; often a pre-shock zone.
5–6 → Tension Building: Traders begin hedging volatility risk while VIX remains low.
6–7 → Elevated Risk: Divergence warns of potential regime change in volatility.
> 7 → High-Risk Zone: Options market pricing aggressive swings; can precede volatility spikes in equities.
The script also includes dashed interpretation lines (5, 6, 7) and automatic labels when key thresholds are crossed.
Background shading helps visualize current regime.
Use cases:
Detect hidden stress when VIX remains calm but VVIX rises.
Anticipate potential volatility regime shifts.
Support risk management and timing of long/short volatility strategies.
trending -Separate Pane Color BandThe "Donchian trendi multi time frame Color Band" is designed to identify trend directions based on swing highs and lows (similar to Donchian channel concepts, where trends are determined by breakouts from recent highs/lows). The indicator operates in a separate pane (overlay = false) and primarily visualizes:
Trend Direction: Determined by the relative positions of the most recent swing high and swing low. If the last swing high occurred after the last swing low, it's considered an uptrend (bullish); otherwise, a downtrend (bearish).
Adaptive Trend Band: A colored area plot in the indicator pane that represents an adaptive tracking period (influenced by volatility if enabled), filled with a color indicating the current trend (green for up, red for down).
Multi-Timeframe (MTF) Table: An optional table displayed in the top-right corner, showing the trend signal (Bullish or Bearish) for up to 6 user-defined higher timeframes. Each cell is colored based on the trend.
The indicator uses swing detection to gauge trend, incorporates optional volatility-based adaptation for responsiveness, and focuses on multi-timeframe analysis for broader market context. It's not a direct Donchian channel (which typically plots upper/lower bands), but borrows the idea of using highest/lowest prices over a period to detect pivots. It doesn't generate buy/sell signals explicitly but can be used for trend confirmation across timeframes.
Key features include tooltips for inputs, making it user-friendly, and limits on bars/labels for performance.
Key Inputs and Their Roles
The indicator provides customizable inputs grouped into "Swing Points", "Style", and "Multi Timeframe". Here's a breakdown:
Swing Period (prd): Default 50, minimum 2. This sets the lookback period (in bars) for identifying swing highs and lows. Higher values capture major swings (less noise, more lag); lower values detect minor swings (more responsive, but noisier).
Adaptive Price Tracking (baseAPT): Default 20, minimum 1. This base value controls the responsiveness of an adaptive tracking mechanism (similar to a VWAP or moving average length). Lower values make it tighter to price action; higher values smooth it out.
Adapt APT by ATR ratio (useAdapt): Default false. If enabled, the tracking period dynamically adjusts based on market volatility (measured via ATR - Average True Range). High volatility shortens the period for faster reaction; low volatility lengthens it for smoothness.
Volatility Bias (volBias): Default 10.0, minimum 0.1. This amplifies or dampens how much volatility affects the adaptive tracking. Values >1 make it more sensitive to volatility changes; <1 make it less reactive.
Up Color (S): Default lime (green). Color for bullish trends in the band and table.
Down Color (R): Default red. Color for bearish trends in the band and table.
Show MTF Table (show_table): Default true. Toggles the display of the multi-timeframe trend table.
Time frames (tf1 to tf6): Defaults: '1' (1-minute), '3' (3-minute), '15' (15-minute), '60' (1-hour), '240' (4-hour), 'D' (daily). These are the higher timeframes for which trend directions are calculated and shown in the table.
Usage and Interpretation
On the Chart: Add this to a TradingView chart (e.g., for stocks, crypto, forex). The colored area in the indicator pane shows the current timeframe's trend: green band = bullish, red = bearish. The band's height reflects the adaptive period (wider in low volatility if adaptation is on).
MTF Table: Use this for alignment across timeframes. If most/higher timeframes are bullish, it might confirm an uptrend on the current chart. Ideal for trend-following strategies (e.g., trade in the direction of higher TFs).
Customization Tips:
Increase prd for longer-term trends.
Enable useAdapt in choppy markets for better responsiveness.
Adjust timeframes to match your trading style (e.g., scalping: lower TFs; swing: higher).
Limitations:
Relies on historical bars (max_bars_back=5000), so it may not load on very long charts.
No alerts or signals built-in; it's visual-only.
The "Donchian" in the name is loose—it's more pivot-based than full channels.
Adaptation uses ATR, which assumes volatility drives trend responsiveness, but may lag in ranging markets.
[Top] Simple ATR TP/SLSimple TP/SL from ATR (Locked per Bar) - Advanced Position Management Tool
What This Indicator Does:
Automatically calculates and displays Take Profit (TP) and Stop Loss (SL) levels based on Average True Range (ATR)
Locks ATR values and direction signals at the start of each bar to prevent repainting and provide consistent levels
Offers multiple direction detection modes including real-time candle-based positioning for dynamic trading approaches
Displays entry, TP, and SL levels as clean horizontal lines that extend from the current bar
Original Features That Make This Script Unique:
Bar-Locked ATR System: ATR values are captured and frozen at bar open, ensuring levels remain stable throughout the bar's progression
Multi-Modal Direction Detection: Four distinct modes for determining TP/SL positioning - Trend Following (EMA-based), Bullish Only, Bearish Only, and real-time Candle Based
Real-Time Candle Flipping: In Candle Based mode, TP/SL levels flip immediately when the current candle changes from bullish to bearish or vice versa
Persistent Line Management: Uses efficient line object management to prevent ghost lines and maintain clean visual presentation
Flexible Base Price Selection: Choose between Open (static), Close (dynamic), or midpoint (H+L)/2 for entry level calculation
How The Algorithm Works:
ATR Calculation: Captures ATR value at each bar open using specified length parameter, maintaining consistency throughout the bar
Direction Determination: Uses different methods based on selected mode - EMA crossover for trend following, or real-time candle color for dynamic positioning
Level Calculation: TP level = Base Price + (Direction × TP Multiplier × ATR), SL level = Base Price - (Direction × SL Multiplier × ATR)
Visual Management: Creates persistent line objects once, then updates their positions every bar for optimal performance
Direction Modes Explained:
Trend Following: Uses 5-period and 12-period EMA relationship to determine trend direction (locked at bar open)
Bullish Only: Always places TP above and SL below entry (traditional long setup)
Bearish Only: Always places TP below and SL above entry (traditional short setup)
Candle Based: Dynamically adjusts based on current candle direction - flips in real-time as candle develops
Key Input Parameters:
ATR Length: Period for ATR calculation (default 14) - longer periods provide smoother volatility measurement
TP Multiplier: Take profit distance as multiple of ATR (default 1.0) - higher values target larger profits
SL Multiplier: Stop loss distance as multiple of ATR (default 1.0) - higher values allow more room for price movement
Base Price: Reference point for level calculations - Open for static entry, Close for dynamic tracking
Direction Mode: Method for determining whether TP goes above or below entry level
How To Use This Indicator:
For Position Sizing: Use the displayed SL distance to calculate appropriate position size based on your risk tolerance
For Entry Timing: Wait for price to approach the entry level before taking positions
For Risk Management: Set your actual stop loss orders at or near the displayed SL level
For Profit Taking: Use the TP level as initial profit target, consider scaling out at this level
Mode Selection: Choose Candle Based for scalping and quick reversals, Trend Following for swing trading
Visual Style Customization:
Line Colors: Customize TP line color (default teal) and SL line color (default orange) for easy identification
Line Widths: Adjust TP/SL line thickness (1-5) and entry line thickness (1-3) for visibility preferences
Clean Display: Lines extend 3 bars forward from current bar and update position dynamically
Best Practices:
Use on clean charts without multiple overlapping indicators for clearest visual interpretation
Combine with volume analysis and key support/resistance levels for enhanced decision making
Adjust ATR length based on your trading timeframe - shorter for scalping, longer for position trading
Test different TP/SL multipliers based on the volatility characteristics of your chosen instruments
Consider using Trend Following mode during strong trending periods and Candle Based during ranging markets
Low Volatility Breakout in Trend
█ OVERVIEW
"Low Volatility Breakout in Trend" is a technical analysis tool that identifies periods of low-volatility consolidation within an ongoing trend and signals potential breakouts aligned with the trend's direction. The indicator detects trends using a simple moving average (SMA) of price, identifies consolidation zones based on the size of candle bodies, and displays the percentage change in volume (volume delta) at the breakout moment.
█ CONCEPTS
The core idea of the indicator is to pinpoint moments where traders can join an ongoing trend by capitalizing on breakouts from consolidation zones, supported by additional information such as volume delta. It provides clear visualizations of trends, consolidation zones, and breakout signals to facilitate trading decisions.
Why Use It?
* Breakout Identification: The indicator locates low-volatility consolidation zones (measured by the size of individual candle bodies, not the price range of the consolidation) and signals breakouts, enabling traders to join the trend at key moments.
* Volume Analysis: Displays the percentage change in volume (delta) relative to its simple moving average, providing insight into market activity rather than acting as a signal filter.
* Visual Clarity: Colored trend lines, consolidation boxes (drawn only after the breakout candle closes, not on subsequent candles), and volume delta labels enable quick chart analysis.
* Flexibility: Adjustable parameters, such as the volatility window length or SMA period, allow customization for various trading strategies and markets.
How It Works
* Trend Detection: The indicator calculates a simple moving average (SMA) of price (default: based on the midpoint of high/low) and creates dynamic trend bands, offset by a percentage of the average candle height (band scaling). A price above the upper band signals an uptrend, while a price below the lower band indicates a downtrend. Trend changes occur not when the price crosses the SMA but when it crosses above the upper band or below the lower band (offset by the average candle height multiplied by the scaling factor).
* Consolidation Identification: Identifies low-volatility zones when the candle body size is smaller than the average body size over a specified period (default: 20 candles) multiplied by a volatility threshold — the maximum allowable body size as a percentage of the average body (e.g., 2 means the candle body must be less than twice the average body to be considered low-volatility).
* Breakout Signals: A breakout occurs when the candle body exceeds the volatility threshold, is larger than the maximum body in the consolidation, and aligns with the trend direction (bullish in an uptrend, bearish in a downtrend).
* Visualization: Draws a trend line with a gradient, consolidation boxes (appearing only after the breakout candle closes, marking the consolidation zone), and volume delta labels. Optionally displays breakout signal arrows.
* Signals and Alerts: The indicator generates signals for bullish and bearish breakouts, including the volume delta percentage. Alerts are an additional feature that can be enabled for notifications.
Settings and Customization
* Volatility Window: Length of the period for calculating the average candle body size (default: 20).
* Volatility Threshold: Maximum candle body size as a percentage of the average body (default: 2).
* Minimum Consolidation Bars: Number of candles required for a consolidation (default: 10).
* SMA Length for Trend: Period of the SMA for trend detection (default: 100).
* Band Scaling: Offset of trend bands as a percentage of the average candle height (default: 250%), determining the distance from the SMA.
* Visualization Options: Enable/disable consolidation boxes (Show Consolidation Boxes, drawn after the breakout candle closes), volume delta labels (Show Volume Delta Labels), and breakout signals (Show Breakout Signals, e.g., triangles).
* Colors: Customize colors for the trend line, consolidation boxes, and volume delta labels.
█ OTHER SECTIONS
Usage Examples
* Joining an Uptrend: When the price breaks out of a consolidation in an uptrend with a volume delta of +50%, open a long position; the signal is stronger if the breakout candle surpasses a local high.
* Avoiding False Breakouts: Ignore breakout signals with low volume delta (e.g., below 0%) and combine the indicator with other tools (e.g., support/resistance levels or oscillators) to confirm moves in low-activity zones.
Notes for Users
* On markets that do not provide volume data, the indicator will not display volume delta — disable volume labels and enable breakout signals (e.g., triangles) instead.
* Adjust parameters to suit the market's characteristics to minimize noise.
* Combine with other tools, such as Fibonacci levels or oscillators, for greater precision.
BTC CME Gap – detector & single signals# BTC CME Gap — Detector & Single Signals (Pine v5)
**What it does**
This indicator finds the **weekend gap** on **CME Bitcoin futures** and turns it into a clean, tradable object:
* Draws a **gap zone** (Friday close ↔ Monday open) as a right-extending box.
* Fires **one-time signals** per gap:
* **ENTER** – first touch of the gap zone by price.
* **FILL** – gap is considered filled when price tags **Friday’s close**.
It works on any BTC chart (spot or futures). The gap itself is calculated from **CME\:BTC1!** daily data.
---
## How it works
1. Pulls **daily** `open`/`close` from `CME:BTC1!` (`request.security`, no lookahead).
2. On **Monday**, compares Monday **open** with previous **Friday close**:
* If different → a **gap** exists.
3. Defines the zone:
* `gapTop = max(MonOpen, FriClose)`
* `gapBot = min(MonOpen, FriClose)`
4. Renders a box + boundary lines, **extending right** until price action resolves it.
5. Signals:
* **ENTER**: the first bar that **enters** the gap zone.
* **FILL**: first bar that **touches Friday close** (gap completion).
6. Each new Monday gap **replaces** the previous box and signals.
---
## Inputs
* **CME symbol** (default `CME:BTC1!`)
* **Gap timeframe** (default `D`)
* **Colors** for the box and edges
---
## Plot & Signals
* **Box** = visual gap zone (transparent fill, outlined).
* **ENTER** = triangle up below bar.
* **FILL** = triangle down above bar.
* Optional label prints **Top / Bottom / Fill** levels.
---
## Notes on behavior
* Uses `barmerge.lookahead_off` and daily aggregation, so the gap definition **does not repaint** once Monday’s daily bar is confirmed.
* Signals are **single-shot** per gap (no clutter).
* Works on any chart timeframe; the gap logic always references **CME daily**.
---
## Practical use
* Track obvious **“magnets”** for mean-reversion, stop-runs, or liquidity grabs.
* Combine with your higher-timeframe bias (e.g., **1D trend filter**) and execution on **4H/1H**.
* Typical outcomes: quick Monday fill, staged fill after partial rejection, or delayed fill during later consolidation.
---
## Customization ideas
* Add `alertcondition(enterSignal, …)` / `alertcondition(fillSignal, …)` for automation.
* Gate trades with trend filters (EMA/SMA, Kernel regression, ADX) or session tools (VWAP/POC).
* Persist multiple historical gap boxes if you want to track **unfilled** gaps.
---
**Credits**: Built for BTC CME weekend gaps; minimal, publication-ready visualization with single-event signals to keep charts clean.
CPR • VWAP • Keltner • Supertrend • Chandelier • LRC - KidevFeatures included
CPR (Central Pivot Range)
VWAP (Volume Weighted Average Price)
Keltner Channel (KC)
Supertrend
Chandelier Exit (CE)
Linear Regression Channel (LRC)
Each tool has a toggle (on/off).
If off → plots are hidden (using display.none).
Fill shading (fill()) is controlled by conditional colors (na to hide).
Stop ATR Indicator [AlphaGroup.Live]Tralling Stop tool! Perferct for Prop Firm Traders
The Stop ATR is a volatility-based trailing stop that adapts dynamically to market conditions.
It uses the Average True Range (ATR) to plot a continuous “stair-step” line:
• In uptrend , the stop appears below price as a green line, rising with volatility.
• In downtrend , the stop appears above price as a red line, falling with volatility.
Unlike fixed stops, the Stop ATR never moves backward . It only trails in the direction of the trend, locking in profits while leaving room for price to move.
Key features:
• ATR-based trailing stop that adapts to volatility.
• Clean “one line only” design — no overlap of signals.
• Adjustable ATR period and multiplier for flexibility.
• Color-coded visualization for quick trend recognition.
How traders use it:
• Manage trades with volatility-adjusted stop placement.
• Identify trend reversals when price closes across the stop.
• Combine with other entry signals for a complete strategy.
About us:
AlphaGroup.Live develops battle-tested trading systems and tools for real traders — indicators, bots, dashboards, and strategy manuals.
Visit alphagroup.live to get our free eBook: The Ultimate 100 Trading Strategies .
HiLo Stop Indicator [AlphaGroup.Live]Don't give your money back!
The HiLo Stop is a classic trend-following tool designed to keep trading simple and disciplined.
It plots a single continuous “stair-step” line that switches sides when the trend changes:
• In uptrend , the line appears below price as a green stop.
• In downtrend , the line appears above price as a red stop.
This indicator is commonly used as:
• A trailing stop to protect open profits.
• A trend filter to confirm buy/sell direction.
• A visual guide to avoid trading against the trend.
Key features:
• Clean “one line only” design — never plots both sides at once.
• Adjustable HiLo period for sensitivity control.
• Color-coded trend visualization for quick decision making.
How traders apply it:
• Take trades in the direction of the HiLo line.
• Place stop-loss orders at or near the line.
• Close or reverse positions when price closes across the stop.
About us:
AlphaGroup.Live develops battle-tested trading systems and tools for real traders — indicators, bots, dashboards, and strategy manuals.
Visit alphagroup.live to get our free eBook: The Ultimate 100 Trading Strategies .
Prev Day Close Line + Label — White Text / Royal Blue (v6)Previous Day Close line with clear labeling.
- Gap up vs PDC
- Gap down vs PDC
Helps analyze what yesterday attempted to do helps to confirm whether the attempt was successful.
Kidev Pro -HLx4 Modes + Dual BB + WMA + HMA + Labels/Alerts [v6]This script is a multi-purpose technical toolkit designed for intraday and swing traders who rely on high/low reference levels, volatility bands, and moving averages for decision-making.
Features Included:
High/Low Levels (4 Lines, Multiple Modes):
Rolling Mode: Plots the Highest High & Lowest Low of two different lookback periods (fast/slow).
Prev Day / Week Mode: Automatically plots Previous Day’s High/Low (PDH/PDL) and Previous Week’s High/Low (PWH/PWL), with optional labels.
Session Mode (Custom): Marks the current session’s High/Low and the previous session’s High/Low (default 09:15–15:30 for NSE).
Fractal Mode: Plots last confirmed fractal Highs/Lows (fast & slow pivots).
Bollinger Bands (Dual):
Two independent Bollinger Bands, each with customizable MA length and standard deviation.
Optional shaded fills between bands for better volatility visualization.
Moving Averages:
A single Weighted Moving Average (WMA).
A single Hull Moving Average (HMA).
Both with custom lengths, colors, and visibility toggles.
Labels & Visuals:
Automatic labeling of PDH/PDL/PWH/PWL with customizable label colors.
Optional session shading to highlight market hours.
Alerts:
Trigger alerts when price crosses any of the four High/Low lines.
Useful for breakout/breakdown strategies.
Intended Use Cases:
Identify key support/resistance using High/Low lines from multiple perspectives (rolling, prior day/week, fractals, or sessions).
Track volatility compression/expansion with dual Bollinger Bands.
Overlay trend filters with WMA/HMA.
Combine levels + bands + averages for breakout or mean-reversion strategies.
Donchian Squeeze Oscillator# Donchian Squeeze Oscillator (DSO) - User Guide
## Overview
The Donchian Squeeze Oscillator is a technical indicator designed to identify periods of low volatility (squeeze) and high volatility (expansion) in financial markets by measuring the distance between Donchian Channel bands. The indicator normalizes this measurement to a 0-100 scale, making it easy to interpret across different timeframes and instruments.
## How It Works
The DSO calculates the width of Donchian Channels as a percentage of the middle line, smooths this data, and then normalizes it using historical highs and lows over a specified lookback period. The result is inverted so that:
- **High values (80+)** = Narrow channels = Low volatility = Squeeze
- **Low values (20-)** = Wide channels = High volatility = Expansion
## Key Parameters
### Core Settings
- **Donchian Channel Period (20)**: The number of bars used to calculate the highest high and lowest low for the Donchian Channels
- **Smoothing Period (5)**: Applies moving average smoothing to reduce noise in the oscillator
- **Normalization Lookback (200)**: Historical period used to normalize the oscillator between 0-100
### Threshold Levels
- **Over Squeeze (80)**: Values above this level indicate strong squeeze conditions
- **Over Expansion (20)**: Values below this level indicate strong expansion conditions
## Reading the Indicator
### Color Coding
- **Red Line**: Squeeze condition (above 80 threshold) - Markets are consolidating
- **Orange Line**: Neutral/trending condition with upward momentum
- **Green Line**: Expansion condition or downward momentum
### Visual Elements
- **Red Dashed Line (80)**: Squeeze threshold - potential breakout zone
- **Gray Dotted Line (50)**: Middle line - neutral zone
- **Green Dashed Line (20)**: Expansion threshold - high volatility zone
- **Red Background**: Highlights active squeeze periods
## Trading Applications
### 1. Breakout Trading
- **Setup**: Wait for DSO to reach 80+ (squeeze zone)
- **Entry**: Look for breakouts when DSO starts declining from squeeze levels
- **Logic**: Prolonged low volatility often precedes significant price movements
### 2. Volatility Cycle Trading
- **Squeeze Phase**: DSO > 80 - Prepare for potential breakout
- **Breakout Phase**: DSO declining from 80 - Trade the direction of breakout
- **Expansion Phase**: DSO < 20 - Expect trend continuation or reversal
### 3. Trend Confirmation
- **Orange Color**: Suggests bullish momentum during expansion
- **Green Color**: Suggests bearish momentum or consolidation
- Use in conjunction with price action for trend confirmation
## Best Practices
### Timeframe Selection
- **Higher Timeframes (Daily, 4H)**: More reliable signals, fewer false breakouts
- **Lower Timeframes (1H, 15M)**: More frequent signals but higher noise
- **Multi-timeframe Analysis**: Confirm squeeze on higher TF, enter on lower TF
### Parameter Optimization
- **Volatile Markets**: Increase Donchian period (25-30) and smoothing (7-10)
- **Range-bound Markets**: Decrease Donchian period (15-20) for more sensitivity
- **Trending Markets**: Use longer normalization lookback (300-400)
### Signal Confirmation
Always combine DSO signals with:
- **Price Action**: Support/resistance levels, chart patterns
- **Volume**: Confirm breakouts with increasing volume
- **Other Indicators**: RSI, MACD, or momentum oscillators
## Alert System
The indicator includes built-in alerts for:
- **Squeeze Started**: When DSO crosses above the squeeze threshold
- **Expansion Started**: When DSO crosses below the expansion threshold
## Common Pitfalls to Avoid
1. **False Breakouts**: Don't trade every squeeze - wait for confirmation
2. **Parameter Over-optimization**: Stick to default settings initially
3. **Ignoring Market Context**: Consider overall market conditions and news
4. **Single Indicator Reliance**: Always use additional confirmation tools
## Advanced Tips
- Monitor squeeze duration - longer squeezes often lead to bigger moves
- Look for squeeze patterns at key support/resistance levels
- Use DSO divergences with price for potential reversal signals
- Combine with Bollinger Band squeezes for enhanced accuracy
## Conclusion
The Donchian Squeeze Oscillator is a powerful tool for identifying volatility cycles and potential breakout opportunities. Like all technical indicators, it should be used as part of a comprehensive trading strategy rather than as a standalone signal generator. Practice with the indicator on historical data before implementing it in live trading to understand its behavior in different market conditions.
Realized Volatility (StdDev of Returns, %)Realized Volatility (StdDev of Returns, %)
This indicator measures realized (historical) volatility by calculating the standard deviation of log returns over a user-defined lookback period. It helps traders and analysts observe how much the price has varied in the past, expressed as a percentage.
How it works:
Computes close-to-close logarithmic returns.
Calculates the standard deviation of these returns over the selected lookback window.
Provides three volatility measures:
Daily Volatility (%): Standard deviation over the chosen period.
Annualized Volatility (%): Scaled using the square root of the number of trading days per year (default = 250).
Horizon Volatility (%): Scaled to a custom horizon (default = 5 days, useful for short-term views).
Inputs:
Lookback Period: Number of bars used for volatility calculation.
Trading Days per Year: Used for annualizing volatility.
Horizon (days): Adjusts volatility to a shorter or longer time frame.
Notes:
This is a statistical measure of past volatility, not a forecasting tool.
If you change the scale to logarithmic, the indicator readibility improves.
It should be used for analysis in combination with other tools and not as a standalone signal.
EMA Oscillator [Alpha Extract]A precision mean reversion analysis tool that combines advanced Z-score methodology with dual threshold systems to identify extreme price deviations from trend equilibrium. Utilizing sophisticated statistical normalization and adaptive percentage-based thresholds, this indicator provides high-probability reversal signals based on standard deviation analysis and dynamic range calculations with institutional-grade accuracy for systematic counter-trend trading opportunities.
🔶 Advanced Statistical Normalization
Calculates normalized distance between price and exponential moving average using rolling standard deviation methodology for consistent interpretation across timeframes. The system applies Z-score transformation to quantify price displacement significance, ensuring statistical validity regardless of market volatility conditions.
// Core EMA and Oscillator Calculation
ema_values = ta.ema(close, ema_period)
oscillator_values = close - ema_values
rolling_std = ta.stdev(oscillator_values, ema_period)
z_score = oscillator_values / rolling_std
🔶 Dual Threshold System
Implements both statistical significance thresholds (±1σ, ±2σ, ±3σ) and percentage-based dynamic thresholds calculated from recent oscillator range extremes. This hybrid approach ensures consistent probability-based signals while adapting to varying market volatility regimes and maintaining signal relevance during structural market changes.
// Statistical Thresholds
mild_threshold = 1.0 // ±1σ (68% confidence)
moderate_threshold = 2.0 // ±2σ (95% confidence)
extreme_threshold = 3.0 // ±3σ (99.7% confidence)
// Percentage-Based Dynamic Thresholds
osc_high = ta.highest(math.abs(z_score), lookback_period)
mild_pct_thresh = osc_high * (mild_pct / 100.0)
moderate_pct_thresh = osc_high * (moderate_pct / 100.0)
extreme_pct_thresh = osc_high * (extreme_pct / 100.0)
🔶 Signal Generation Framework
Triggers buy/sell alerts when Z-score crosses extreme threshold boundaries, indicating statistically significant price deviations with high mean reversion probability. The system generates continuation signals at moderate levels and reversal signals at extreme boundaries with comprehensive alert integration.
// Extreme Signal Detection
sell_signal = ta.crossover(z_score, selected_extreme)
buy_signal = ta.crossunder(z_score, -selected_extreme)
// Dynamic Color Coding
signal_color = z_score >= selected_extreme ? #ff0303 : // Extremely Overbought
z_score >= selected_moderate ? #ff6a6a : // Overbought
z_score >= selected_mild ? #b86456 : // Mildly Overbought
z_score > -selected_mild ? #a1a1a1 : // Neutral
z_score > -selected_moderate ? #01b844 : // Mildly Oversold
z_score > -selected_extreme ? #00ff66 : // Oversold
#00ff66 // Extremely Oversold
🔶 Visual Structure Analysis
Provides a six-tier color gradient system with dynamic background zones indicating mild, moderate, and extreme conditions. The histogram visualization displays Z-score intensity with threshold reference lines and zero-line equilibrium context for precise mean reversion timing.
snapshot
4H
1D
🔶 Adaptive Threshold Selection
Features intelligent threshold switching between statistical significance levels and percentage-based dynamic ranges. The percentage system automatically adjusts to current volatility conditions using configurable lookback periods, while statistical thresholds maintain consistent probability-based signal generation across market cycles.
🔶 Performance Optimization
Utilizes efficient rolling calculations with configurable EMA periods and threshold parameters for optimal performance across all timeframes. The system includes comprehensive alert functionality with customizable notification preferences and visual signal overlay options.
🔶 Market Oscillator Interpretation
Z-score > +3σ indicates statistically significant overbought conditions with high reversal probability, while Z-score < -3σ signals extreme oversold levels suitable for counter-trend entries. Moderate thresholds (±2σ) capture 95% of normal price distributions, making breaches statistically significant for systematic trading approaches.
snapshot
🔶 Intelligent Signal Management
Automatic signal filtering prevents false alerts through extreme threshold crossover requirements, while maintaining sensitivity to genuine statistical deviations. The dual threshold system provides both conservative statistical approaches and adaptive market condition responses for varying trading styles.
Why Choose EMA Oscillator ?
This indicator provides traders with statistically-grounded mean reversion analysis through sophisticated Z-score normalization methodology. By combining traditional statistical significance thresholds with adaptive percentage-based extremes, it maintains effectiveness across varying market conditions while delivering high-probability reversal signals based on quantifiable price displacement from trend equilibrium, enabling systematic counter-trend trading approaches with defined statistical confidence levels and comprehensive risk management parameters.
NY Session First 15m Range ORB Strategy first 15m high&low NY session
let you know the high and low of first 15m and the first candle is sitck out of the line you can ride on the wave to make moeny no bul OANDA:XAUUSD SP:SPX