Sentinel 5 — OHL daybreak signals [KedArc Quant]Overview
Sentinel 5 plots the first-bar high/low of each trading session and gives clean, rules-based signals in two ways:
1) OHL Setups at the close of the first bar (Open equals/near High for potential short; Open equals/near Low for potential long).
2) Breakout Signals later in the session when price breaks the first-bar High/Low, with optional body/penetration filters.
Basic workflow
1. Wait for the first session bar to finish.
*If O≈H (optionally by proximity) → short setup. •
*If O≈L → long setup. • If neither happens, optionally allow later breakouts.
2. Optional: Act only on breakouts that penetrate a minimum % of that bar’s range/body.
3. Skip the day automatically if the first bar is abnormally large (marubozu-like / extreme ATR / outsized vs yesterday).
Signals & Markers
Markers on the chart:
▲ O=L (exact) / O near L (proximity) – long setup at first-bar close.
▼ O=H (exact) / O near H (proximity) – short setup at first-bar close.
▲ Breakout Long – later bar breaks above first-bar High meeting your penetration rule.
▼ Breakout Short – later bar breaks below first-bar Low meeting your penetration rule.
Volatility
Mean Reversion Channel [QuantAlgo]🟢 Overview
The Mean Reversion Channel indicator is a range-bound trading system that combines dynamic price channels with momentum-weighted analysis to identify optimal mean reversion opportunities. It creates adaptive upper and lower reversion zones based on recent price action and volatility, while incorporating a momentum-biased equilibrium line that shifts based on volume-weighted price momentum. This creates a three-tier system where traders and investors can identify overbought and oversold conditions within established ranges, detect momentum exhaustion points, and anticipate channel breakouts or breakdowns. This indicator is particularly valuable for strategic dollar cost averaging (DCA) strategies, as it helps identify optimal accumulation zones during oversold conditions and provides tactical risk management levels for systematic investment approaches across different market conditions and asset classes.
🟢 How It Works
The indicator employs a four-stage calculation process that transforms raw price and volume data into actionable mean reversion signals. First, it establishes the base channel by calculating the highest high and lowest low over a user-defined lookback period, creating the foundational price range for mean reversion analysis. This channel adapts continuously as new price data becomes available, ensuring the system remains relevant to current market conditions.
In the second stage, the system calculates volume-weighted momentum by combining price momentum with volume activity. The momentum calculation takes the price change over a specified period and multiplies it by the volume ratio (current volume versus 20-period average volume, for instance) and a volume factor multiplier. This creates momentum readings that are more significant during high-volume periods and less influential during low-volume conditions.
The third stage creates the dynamic reversion zones using Average True Range (ATR) calculations. The upper reversion zone is positioned below the channel high by an ATR-based distance, while the lower reversion zone is positioned above the channel low. These zones contract when momentum is negative (upper zone) or positive (lower zone), creating asymmetric reversion bands that adapt to momentum conditions.
The final stage establishes the momentum-biased equilibrium line by calculating the midpoint between the reversion zones and adjusting it based on momentum bias. When momentum is positive, the equilibrium shifts upward; when negative, it shifts downward. This creates a dynamic reference level that helps identify when price action is moving against the prevailing momentum trend, signaling potential mean reversion opportunities.
🟢 How to Use
1. Mean Reversion Signal Identification
Lower Reversion Zone Signals: When price reaches or falls below the lower reversion zone with bearish momentum, the system generates potential long/buy entry signals indicating oversold conditions within the established range.
Upper Reversion Zone Signals: When price reaches or exceeds the upper reversion zone with bullish momentum, the system generates potential short/sell entry signals indicating overbought conditions.
2. Equilibrium Line Analysis and Momentum Exhaustion
Equilibrium Breaks: The dynamic equilibrium line serves as a momentum bias indicator within the channel. Price crossing above equilibrium suggests shifting to bullish bias, while breaks below indicate bearish bias development within the mean reversion framework.
Momentum Exhaustion Signals: The system identifies momentum exhaustion when price breaks through the equilibrium line opposite to the prevailing momentum direction. Bullish exhaustion occurs when price falls below equilibrium despite positive momentum, while bearish exhaustion happens when price rises above equilibrium during negative momentum periods.
3. Channel Expansion and Breakout Detection
Channel Boundary Breaks: When price breaks above the upper reversion zone or below the lower reversion zone, it signals potential channel expansion or false breakout conditions. These events often precede significant trend changes or range expansion phases.
Range Expansion Alerts: Breaks above the channel high or below the channel low indicate potential breakout from the mean reversion range, suggesting trend continuation or new directional movement beyond the established boundaries.
🟢 Pro Tips for Trading and Investing
→ Strategic DCA Optimization: Use the lower reversion zone as primary accumulation levels for dollar cost averaging strategies. When price reaches oversold conditions with bearish momentum exhaustion signals, it often represents optimal entry points for systematic investment programs, allowing investors to accumulate positions at statistically favorable price levels within the established range.
→ DCA Pause and Acceleration Signals : Monitor equilibrium line breaks to adjust DCA frequency and amounts. When price consistently trades below equilibrium with momentum exhaustion signals, consider accelerating DCA intervals or increasing investment amounts. Conversely, when price reaches upper reversion zones, consider pausing or reducing DCA activity until more favorable conditions return.
→ Momentum Divergence Detection: Watch for divergences between price action and momentum readings within the channel. When price makes new lows but momentum shows improvement, or price makes new highs with deteriorating momentum, these signal high-probability mean reversion setups ideal for contrarian investment approaches.
→ Alert-Based Systematic Investing/Trading: Utilize the comprehensive alert system for automated DCA triggers. Set up alerts for lower reversion zone touches combined with momentum exhaustion signals to create systematic entry points that remove emotional decision-making from long-term investment strategies, particularly effective for volatile assets where timing improvements can significantly impact overall returns.
Planetary Angles - CEPlanetary Angles - Community Edition
Welcome to the Planetary Angles - Community Edition, a dynamic tool designed to enhance W.D. Gann-inspired trading by pinpointing dates when a selected planet reaches a user-defined ecliptic longitude angle. This feature-complete indicator provides traders with precise astrological timing for market analysis across equities, forex, commodities, and cryptocurrencies. It empowers traders to integrate celestial events into their strategies with ease.
Overview
The Planetary Angles - Community Edition calculates and plots vertical lines on your chart to mark dates when a chosen planet (Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, or Pluto) crosses a specific longitude angle (0° to 359.99°) in either heliocentric or geocentric mode. With customizable line and label styling, this script highlights key astrological moments, helping traders identify potential market turning points based on Gann’s time-theory principles. It supports multiple instances on a single chart, offering flexibility for multi-planet analysis.
Key Features
Custom Angle Selection : Choose any ecliptic longitude angle (0° to 359.99°) to track when a planet crosses that precise degree.
Planetary Coverage : Supports eight planets (Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto) for comprehensive astrological analysis.
Heliocentric and Geocentric Modes : Toggle between heliocentric and geocentric calculations to align with your preferred perspective.
Styling Options : Customize line styles (solid, dotted, dashed) and colors for lines and labels, with options to enable/disable lines and text for clarity.
Labeled Visuals : Displays labeled markers (e.g., “☿ 90°”) on the chart, with tooltips for easy identification of planetary angle crossings.
Multi-Instance Support : Add the script multiple times to track different planets or angles simultaneously on the same chart.
How It Works
Open Settings : Access the script’s settings to configure your preferences.
Enable the Script : Check the box to activate Planetary Angles.
Select a Planet : Choose from Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, or Pluto.
Set the Angle : Input a specific ecliptic longitude angle (0° to 359.99°) to track.
Choose Planetary Mode : Select heliocentric or geocentric mode for the calculations.
Customize Styling : Adjust line and label styles and colors, and enable/disable lines or labels as needed.
Analyze and Trade : Observe the plotted vertical lines and labels to identify when the selected planet crosses the chosen angle, using these moments to inform your trading strategy.
Get Started
As a gift to the TradingView community and Gann traders, the Planetary Angles - Community Edition is provided free of charge. With no features locked, this tool offers full access to precise planetary angle tracking for enhanced market timing. Trade wisely and leverage the cosmic precision of Gann’s methodology!
Retrograde Planets - CERetrograde Planets - Community Edition
Welcome to the Retrograde Planets - Community Edition, a specialized tool designed to empower traders with W.D. Gann’s time-theory principles by highlighting planetary retrograde cycles. This feature-complete indicator allows traders to visualize critical retrograde periods for market analysis across equities, forex, commodities, and cryptocurrencies. As a seamless add-on to the Gann ToolBox, it enhances time-based trading strategies with precision and clarity.
Overview
The Retrograde Planets - Community Edition identifies and highlights retrograde cycles for Mercury, Venus, Mars, Jupiter, Saturn, Uranus, and Neptune, key periods often associated with market volatility and trend shifts in Gann’s methodology. By calculating ecliptic longitudes with high accuracy, the script plots historical and future retrograde periods (up to 365 days ahead) on your chart, complete with visual highlights and labels. This tool is ideal for traders leveraging astrological cycles to anticipate market turning points.
Key Features
Retrograde Cycle Highlighting : Displays retrograde periods for Mercury, Venus, Mars, Jupiter, Saturn, Uranus, and Neptune, marking start and end points with vertical lines and labels.
Historical and Future Projections : Visualizes past retrograde cycles and projects future ones up to a year in advance with minute-level precision.
Customizable Planet Selection : Choose from seven planets to focus on specific retrograde cycles relevant to your analysis.
24/7 Market Optimization : Enable extended future data for continuous markets like crypto, improving performance and projection accuracy.
Styling Flexibility : Customize the highlight color for retrograde periods to enhance chart clarity and align with your visual preferences.
Labeled Visuals : Includes labels (e.g., “℞ Starts,” “℞ Ends”) with tooltips for easy identification of retrograde cycle boundaries.
How It Works
Open Settings : Access the script’s settings to configure your preferences.
Select a Planet : Choose from Mercury, Venus, Mars, Jupiter, Saturn, Uranus, or Neptune to analyze its retrograde cycles.
Enable Retrograde Cycles : Check the box to activate retrograde highlighting for the selected planet.
Customize Highlight Color : Adjust the color of the highlighted retrograde periods for better chart visibility.
Enable 24/7 Mode (Optional) : For crypto or continuous markets, activate the 24/7 setting to include extended future data.
Analyze and Trade : Use the highlighted retrograde periods and labeled lines to identify potential market volatility or trend changes, integrating Gann’s time-theory into your strategy.
Get Started
As a gift to the TradingView community and Gann traders, the Retrograde Planets - Community Edition is provided free of charge. With no features locked, this tool offers full access to retrograde cycle analysis for precise market timing. Trade wisely and harness the power of planetary cycles!
Gann Seasonal Dates - CEGann Seasonal Dates - Community Edition
Welcome to the Gann Seasonal Dates V1.61 - Community Edition, a powerful tool designed to enhance time-based trading with W.D. Gann’s seasonal date methodology. This feature-complete indicator allows traders to plot critical seasonal dates on charts for equities, forex, commodities, and cryptocurrencies. It empowers traders to anticipate market turning points with precision.
Overview
The Gann Seasonal Dates plots Gann’s major and minor seasonal dates, which are rooted in the cyclical nature of solstices, equinoxes, and their midpoints. Major dates include the vernal equinox (March 21st), summer solstice (June 22nd), autumnal equinox (September 23rd), and winter solstice (December 22nd). Minor dates mark the halfway points between these events (February 4th, May 6th, July 23rd, August 8th, November 7th, and November 22nd). With customizable styling and historical data up to 50 years, this script helps traders identify key time-based market events.
Key Features
Major and Minor Seasonal Dates : Plot four major dates (solstices and equinoxes) and six minor dates (midpoints) to highlight potential market turning points.
Customizable Date Selection : Enable or disable individual major and minor dates to focus on specific cycles relevant to your analysis.
Historical Data Range : Adjust the lookback period up to 50 years, with recommendations for optimal performance based on your TradingView plan (5 years for Basic, 20 for Pro/Pro+/Premium).
Styling Options : Customize line styles (solid, dotted, dashed) and colors for major and minor dates to enhance chart clarity.
Labeled Visuals : Each plotted date includes a label with a tooltip (e.g., "Vernal equinox") for easy identification and context.
How It Works
Configure Settings : Enable major and/or minor dates and select specific dates (e.g., March 21st, February 4th) to display on your chart.
Set Historical Range : Adjust the years of data (up to 50) to plot historical seasonal dates, ensuring compatibility with your TradingView plan’s processing limits.
Customize Styling : Choose line styles and colors for major and minor dates to differentiate them visually.
Analyze and Trade : Use the plotted vertical lines and labels to identify potential market turning points, integrating Gann’s time-based cycles into your strategy.
Get Started
As a gift to the TradingView community and Gann traders, the Gann Seasonal Dates - Community Edition is provided free of charge. With no features locked, this tool offers full access to Gann’s seasonal date methodology for precise time-based analysis. Trade wisely and leverage the power of seasonal cycles!
SMC Suite – OB • Breaker • Liquidity Sweep • FVGSMC Suite — Order Blocks • Breaker • Liquidity Sweep • FVG
What it does:
Maps institutional SMC structure (OB → Breaker flips, Liquidity Sweeps, and 3-bar FVGs) and alerts when price retests those zones with optional r ejection-wick confirmation .
Why this isn’t “just a mashup”?
This tool implements a specific interaction between four classic SMC concepts instead of only plotting them side-by-side:
1. OB → Breaker Flip (automated): When price invalidates an Order Block (OB), the script converts that zone into a Breaker of opposite bias (bullish ⇄ bearish), extends it, and uses it for retest signals.
2. Liquidity-Gated FVGs : Fair Value Gaps (3-bar imbalances) are optionally gated—they’re only drawn/used if a recent liquidity sweep occurred within a user-defined lookback.
3. Retest Engine with Rejection Filter : Entries are not whenever a zone prints. Signals fire only if price retests the zone, and (optionally) the candle shows a rejection wick ≥ X% of its range.
4. Signal Cooldown : Prevents spam by enforcing a minimum bar gap between consecutive signals.
These behaviors work together to catch the sequence many traders look for: sweep → impulse → OB/FVG → retest + rejection.
Concepts & exact rules
1) Impulsive move and swing structure
• A bar is “ impulsive ” when its range ≥ ATR × Impulsive Mult and it closes in the direction of the move.
• Swings use Pivot Length (lenSwing) on both sides (HH/LL detection). These HH/LLs are also used for sweep checks.
2) Order Blocks (OB)
• Bullish OB : last bearish candle body before an i mpulsive up-move that breaks the prior swing high . Zone = min(open, close) to low of that candle.
• Bearish OB : last bullish candle body before an impulsive down-move that breaks the prior swing low . Zone = high to max(open, close).
• Zones extend right for OB Forward Extend bars.
3) Breaker Blocks (automatic flip)
If price invalidates an OB (closes below a bullish OB’s low or above a bearish OB’s high), that OB flips into a Breaker of opposite bias:
• Invalidated bullish OB → Bearish Breaker (resistance).
• Invalidated bearish OB → Bullish Breaker (support).
Breakers get their own style/opacity and are used for separate Breaker Retest signals.
4) Liquidity Sweeps (decluttered)
• Bullish sweep : price takes prior high but closes back below it.
• Bearish sweep : price takes prior low but closes back above it.
Display can be tiny arrows (default), short non-extending lines, or hidden. Old marks auto-expire to keep the chart clean.
5) Fair Value Gaps (FVG, 3-bar)
• Bearish FVG : high < low and current high < low .
• Bullish FVG : low > high and current low > high .
• Optional gating: only create/use FVGs if a sweep occurred within ‘Recent sweep’ lookback.
6) Retest signals (what actually alerts)
A signal is true when price re-enters a zone and (optionally) the candle shows a rejection wick:
• OB Retest LONG/SHORT — same-direction retest of OB.
• Breaker LONG/SHORT — opposite-direction retest of flipped breaker.
• FVG LONG/SHORT — touch/fill of FVG with rejection.
You can require a wick ratio (e.g., bottom wick ≥ 60% of range for longs; top wick for shorts). A cooldown prevents back-to-back alerts.
How to use
1. Pick timeframe/market : Works on any symbol/TF. Many use 15m–4h intraday and 1D swing.
2. *Tune Pivot Length & Impulsive Mult:
• Smaller = more zones and quicker flips; larger = fewer but stronger.
3. Decide whether to gate FVGs with sweeps : Turn on “Require prior Liquidity Sweep” to focus on post-liquidity setups.
4. Set wick filter : Start with 0.6 (60%) for cleaner signals; lower it if too strict.
5. Style : Use the Style / Zones & Style / Breakers groups to set colors & opacity for OB, Breakers, FVGs.
6. Alerts : Add alerts on any of:
• OB Retest LONG/SHORT
• Breaker LONG/SHORT
• FVG LONG/SHORT
Choose “Once per bar close” to avoid intrabar noise.
Inputs (key)
• Swing Pivot Length — swing sensitivity for HH/LL and sweeps.
• Impulsive Move (ATR ×) — defines the impulse that validates OBs.
• OB/FVG Forward Extend — how long zones project.
• Require prior Liquidity Sweep — gate FVG creation/usage.
• Rejection Wick ≥ % — confirmation filter for retests.
• Signal Cooldown (bars) — throttles repeated alerts.
• Display options for sweep marks — arrows vs short lines vs hidden.
• Full color/opacity controls — independent palettes for OB, Breakers, and FVGs (fills & borders).
What’s original here
• Automatic OB → Breaker conversion with separate retest logic.
• Liquidity-conditioned FVGs (FVGs can be required to follow a recent sweep).
• Unified retest engine with wick-ratio confirmation + cooldown.
• Decluttered liquidity visualization (caps, expiry, and non-extending lines).
• Complete styling controls for zone types (fills & borders), plus matching signal label colors.
🔹 Notes
• This script is invite-only.
• It is designed for educational and discretionary trading use, not as an autotrader.
• No performance guarantees are implied — always test on multiple markets and timeframes.
Universal Trend+ [BackQuant]Universal Trend+
This indicator blends several well-known technical ideas into a single composite trend and momentum model. It can be show primarily as an overlay or a oscillator:
In which it produces two things:
a composite oscillator that summarizes multiple signals into one normalized score
a regime signal rendered on the chart as a colored ribbon with optional 𝕃 and 𝕊 markers
The goal is to simplify decision-making by having multiple, diverse measurements vote in a consistent framework, rather than relying on any single indicator in isolation.
What it does
Computes five independent components, each reading a different aspect of price behavior
Converts each component into a standardized bullish / neutral / bearish vote
Averages the available votes to a composite score
Compares that score to user thresholds to label the environment bullish, neutral, or bearish
Colors a fast/slow moving-average ribbon by the current regime, optionally paints candles, and can plot the composite oscillator in a lower pane
The five components (conceptual)
1)RSI Momentum Bias
A classic momentum gauge on a selectable source and lookback. The component emphasizes whether conditions are persistently strong or weak and applies a neutral buffer to avoid reacting to trivial moves. Output is expressed as a vote: bullish, neutral, or bearish.
2) Rate-of-Change Impulse
A smoothed rate-of-change that focuses on short bursts in acceleration. It is used to detect impulsive pushes rather than slow drift. Extreme readings cast a directional vote, mid-range readings abstain.
3) EMA Oscillator
A slope-style trend gauge formed by contrasting a fast and a slow EMA on a chosen source, normalized so that the sign and relative magnitude matter more than absolute price. A small dead-zone reduces whipsaws.
4) T3-Based Normalized Oscillator
A T3 smoother is transformed into a bounded oscillator via rolling normalization, then optionally smoothed by a user-selectable MA. This highlights directional drift while keeping scale consistent across symbols and regimes.
5) DEMA + ATR Bands State
A double-EMA core is wrapped in adaptive ATR bands to create a stepping state that reacts when pressure exceeds a volatility envelope. The component contributes an event-style vote on meaningful shifts.
Each component is designed to measure something different: trend slope, momentum impulse, normalized drift, and volatility-aware pressure. Their diversity is the point.
Composite scoring model
Standardization: Each component is mapped to -1 (bearish), 0 (neutral), or +1 (bullish) using bands and guards to cut noise.
Aggregation: The composite score is the average of the available votes. If a component is inactive on a bar, the composite uses the votes that are present.
Decision layer: Two user thresholds define your action bands.
Above the upper band → bullish regime
Below the lower band → bearish regime
Between the bands → neutral
This separation between measurement, aggregation, and decision avoids over-fitting any single threshold and makes the tool adaptable across assets and timeframes.
Plots and UI
Composite oscillator (optional lower pane): A normalized line that trends between bearish and bullish zones with user thresholds drawn for context.
Signal ribbon (on price): A fast/slow MA pair tinted by the current regime to give an at-a-glance market state.
Markers: Optional 𝕃 and 𝕊 labels when the regime flips.
Candle painting and background tint: Optional visual reinforcement of state.
Color and style controls: User inputs for long/short colors, threshold line color, and visibility toggles.
How it can be used
1) Regime filter
Use the composite regime to define bias. Trade only long in a bullish regime, only short in a bearish regime, and stand aside or scale down in neutral. This simple filter often reduces whipsaw.
2) Confirmation layer
Keep your entry method the same (breaks, pullbacks, liquidity sweeps, order-flow cues) but require agreement from the composite regime or a fresh flip in the 𝕃/𝕊 markers.
3) Momentum breakouts
Look for the composite oscillator to leave neutrality while the EMA oscillator is already positive and the ATR-band state has flipped. Confluence across components is the intent.
4) Pullback entries within trend
In a bullish regime, consider entries on shallow composite dips that recover before breaching the lower band. Reverse the logic in a bearish regime.
5) Exits and risk
Common choices are:
reduce on a return to neutral,
exit on an opposite regime flip, or
trail behind your own stop model (ATR, structure, session levels) while using the ribbon for context.
6) Multi-timeframe workflow
Select a higher timeframe for bias with this indicator, and time executions on a lower timeframe. The indicator itself stays on a single chart; you can load a second chart or pane if you prefer a strict top-down process.
Strengths
Diversified evidence: Five independent perspectives keep the model from hinging on one idea.
Noise control: Neutral buffers and a composite layer reduce reaction to minor wiggles.
Clarity: A single oscillator and a clearly colored ribbon present a complex assessment in a simple form.
Adaptable: Thresholds and lookbacks let you tune for faster or slower markets.
Practical tuning
Thresholds: Wider bands produce fewer regime flips and longer holds. Narrower bands increase sensitivity.
Lookbacks: Shorter lookbacks emphasize recent action; longer lookbacks emphasize stability.
T3 normalization window and volume factor: Increase the window to suppress noise on choppy symbols; tweak the factor to adjust the smoother’s response.
ATR factor for the band state: Raise it to demand more decisive pressure before registering a shift; lower it to respond earlier.
Alerts
Built-in alerts trigger when the regime flips long or short. If you prefer confirmed signals, set your alerts to bar close on your timeframe. Intrabar the composite can move with price; bar-close confirmation stabilizes behavior.
Limitations
Sideways markets: Even with buffers, any trend model can chop in range-bound conditions.
Lag vs sensitivity trade-off: Tighter thresholds react faster but flip more often; wider thresholds are steadier but later.
Asset specificity: Volatility regimes differ. Expect to retune ATR and normalization settings when switching symbols or timeframes.
Final Remarks
Universal Trend+ is meant to act like a disciplined voting committee. Each component contributes a different angle on the same underlying question: is the market pressing up, pressing down, or doing neither with conviction. By standardizing and aggregating those views, you get a single regime read that plays well with many entry styles and risk frameworks, while keeping the heavy math under the hood.
ATR% | Volatility NormalizerThis indicator measures true volatility by expressing the Average True Range (ATR) as a percentage of price. Unlike basic ATR plots, which show raw values, this version normalizes volatility to make it directly comparable across instruments and timeframes.
How it works:
Uses True Range (High–Low plus gaps) to capture actual market movement.
Normalizes by dividing ATR by the chosen price base (default: Close).
Multiplies by 100 to output a clean ATR% line.
Smoothing is flexible: choose from RMA, SMA, EMA, or WMA.
Optional Feature:
For comparison, you can toggle an auxiliary line showing the average absolute close-to-close % move, highlighting the difference between simplified and true volatility.
Why use it:
Track regime shifts: identify when volatility expands or contracts in % terms.
Compare volatility across different markets (equities, crypto, forex, commodities).
Integrate into risk management: position sizing, stop placement, or volatility filters for entries.
Interpretation:
Rising ATR% → expanding volatility, potential breakouts or unstable ranges.
Falling ATR% → contracting volatility, possible consolidation or range-bound conditions.
Sudden spikes → market “shocks” worth paying attention to.
Volatility % Bands (O→C)Volatility % Bands (O→C) is an indicator designed to visualize the percentage change from Open to Close of each candle, providing a clear view of short-term momentum and volatility.
**Histogram**: Displays bar-by-bar % change (Close vs Open). Green bars indicate positive changes, while red bars indicate negative ones, making momentum shifts easy to identify.
**Moving Average Line**: Plots the Simple Moving Average (SMA) of the absolute % change, helping traders track the average volatility over a chosen period.
**Background Bands**: Based on the user-defined Level Step, ±1 to ±5 zones are highlighted as shaded bands, allowing quick recognition of whether volatility is low, moderate, or extreme.
**Label**: Shows the latest candle’s % change and the current SMA value as a floating label on the right, making it convenient for real-time monitoring.
This tool can be useful for volatility breakout strategies, day trading, and short-term momentum analysis.
Peak Reversal v3# Peak Reversal v3
## Summary
Peak Reversal v3 adds new configurability, clearer visuals, and a faster trader workflow. The release introduces a new Squeeze Detector , expanded Keltner Channels , and streamlined Momentum signals , with no repaints and improved performance. The menus have been reorganized and simplified. Color swatches have been added for better customization. All other colors will be derived from these swatches.
## Highlights
New Squeeze Detector to mark low-volatility periods and prepare for breakouts.
New: Bands are now fully configurable with independent MA length, ATR length, and multipliers.
Five moving average bases for bands: EMA (from v2), SMA, RMA, VMA, HMA.
Simplified color system: three swatches drive candles, on-chart marks, and band fill.
Reorganized menu with focused sections and tooltips for each parameter making the entire trader experience more intuitive.
No repaints and faster performance across calculations.
## Overview
Configuration : Pick from three color swatches and apply them to candles, plotted characters, and band fill for consistent chart context. Use the reorganized menu to reach Keltner settings, momentum signals, and squeeze detection without extra clicks; tooltips clarify each input.
Bands and averages: Choose the band basis from EMA, SMA, RMA, VMA, or HMA to match your strategy. Configure two bands independently by setting MA length, ATR length, and band multipliers for the inner and outer envelopes.
Signals : Select the band responsible for momentum signals. Choose wick or close as the price source for entries and exits. Control the window for extreme momentum with “Max Momentum Bars,” a setting now exposed in v3 for direct tuning.
Squeeze detection : The Squeeze Detector normalizes band width and uses percentile ranking to highlight volatility compression. When the market falls below a user-defined threshold, the indicator colors the region with a gradient to signal potential expansion.
## Details about major features and changes
### New
Squeeze Detector to highlight low-volatility conditions.
Five MA bases for bands: EMA, SMA, RMA, VMA, HMA.
“Max Momentum Bars” to cap the bars used for extreme momentum.
### Keltner channel improvements
Refactored Keltner settings for flexible inner and outer band control.
MA type selection added; band calculations updated for consistency.
Removed the third Keltner band to reduce noise and simplify setup.
### Display and signals
Gradient fills for band breakouts, mean deviations, and squeeze periods.
“Show Mean EMA?” set to true and default “Signal Band” set to “Inner.”
Clearer tooltips and input descriptions.
### Reliability and performance
No more repaints. The indicator waits for confirmation before drawing occurs.
Faster execution through targeted refactors.
All algorithms have been reviewed and now use a consistent logic, naming, and structure.
Advanced Range Analyzer ProAdvanced Range Analyzer Pro – Adaptive Range Detection & Breakout Forecasting
Overview
Advanced Range Analyzer Pro is a comprehensive trading tool designed to help traders identify consolidations, evaluate their strength, and forecast potential breakout direction. By combining volatility-adjusted thresholds, volume distribution analysis, and historical breakout behavior, the indicator builds an adaptive framework for navigating sideways price action. Instead of treating ranges as noise, this system transforms them into opportunities for mean reversion or breakout trading.
How It Works
The indicator continuously scans price action to identify active range environments. Ranges are defined by volatility compression, repeated boundary interactions, and clustering of volume near equilibrium. Once detected, the indicator assigns a strength score (0–100), which quantifies how well-defined and compressed the consolidation is.
Breakout probabilities are then calculated by factoring in:
Relative time spent near the upper vs. lower range boundaries
Historical breakout tendencies for similar structures
Volume distribution inside the range
Momentum alignment using auxiliary filters (RSI/MACD)
This creates a live probability forecast that updates as price evolves. The tool also supports range memory, allowing traders to analyze the last completed range after a breakout has occurred. A dynamic strength meter is displayed directly above each consolidation range, providing real-time insight into range compression and breakout potential.
Signals and Breakouts
Advanced Range Analyzer Pro includes a structured set of visual tools to highlight actionable conditions:
Range Zones – Gradient-filled boxes highlight active consolidations.
Strength Meter – A live score displayed in the dashboard quantifies compression.
Breakout Labels – Probability percentages show bias toward bullish or bearish continuation.
Breakout Highlights – When a breakout occurs, the range is marked with directional confirmation.
Dashboard Table – Displays current status, strength, live/last range mode, and probabilities.
These elements update in real time, ensuring that traders always see the current state of consolidation and breakout risk.
Interpretation
Range Strength : High scores (70–100) indicate strong consolidations likely to resolve explosively, while low scores suggest weak or choppy ranges prone to false signals.
Breakout Probability : Directional bias greater than 60% suggests meaningful breakout pressure. Equal probabilities indicate balanced compression, favoring mean-reversion strategies.
Market Context : Ranges aligned with higher timeframe trends often resolve in the dominant direction, while counter-trend ranges may lead to reversals or liquidity sweeps.
Volatility Insight : Tight ranges with low ATR imply imminent expansion; wide ranges signal extended consolidation or distribution phases.
Strategy Integration
Advanced Range Analyzer Pro can be applied across multiple trading styles:
Breakout Trading : Enter on probability shifts above 60% with confirmation of volume or momentum.
Mean Reversion : Trade inside ranges with high strength scores by fading boundaries and targeting equilibrium.
Trend Continuation : Focus on ranges that form mid-trend, anticipating continuation after consolidation.
Liquidity Sweeps : Use failed breakouts at boundaries to capture reversals.
Multi-Timeframe : Apply on higher timeframes to frame market context, then execute on lower timeframes.
Advanced Techniques
Combine with volume profiles to identify areas of institutional positioning within ranges.
Track sequences of strong consolidations for trend development or exhaustion signals.
Use breakout probability shifts in conjunction with order flow or momentum indicators to refine entries.
Monitor expanding/contracting range widths to anticipate volatility cycles.
Custom parameters allow fine-tuning sensitivity for different assets (crypto, forex, equities) and trading styles (scalping, intraday, swing).
Inputs and Customization
Range Detection Sensitivity : Controls how strictly ranges are defined.
Strength Score Settings : Adjust weighting of compression, volume, and breakout memory.
Probability Forecasting : Enable/disable directional bias and thresholds.
Gradient & Fill Options : Customize range visualization colors and opacity.
Dashboard Display : Toggle live vs last range, info table size, and position.
Breakout Highlighting : Choose border/zone emphasis on breakout events.
Why Use Advanced Range Analyzer Pro
This indicator provides a data-driven approach to trading consolidation phases, one of the most common yet underutilized market states. By quantifying range strength, mapping probability forecasts, and visually presenting risk zones, it transforms uncertainty into clarity.
Whether you’re trading breakouts, fading ranges, or mapping higher timeframe context, Advanced Range Analyzer Pro delivers a structured, adaptive framework that integrates seamlessly into multiple strategies.
BB Expansion Oscillator (BEXO)BB Expansion Oscillator (BEXO) is a custom indicator designed to measure and visualize the expansion and contraction phases of Bollinger Bands in a normalized way.
🔹 Core Features:
Normalized BB Width: Transforms Bollinger Band Width into a 0–100 scale for easier comparison across different timeframes and assets.
Signal Line: EMA-based smoothing line to detect trend direction shifts.
Histogram: Highlights expansion vs contraction momentum.
OB/OS Zones: Detects Over-Expansion and Over-Contraction states to spot potential volatility breakouts or squeezes.
Dynamic Coloring & Ribbon: Visual cues for trend bias and crossovers.
Info Table: Displays real-time values and status (Expansion, Contraction, Over-Expansion, Over-Contraction).
Background Highlighting: Optional visual aid for trend phases.
🔹 How to Use:
When BEXO rises above the Signal Line, the market is in an Expansion phase → potential trend continuation.
When BEXO falls below the Signal Line, the market is in a Contraction phase → potential consolidation or trend weakness.
Overbought/Over-Expansion zone (above OB level): Signals high volatility; watch for possible reversal or breakout exhaustion.
Oversold/Over-Contraction zone (below OS level): Indicates a squeeze or low volatility; often precedes strong breakout moves.
🔹 Best Application:
Identify volatility cycles (squeeze & expansion).
Filter trades by volatility conditions.
Combine with price action, volume, or momentum indicators for confirmation.
⚠️ Disclaimer:
This indicator is for educational and research purposes only. It should not be considered financial advice. Always combine with proper risk management and your own trading strategy.
Extreme Zone Volume ProfileExtreme Zone Volume Profile (EZVP)
Originality & Innovation
The Extreme Zone Volume Profile (EZVP) revolutionizes traditional volume profile analysis by applying statistical zone classification to volume distribution. Unlike standard volume profiles that display raw volume data, EZVP segments the price range into statistically meaningful zones based on percentile thresholds, allowing traders to instantly identify where volume concentration suggests strong support/resistance versus areas of potential breakout.
Technical Methodology
Core Algorithm:
Distributes volume across user-defined bins (20-200) over a lookback period
Calculates volume-weighted price levels for each bin
Applies percentile-based zone classification to the price range (not volume ranking)
Zone B (extreme zones): Outer percentile tails representing potential rejection areas
Zone A (significant zones): Secondary percentile bands indicating strong interest levels
Center Zone: Bulk trading range where most price discovery occurs
Mathematical Foundation:
The script uses price-range percentiles rather than volume percentiles. If the total price range is divided into 100%, Zone B captures the extreme price tails (default 2.5% each end ≈ 2 standard deviations), Zone A captures the next significant bands (default 14% each ≈ 1 standard deviation), leaving the center for normal distribution trading.
Key Calculations:
POC (Point of Control): Price level with maximum volume accumulation
Volume-weighted mean price: Total volume × price / total volume
Median price: Geometric center of the price range
Rightward-projected bars: Volume bars extend forward from current time to avoid historical chart clutter
Trading Applications
Zone Interpretation:
Zone B (Red/Green): Extreme price levels where volume suggests strong rejection potential. Price reaching these zones often indicates overextension and possible reversal points.
Zone A (Orange/Teal): Significant support/resistance areas with substantial volume interest. These levels often act as intermediate targets or consolidation zones.
Center (Gray): Fair value area where most trading occurs. Price tends to return to this range during normal market conditions.
Strategic Usage:
Reversal Trading: Look for rejection signals when price enters Zone B areas
Breakout Confirmation: Volume expansion beyond Zone B boundaries suggests genuine breakouts
Support/Resistance: Zone A boundaries often provide reliable entry/exit levels
Mean Reversion: Price tends to gravitate toward the volume-weighted mean and POC lines
Unique Value Proposition
EZVP addresses three key limitations of traditional volume profiles:
Visual Clarity: Standard profiles can be cluttered and difficult to interpret quickly. EZVP's color-coded zones provide instant visual feedback about price significance.
Statistical Framework: Rather than relying on subjective interpretation of volume nodes, EZVP applies objective percentile-based classification, making support/resistance identification more systematic.
Forward-Looking Display: Rightward-projecting bars keep historical price action clean while maintaining current market structure visibility.
Configuration Guide
Lookback Period (10-1000): Controls the historical depth of volume calculation. Shorter periods for intraday scalping, longer for swing trading.
Number of Bins (20-200): Resolution of volume distribution. Higher values provide more granular analysis but may create noise on lower timeframes.
Zone Percentages:
Zone B: Extreme threshold (default 2.5% = ~2σ statistical significance)
Zone A: Significant threshold (default 14% = ~1σ statistical significance)
Visual Controls: Toggle individual elements (POC, median, mean, zone lines) to customize display complexity for your trading style.
Technical Requirements
Pine Script v6 compatible
Maximum bars back: 5000 (ensures sufficient historical data)
Maximum boxes: 500 (supports high-resolution bin counts)
Maximum lines: 50 (accommodates all zone and reference lines)
This indicator synthesizes volume profile theory with statistical zone analysis, providing a quantitative framework for identifying high-probability support/resistance levels based on volume distribution patterns rather than arbitrary price levels.
AlphaFlow — Direcional ProThe AlphaFlow — Direcional Pro is a complete trading suite designed to give traders a clear, structured view of market direction, volatility, and momentum.
📌 Key Features:
Trend Detection with Dual EMAs: Fast and slow EMAs for directional bias, plus an optional 200 EMA filter for long-term context.
Volatility Regime Filter (ATR): Confirms market conditions by comparing current ATR with its average.
RSI Confirmation: Adaptive RSI filter to validate bullish and bearish regimes.
Directional Signals (BUY/SELL): Clear chart markers with bar coloring for instant trend visualization.
Swing Structure with Star Markers: Automatic detection of HH, HL, LH, LL swings, highlighted with color-coded ★ stars.
RSI Divergences: Automatic bullish/bearish divergence spotting for early trend reversal signals.
VWAP Levels: Daily, Weekly, and Anchored VWAP for institutional reference points.
Trade Management Tools: Automatic plotting of Entry, Stop-Loss, TP1, and TP2 levels, with optional trailing ATR stop.
Multi-Timeframe Support: Generate signals from a higher timeframe and confirm on chart close.
Alerts: Pre-configured alerts for entries, SL, TP1, TP2, and divergences.
✨ With its combination of trend, volatility, swing structure, and divergence analysis, AlphaFlow provides both short-term signals and long-term directional context — making it a versatile tool for intraday traders, swing traders, and investors.
Jarvis Bitcoin Predictor – Advanced AI-Powered TrendJarvis Bitcoin Predictor is an invite-only indicator designed to help traders anticipate market moves with precision.
It combines advanced momentum tracking, volatility analysis, and adaptive trend filters to highlight high-probability trading opportunities.
🔹 Core Features:
- AI-inspired algorithm for Bitcoin price prediction
- Early detection of bullish and bearish trend reversals
- Dynamic support & resistance zones
- Clear buy/sell signal markers
- Built-in alerts to never miss an opportunity
Optimized for Bitcoin, but compatible with other crypto pairs
🔹 How it works (general explanation):
The indicator uses a mix of momentum calculations, volatility filters, and adaptive trend detection to generate signals.
When several market conditions align, Jarvis provides clear entry/exit signals designed to improve decision-making and timing.
🔹 How to use it:
1- Add Jarvis Bitcoin Predictor to your chart.
2- Follow the green signals/zones for bullish opportunities.
3- Follow the red signals/zones for bearish opportunities.
4- Combine with proper risk management and your own strategy.
This tool was built to give traders clarity and confidence in the fast-paced crypto market.
⚠️ Important:
This script is invite-only. To request access, please contact the author directly.
Dynamic Chandelier Exit Trader [KedArc Quant])Dynamic Chandelier Exit Trader (DCET)
The Dynamic Chandelier Exit Trader (DCET) builds upon the classical Chandelier Exit indicator by combining volatility-based stop placement with risk-reward exit logic. It is designed to provide clear buy/sell flip signals, making it adaptable across multiple trading environments.
Market Suitability
The DCET is most effective under the following market conditions:
1. Trending Markets (Upward or Downward)
- Strong performance when price is in a clear directional trend.
- Buy signals align with uptrends, sell signals align with downtrends.
- Works well on stocks, forex pairs, and crypto during trending phases.
2. Breakout Environments:
- Captures moves when price breaks out of consolidations.
- ATR-based stop dynamically adjusts to volatility expansion.
- Effective for traders who like catching the first move after breakouts.
3. Sideways / Range-Bound Markets:
- DCET tends to generate more frequent flip signals in sideways conditions.
- May lead to whipsaws, but can still be used with reduced ATR length or by combining with a trend filter (e.g., moving average direction).
4. All Markets (with Adjustments):
- Works universally but requires tuning.
- In highly volatile markets (e.g., crypto), a higher ATR multiplier may reduce false signals.
- In stable, slower-moving markets (e.g., large-cap equities), smaller ATR multipliers improve responsiveness.
AnalistAnka FlowScore Pro (v8.2)AnalistAnka FlowScore Pro – User Guide (EN)
1) What it is
AnalistAnka FlowScore Pro aggregates money flow into a single scale.
Components:
SMF-Z: Z-score of (log return × volume)
OBV-Z: Z-score of OBV (cumulative volume flow)
MFI-Z (optional): Z-score of Money Flow Index
Combined into FlowScore, then smoothed by EMA.
Core signal:
FlowScore > +0.5 → strong long bias
FlowScore < −0.5 → strong short bias
Optional HTF EMA filter keeps you trading with the higher-timeframe trend.
2) Inputs (summary)
FlowScore & Signal: wSMF, wOBV, wMFI, smoothFS, enterBand, exitBand, cooldownBars
HTF Filter: useHTF, htf (e.g., 60/240/1D), htfEmaLen (default 200)
MFI: useMfi, mfiLen, mfiSmooth, mfiZwin
Spike: spWin, spK (σ threshold), minVolPct (volume MA threshold)
Fills: fillSMF, fillOBV with separate positive/negative colors
Divergences: showDiv, divLeft/right, divShowLines, divShowLabels, colors
3) How to read
A) FlowScore (primary)
Long setup: FlowScore crosses above enterBand (+)
Short setup: FlowScore crosses below −exitBand
Hysteresis (±bands) reduces whipsaws; cooldown throttles repeats.
B) HTF trend filter (recommended)
With useHTF=true: only longs above HTF EMA, only shorts below it.
Example: trade 15-min, filter with 1-hour EMA200.
C) Spike IN/OUT (confirmation)
Detects statistical surges in OBV derivative plus volume threshold.
Use as confirmation, not as a standalone trigger.
D) Divergence (pivot-based)
Bearish: price HH while FlowScore prints LH
Bullish: price LL while FlowScore prints HL
Tune pivots via divLeft/right; toggle lines/labels in the panel.
4) Timeframes & suggested presets
Profile Chart HTF (Filter) Band (±) Cooldown Notes
Scalp 1–5m 15–60m 0.7 5–8 Fewer, cleaner signals
Intraday 5–15m 60–240m 0.5 8–12 Solid default
Swing 1–4h 1D 0.4 12–20 Patient entries
Daily usage:
On a daily chart, nothing extra is needed.
On intraday but want daily filter → set htf=1D.
5) Example playbook
Long:
useHTF=true and price above HTF EMA
FlowScore crosses above +band
Optional confirmations: recent Spike IN, SMF-Z & OBV-Z aligned positive
Stop: below last swing low or ATR(14)×1.5
Exit: partial on FlowScore below 0; full on below −band or at 1R/2R
Short: mirror logic (below HTF EMA, break under −band, Spike OUT, etc.).
6) Alerts
FlowScore LONG / SHORT → immediate signal notification
Spike IN / OUT → money-in/out warnings
7) Tips
Too many signals → widen bands (0.6–0.7), increase cooldown, raise smoothFS (6–9).
Too slow → lower smoothFS (3–4), reduce bands to 0.4–0.5.
Thin liquidity → reduce minVolPct, also reduce position size.
Best reliability when SMF-Z & OBV-Z share the same polarity.
8) Disclaimer
For educational purposes only. Not financial advice. Always apply risk management.
Balanced Price Range (BPR) DetectorBALANCED PRICE RANGE (BPR) DETECTOR
This indicator detects Balanced Price Ranges (BPR) by analyzing the overlap between bullish and bearish Fair Value Gaps (FVG). BPR zones represent areas where opposing market forces create equilibrium, often acting as strong support/resistance levels.
KEY FEATURES:
- Automatic detection of overlapping FVGs to form BPR zones
- Confidence scoring system (0-100%) based on overlap ratio, size, volume, and symmetry
- Customizable filters (ATR, Volume)
- Real-time mitigation tracking
- Alert system for new BPRs, mitigations, and rejections
- Visual customization options
HOW IT WORKS:
The indicator continuously scans for Fair Value Gaps in both directions. When a bullish FVG overlaps with a bearish FVG within the specified lookback period, a BPR zone is created. The confidence score helps traders identify the strongest zones.
USAGE:
- High confidence BPRs (>75%) often act as strong reversal zones
- Use for entry/exit points when price approaches BPR zones
- Combine with other indicators for confirmation
- Monitor touch counts for zone strength validation
SETTINGS:
- Lookback Bars: Number of bars to search for overlapping FVGs
- Min Overlap Ratio: Minimum overlap percentage required
- ATR/Volume Filters: Filter out weak or low-volume BPRs
- Display Options: Customize visual appearance
- Mitigation Type: Choose between wick or close-based mitigation
Perfect for traders using price action, supply/demand zones, or institutional order flow concepts.
SMA MAD SuperTrend | OquantThe SMA MAD SuperTrend | Oquant is an trend-following indicator designed to help traders identify potential trend directions and reversals using a unique combination of a Simple Moving Average (SMA), Mean Absolute Deviation (MAD), and a SuperTrend mechanism. This script aims to provide clear visual signals for trend entries and exits, making it suitable for traders looking to capture trends.
This indicator innovatively combines the smoothing properties of an SMA with the volatility-adaptive qualities of MAD to create dynamic SuperTrend bands. Unlike traditional SuperTrend indicators that rely on Average True Range (ATR) for volatility, this script uses Mean Absolute Deviation(MAD) to measure the average absolute deviation from the mean price, providing a different perspective on price volatility. The result is a SuperTrend system that adapts to market conditions with a focus on price deviation, offering a unique tool for trend detection.
Components and Calculations
Simple Moving Average (SMA):
The SMA is a widely used indicator that calculates the average of a specified number of closing prices. It smooths price data to identify the overall trend direction. In this script, the SMA serves as the baseline for calculating dynamic upper and lower bands.
Mean Absolute Deviation (MAD):
MAD measures the average absolute deviation of the price from its mean. It quantifies volatility by calculating how far prices deviate from the mean price, offering an alternative to ATR.
SuperTrend Mechanism:
This SuperTrend indicator generates dynamic upper and lower bands around the Simple Moving Average (SMA) using mean absolute deviation as measure of volatility.
It tracks trend direction by comparing the close price to the bands:
If the price crosses above the upper band, the trend turns bullish, and the SuperTrend follows the lower band.
If the price crosses below the lower band, the trend turns bearish, and the SuperTrend follows the upper band.
The bands adjust based on their previous values, updating only when the price crosses a band or the band shifts in the correct direction, reducing false signals and ensuring stable trend detection.
How to Use the Indicator
Trend Signals:
Green Line: Indicates a bullish trend (price above the SuperTrend line).
Purple Line: Indicates a bearish trend (price below the SuperTrend line).
Bar and Candle Coloring: Bars and candles are colored green for bullish trends and purple for bearish trends, making it easy to visualize trend direction.
Filled Areas: The area between the price and the SuperTrend line is filled with transparent colors (green for bullish, purple for bearish) to highlight trend.
Inputs:
Source: Choose the price data for calculations.
SMA Length: Adjust the period for the SMA. Longer periods smooth the trend further.
MAD Length: Set the period for MAD calculation. Shorter periods make the MAD more sensitive.
Factor: Control the distance of the SuperTrend bands from the SMA. Higher values widen the bands, reducing sensitivity to price fluctuations.
Alerts:
The script includes alert conditions for trend changes:
SMA MAD SuperTrend Long: Triggered when the trend turns bullish.
SMA MAD SuperTrend Short: Triggered when the trend turns bearish.
Set up alerts in TradingView to receive notifications for these conditions.
Why Use This Script?
The SMA MAD SuperTrend | Oquant offers a fresh take on trend-following by integrating SMA as baseline and MAD for volatility measurement, providing an alternative to ATR-based SuperTrend indicators. Its clear visual signals, customizable inputs, and alert conditions make it versatile for traders of all levels.
⚠️ Disclaimer: This indicator is intended for educational and informational purposes only. Trading/investing involves risk, and past performance does not guarantee future results. Always test and evaluate indicators/strategies before applying them in live markets. Use at your own risk.
Volatility Forecast/*==============================================================================
Volatility Forecast — Publishable Documentation
Author: @BB_9791
License: Mozilla Public License 2.0
WHAT THIS INDICATOR SHOWS
- A daily volatility estimate in percent points, called sigma_day.
- A slow volatility anchor, the 10-year EMA of sigma_day.
- A blended volatility series in percent points:
sigma_blend = (1 − p) * sigma_day + p * EMA_10y(sigma_day)
where p is the Slow weight %, default 30.
- Optional annualization by multiplying by 16, this is a daily-to-annual
conversion used by Robert Carver in his writings.
METHODOLOGY, CREDIT
The estimator follows the approach popularized by Robert Carver
("Systematic Trading", "Advanced Futures Trading Strategies", blog qoppac).
Current daily volatility is computed as an exponentially weighted standard
deviation of daily percent returns, with alpha = 2 / (span + 1).
The slow leg is a long EMA of that volatility series, about 10 years.
The blend uses fixed weights. This keeps the slow leg meaningful through
large price level changes, since the blend is done in percent space first.
MATH DETAILS
Let r_t be daily percent return:
r_t = 100 * (Close_t / Close_{t−1} − 1)
EWMA mean and variance:
m_t = α * r_t + (1 − α) * m_{t−1}
v_t = α * (r_t − m_t)^2 + (1 − α) * v_{t−1}
where α = 2 / (span_current + 1)
Current daily sigma in percent points:
sigma_day = sqrt(v_t)
Slow leg:
sigma_10y = EMA(sigma_day, span_long)
Blend:
sigma_blend = (1 − p) * sigma_day + p * sigma_10y
Annualized option:
sigma_ann = 16 * sigma_blend
INPUTS
- Threshold (percent points): horizontal guide level on the chart.
- Short term span (days): EW stdev span for sigma_day.
- Long term span (days): EMA span for the slow leg, choose about 2500 for 10 years.
- Slow weight %: p in the blend.
- Annualize (x16): plot daily or annualized values.
- Show components: toggles Current and 10y EMA lines.
- The script uses the chart symbol by default.
PLOTS
- Blended σ% as the main line.
- Optional Current σ% and 10y EMA σ%.
- Editable horizontal threshold line in the same units as the plot
(percent points per day or per year).
- Optional EMA 9 and EMA 20 cloud on the blended series, green for uptrend
when EMA 9 is above EMA 20, red otherwise. Opacity is configurable.
HOW TO READ
- Values are percent points of movement per day when not annualized,
for example 1.2 means about 1.2% typical daily move.
- With annualize checked, values are percent points per year, for example 18
means about 18% annualized volatility.
- Use the threshold and the EMA cloud to mark high or low volatility regimes.
NOTES
- All calculations use daily data via request.security at the chart symbol.
- The blend is done in percent space, then optionally annualized, which avoids
bias from the price level.
- This script does not produce trading signals by itself, it is a risk and
regime indicator.
CREDITS
Volatility forecasting method and scaling convention credited to Robert Carver.
See his books and blog for background and parameter choices.
VERSION
v1.0 Initial public release.
==============================================================================*/
ATR Extension from Moving Average, with Robust Sigma Bands
# ATR Extension from Moving Average, with Robust Sigma Bands
**What it does**
This indicator measures how far price is from a selected moving average, expressed in **ATR multiples**, then overlays **robust sigma bands** around the long run central tendency of that extension. Positive values mean price is extended above the MA, negative values mean price is extended below the MA. The signal adapts to volatility through ATR, which makes comparisons consistent across symbols and regimes.
**Why it can help**
* Normalizes distance to an MA by ATR, which controls for changing volatility
* Uses the **bar’s extreme** against the MA, not just the close, so it captures true stretch
* Computes a **median** and **standard deviation** of the extension over a multi-year window, which yields simple, intuitive bands for trend and mean-reversion decisions
---
## Inputs
* **MA length**: default 50, options 200, 64, 50, 20, 9, 4, 3
* **MA timeframe**: Daily or Weekly. The MA is computed on the chosen higher timeframe through `request.security`.
* **MA type**: EMA or SMA
* **Years lookback**: 1 to 10 years, default 5. This sets the sample for the median and sigma calculation, `years * 365` bars.
* **Line width**: visual width of the plotted extension series
* **Table**: optional on-chart table that displays the current long run **median** and **sigma** of the extension, with selectable text size
**Fixed parameters in this release**
* **ATR length**: 20 on the daily timeframe
* **ATR type**: classic ATR. ADR percent is not enabled in this version.
---
## Plots and colors
* **Main plot**: “Extension from 50d EMA” by default. Value is in **ATR multiples**.
* **Reference lines**:
* `median` line, black dashed
* +2σ orange, +3σ red
* −2σ blue, −3σ green
---
## How it is calculated
1. **Moving average** on the selected higher timeframe: EMA or SMA of `close`.
2. **Extreme-based distance** from MA, as a percent of price:
* If `close > MA`, use `(high − MA) / close * 100`
* Else, use `(low − MA) / close * 100`
3. **ATR percent** on the daily timeframe: `ATR(20) / close * 100`
4. **ATR multiples**: extension percent divided by ATR percent
5. **Robust center and spread** over the chosen lookback window:
* Center: **median** of the ATR-multiple series
* Spread: **standard deviation** of that series
* Bands: center ± 1σ, 2σ, 3σ, with 2σ and 3σ drawn
This design yields an intuitive unit scale. A value of **+2.0** means price is about 2 ATR above the selected MA by the most stretched side of the current bar. A value of **−3.0** means roughly 3 ATR below.
---
## Practical use
* **Trend continuation**
* Sustained readings near or above **+1σ** together with a rising MA often signal healthy momentum.
* **Mean reversion**
* Spikes into **±2σ** or **±3σ** can identify stretched conditions for fade setups in range or late-trend environments.
* **Regime awareness**
* The **median** moves slowly. When median drifts positive for many months, the market spends more time extended above the MA, which often marks bullish regimes. The opposite applies in bearish regimes.
**Notes**
* The MA can be set to Weekly while ATR remains Daily. This is deliberate, it keeps the normalization stable for most symbols.
* On very short intraday charts, the extension remains meaningful since it references the session’s extreme against a higher-timeframe MA and a daily ATR.
* Symbols with short histories may not fill the lookback window. Bands will adapt as data accrues.
---
## Table overlay
Enable **Table → Show** to see:
* “ATR from \”
* Current **median** and **sigma** of the extension series for your lookback
---
## Recommended settings
* **Swing equities**: 50 EMA on Daily, 5 to 7 years
* **Index trend work**: 200 EMA on Daily, 10 years
* **Position trading**: 20 or 50 EMA on Weekly MA, 5 to 10 years
---
## Interpretation examples
* Reading **+2.7** with price above a rising 50 EMA, near prior highs
* Strong trend extension, consider pyramiding in trend systems or waiting for a pullback if you are a mean-reverter.
* Reading **−2.2** into multi-month support with flattening MA
* Stretch to the downside that often mean-reverts, size entries based on your system rules.
---
## Credits
The concept of measuring stretch from a moving average in ATR units has a rich community history. This implementation and its presentation draw on ideas popularized by **Jeff Sun**, **SugarTrader**, and **Steve D Jacobs**. Thanks to each for their contributions to ATR-based extension thinking.
---
## License
This script and description are distributed under **MPL-2.0**, consistent with the header in the source code.
---
## Changelog
* **v1.0**: Initial public release. Daily ATR normalization, EMA or SMA on D or W timeframe, robust median and sigma bands, optional table.
---
## Disclaimer
This tool is for educational use only. It is not financial advice. Always test on your own data and strategies, then manage risk accordingly.
ATR SL/TPStop Loss Finder ATR
A Stop Loss Finder ATR indicator is a dynamic risk management tool leveraging the Average True Range (ATR) to identify and track optimal stop-loss levels based on current market volatility.
A stop hunt indicator is a technical tool designed to identify potential instances where large market participants, often referred to as "smart money," deliberately move the price to trigger a large number of stop-loss orders, creating a temporary price distortion before reversing the trend. These indicators aim to help traders detect these events to either avoid being stopped out or to enter trades in the direction of the anticipated reversal.
For example, a long wick below support with high volume may signal a bullish stop-hunt , indicating that the price has been driven down to trigger sell-stop orders before reversing upward. Conversely, a long wick above resistance with high volume may signal a bearish stop-hunt , suggesting the price was pushed up to trigger buy-stop orders before reversing downward. The presence of such wicks is often associated with candlestick patterns like hammers or shooting stars.
Unlike fixed stop-losses, this indicator adapts its distance from the current price using a customizable ATR multiplier, ensuring that stop-loss levels are neither too tight (prone to being triggered by normal market noise) nor too wide (exposing capital to excessive risk) . The core function calculates the true range—considering the current high-low range, gaps up, and gaps down—over a user-defined period (typically 14 bars), then applies a multiplier to generate a volatility-adjusted stop-loss distance . This approach allows the indicator to dynamically widen stops during high-volatility periods and tighten them during calm markets, providing a more responsive and context-aware exit strategy.
ORB with Golden Zone FIB targets, Any Timeframe by TenAMTraderDescription:
This indicator is designed to help traders identify key price levels using Fibonacci extensions and retracements based on the Opening Range Breakout (ORB). The levels are visualized as “Golden Zones”, which can serve as potential targets for trades.
Features:
Customizable ORB Timeframe: By default, the ORB is set from 9:30 AM to 9:45 AM EST, but any timeframe can be configured in the settings to fit your trading style.
Golden Zones as Targets: Fibonacci levels are intended to be used as potential profit-taking zones or areas to monitor for reversals, providing a structured framework for intraday and swing trading.
Adjustable Chart Settings: Color-coded levels make it easy to interpret at a glance, and all lines can be customized for personal preference.
Versatile Application: The indicator works across any timeframe, enabling traders to analyze both intraday and multi-day price action.
How to Use:
Ensure Regular Trading Hours (RTH) is enabled on your chart for accurate level calculation.
Observe price action near Golden Zones: a confirmed breakout may indicate continuation, while a pullback could signal a reversal opportunity.
Use the Golden Zones as reference targets for managing risk and planning exits.
Adjust the ORB timeframe and display settings to match your preferred trading style.
Legal Disclosure:
This indicator is provided for educational purposes only and is not financial advice. Trading carries a substantial risk of loss. Users should always perform their own analysis and consult a licensed financial professional before making any trading decisions. Past performance is not indicative of future results.