Uptrick: Volatility Adjusted TrailIntroduction
The "Uptrick: Volatility Adjusted Trail" is a dynamic trailing band indicator. It adapts in real time to changing market conditions by adjusting both to volatility and trend consistency. Inspired by Supertrend-style logic, it enhances traditional approaches by introducing adaptive mechanisms for more context-sensitive behavior in both trending and consolidating environments.
Overview
This indicator combines an exponential moving average (EMA) as its basis with an Average True Range (ATR)-derived multiplier that adjusts dynamically. Unlike fixed-multiplier tools, this indicator modifies its band distances in real time according to volatility expansion and trend persistence. The result is a trailing system that adapts to the prevailing market regime, providing traders with clearer signals for trend bias, stop placement, and potential momentum shifts.
Originality
The script’s originality lies in its multi-layered approach to trail calculation. It introduces a real-time ATR multiplier adjustment driven by two factors: a volatility expansion ratio and a trend persistence model. The expansion ratio compares the current ATR to its moving average, making the indicator more sensitive during volatile conditions and less sensitive during quieter periods. The trend persistence model assesses directional consistency to widen the bands during sustained trends. This dual adjustment method creates a system that evolves with market behavior, making it more responsive and adaptive than static-band or fixed-multiplier alternatives.
Components & Inspiration
This indicator was designed with specific components that work together:
Exponential Moving Average (EMA): Chosen as the central baseline because it responds faster to recent price changes than a simple moving average, providing a more current reference for trailing bands.
Average True Range (ATR): Used as the volatility measure because it accounts for both intraday and gap movement, making it a robust and widely accepted standard for market volatility.
Dynamic Multiplier: The multiplier is adjusted by both volatility expansion and trend persistence to produce bands that tighten during low volatility and widen during consistent trends. This combination was chosen to give the indicator the ability to self-regulate across different market regimes.
Trend Persistence Model: Integrated to assess directional consistency, ensuring the bands expand during strong trends, which can prevent premature stop-outs.
Flip Confirmation Logic: Added to filter out noise by requiring multiple bar closes beyond a band before confirming a state change, reducing false reversals.
For inspiration, the indicator draws on the core idea behind Supertrend—using a baseline and volatility-derived bands to define trailing stop levels. However, while Supertrend uses a fixed ATR multiplier, this indicator introduces a dynamic multiplier system and persistence weighting, making it more adaptive and suited for varying conditions.
Inputs and Parameters
Basis EMA Length
Defines the period for the EMA that serves as the core price reference.
ATR Length
Sets the lookback period for the Average True Range calculation used in band spacing.
Base ATR Mult
The base multiplier applied to ATR before adjustments. Forms the starting scale of the band offset.
Volatility Expansion Sensitivity
Controls how strongly the band spacing reacts to short-term volatility bursts. Higher values create more pronounced band expansions or contractions.
Trend Persistence Window
Determines how many bars are used to calculate directional trend consistency using a smoothed step function.
Persistence Impact
Scales how much influence the trend persistence has on band widening. Values range from 0 (no effect) to 1 (maximum effect).
Min Effective Mult
Sets the minimum value that the adjusted multiplier can reach. Prevents the bands from becoming too narrow.
Max Effective Mult
Sets the maximum value the adjusted multiplier can reach. Prevents the bands from over-expanding during high volatility.
Bars Above/Below to Confirm Flip
Number of consecutive bars required to close above or below the opposing trail before confirming a bullish or bearish flip. Helps reduce noise and false signals.
Show Flip Labels
Enables or disables the display of flip markers on the chart.
Label Size
Allows users to adjust the size of flip labels from Tiny to Huge.
Label ATR Offset
Adjusts the vertical placement of flip labels in relation to the trail using an ATR-based offset.
Features and Logic
EMA Basis: All calculations stem from an EMA that tracks the centerline of price action.
Dynamic ATR Multiplier: The ATR multiplier adjusts in real time based on volatility expansion and trend persistence.
Clamped Multiplier: The adjusted multiplier is limited between user-defined minimum and maximum values to keep the band scale practical.
Upper and Lower Bands: Bands are plotted above and below the EMA using the dynamic multiplier and ATR values.
Trailing Logic: The script uses Supertrend-style trailing logic, updating the active band in the current trend direction and resetting the opposite band.
Trend State Detection: A state variable tracks the current market regime (bullish, bearish, or neutral). Transitions are confirmed only after a user-specified number of bars close beyond the respective bands.
Visual Elements: Trail lines and fill zones are color-coded (bullish cyan, bearish magenta). Candlestick and bar colors match the trend state. Optional flip labels mark confirmed transitions.
Alerts: Built-in alert conditions allow users to receive real-time notifications for bullish or bearish flips.
Usage Guidelines
This indicator can be used for:
Defining context-aware dynamic stop levels that adjust with market behavior.
Identifying trend direction and reversal points based on adaptive logic.
Filtering entry or exit signals during trending vs. consolidating conditions.
Supplementing trade management strategies with responsive visual markers.
Entering long or short positions based on the appearance of flip labels and managing stop losses by following the adaptive trail.
Traders may tune the parameters to suit different trading styles or timeframes. For example, lower ATR and EMA values may suit intraday setups, while longer settings may benefit swing or positional trading.
Summary
The "Uptrick: Volatility Adjusted Trail" provides a flexible, adaptive trailing band system that accounts for both volatility and directional consistency. By combining an EMA baseline with a dynamic ATR multiplier influenced by volatility expansion and trend persistence, it creates a context-sensitive trailing system that aligns with changing market conditions. Customizable confirmation, flip labels, alerts, and dynamic visual cues make it a versatile tool for trend-following, breakout filtering, and trailing stop logic.
Disclaimer
This indicator is provided for educational and research purposes only. It does not constitute financial advice. Trading involves risk, and past performance does not guarantee future results. Always conduct your own analysis and risk management before making trading decisions.
Análise de Tendência
Rebound Sigma Pro - IndicatorOverview
Rebound Sigma Pro is a mean-reversion indicator that detects statistically oversold conditions in trending markets.
It helps traders identify potential short-term rebounds based on momentum exhaustion and volatility-adjusted entry zones.
Concept
The indicator combines two quantitative components:
Short-term momentum to detect short-term exhaustion
Trend filter to ensure setups align with the long-term direction
When a stock in an uptrend becomes temporarily oversold, a limit-entry signal is plotted.
The trade is then tracked until short-term conditions normalize or a time-based exit occurs.
Visual Signals
Green Triangle: Suggests placing a limit order for the next session
Green Circle: Confirms entry was filled
Red Triangle: Signals an exit for the next session’s open
Orange Background: Pending order
Green Background: Position active
Red Background: Exit phase
Yellow Line: Entry reference price
User Inputs
Limit Entry (% below previous close) – Default 1 %
Use Limit Entry – Switch between limit or market entries
Enable Time Exit – Optional holding-period constraint
Maximum Holding Days
All other internal parameters (momentum length, filters) are pre-configured.
Alerts
Limit Order Signal: New setup detected
Entry Confirmed: Order filled
Exit Signal: Exit expected next day
Usage
Designed for liquid equities and ETFs
Works best in confirmed uptrends
Backtesting encouraged to adapt parameters per symbol and timeframe
Notes
Not an automated strategy; manual order execution required
Past behavior does not imply future performance
Always apply sound position sizing and risk management
Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice or performance assurance.
Rebound Sigma Pro - StrategyOverview
Rebound Sigma Pro is a mean-reversion indicator that detects statistically oversold conditions in trending markets.
It helps traders identify potential short-term rebounds based on momentum exhaustion and volatility-adjusted entry zones.
Concept
The indicator combines two quantitative components:
Short-term momentum to detect short-term exhaustion
Trend filter to ensure setups align with the long-term direction
When a stock in an uptrend becomes temporarily oversold, a limit-entry signal is plotted.
The trade is then tracked until short-term conditions normalize or a time-based exit occurs.
Visual Signals
Green Triangle: Suggests placing a limit order for the next session
Green Circle: Confirms entry was filled
Red Triangle: Signals an exit for the next session’s open
Orange Background: Pending order
Green Background: Position active
Red Background: Exit phase
Yellow Line: Entry reference price
User Inputs
Limit Entry (% below previous close) – Default 1 %
Use Limit Entry – Switch between limit or market entries
Enable Time Exit – Optional holding-period constraint
Maximum Holding Days
All other internal parameters (momentum length, filters) are pre-configured.
Alerts
Limit Order Signal: New setup detected
Entry Confirmed: Order filled
Exit Signal: Exit expected next day
Usage
Designed for liquid equities and ETFs
Works best in confirmed uptrends
Backtesting encouraged to adapt parameters per symbol and timeframe
Notes
Not an automated strategy; manual order execution required
Past behavior does not imply future performance
Always apply sound position sizing and risk management
Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice or performance assurance.
Uptrick: Relative Strength Rotation SystemIntroduction
The Uptrick: Relative Strength Rotation System is an indicator engineered to implement a regime-aware tactical allocation strategy across a predefined set of user-specified assets. It visualizes a simulated equity curve produced by a closed, managed rotation engine. The system is designed to identify relative strength relationships dynamically and rotate into stronger-performing assets, while offering an optional fallback into a defensive state when market conditions are deemed unfavorable by the logic.
Overview
This indicator allocates capital by continuously evaluating the relative strength between all asset pairs within the selected group. Unlike simplistic momentum models or rank-based selectors, this system uses internally calculated scores that compare each asset across multiple dimensions, forming a comprehensive decision matrix. These scores are evaluated through a regime-aware layer that determines whether the system should remain invested or move into an idle allocation. The rotation logic is implemented through a rebalancing structure that maintains exposure to a single asset at any time, or transitions into a fallback asset such as cash or PAXG based on internal conditions. Outputs include a dynamically colored equity curve, context-sensitive labels, and optional overlays comparing buy-and-hold performance of the selected assets.
Originality
The indicator utilizes a scoring matrix based on custom asset-to-asset comparative ratios, resulting in a relational framework that evaluates assets in the context of each other rather than in isolation. Each asset is analyzed through multiple statistical dimensions, including trend strength and normalized deviation using Z-score calculations. These metrics form the foundation of an adaptive matrix used to derive consensus leadership. A key differentiator lies in the optional routing of idle allocations to PAXG—a tokenized gold asset—offering a non-cash defensive alternative that introduces both diversification and risk modulation not typically seen in rotation models. The engine also includes an override layer that filters decisions through market state awareness, adding tactical discipline during ambiguous or bearish regimes. Taken together, these features form a self-contained rotation mechanism with multiple embedded controls and fallback logic, all of which are abstracted from the user.
Inputs and Features
Exponential Length (EMA Length)
Specifies the smoothing length used by one of the internal scoring models. Lower values allow for more responsive asset comparisons, while longer values smooth out short-term volatility in score changes.
Z Score
Controls the statistical lookback length used for normalized relative comparisons. This Z-score is a cornerstone of the system’s comparative matrix, standardizing inter-asset ratio behaviors to detect statistically significant deviations from recent behavior. It allows the rotation engine to isolate and prioritize sustained leadership across assets, regardless of price volatility.
Rebalance Every N Bars
Sets how frequently the system evaluates potential changes in leadership. This controls the cadence of reallocation and can be tuned for faster or slower responsiveness.
When Bearish / Neutral, go to
Lets the user select how the system behaves during non-confirmed or bearish conditions. It can either route to a flat cash-equivalent state or into a user-defined defensive asset (such as PAXG), introducing an added layer of optional protection.
Cash Filter
Activates an override that forces the system into an idle state during unfavorable market regimes, even if a leader is otherwise present. This regime-aware mechanism adds another layer of conditional control to mitigate exposure risk.
Start Date
Defines the point in history from which the equity simulation begins. All calculations and equity values prior to this point are excluded.
Asset Inputs (Asset 1 to Asset 4)
Allow the user to specify up to four assets to be evaluated within the rotation universe. These may include crypto, forex, or other tradable symbols supported by TradingView.
PAXG Fallback Asset
Specifies the asset used as a fallback when the idle state is active and the defensive mode is set to PAXG rather than cash.
Color Settings
Users can customize the chart color palette for each asset and idle condition for enhanced clarity.
HODL Curve Toggles
Enable buy-and-hold equity curves for each input asset to be plotted for direct performance comparison with the system’s output.
Simple Mode
Reduces visual noise by simplifying the chart’s appearance and removing optional elements.
Background Color and Shadow Equity Fill
Offer additional styling options that reflect the system's current allocation, enhancing chart readability.
COLORED EQUITY CURVE - PAXG
COLORED EQUITY CURVE - CASH
SYSTEM
Current System Text Color
Allows further customization of label text for visibility across different asset themes.
Summary
The Uptrick: Relative Strength Rotation System is a rotation engine that leverages a proprietary scoring matrix to simulate tactical asset allocation. It analyzes inter-asset behavior through pairwise ratio metrics and statistically normalized scoring methods, enabling it to identify leadership dynamics within a defined universe. The inclusion of PAXG as a defensive fallback, regime-aware cash filtering, and customizable rebalancing cadence gives the system adaptability beyond traditional relative strength models. Users are provided with transparent visual feedback through an equity curve, contextual labels, buy-and-hold overlays, and real-time equity statistics. The system is not designed to disclose its internal mechanics, but it enables full visualization of its output and decisions for comparative analysis.
Disclaimer
This script is intended solely for educational and informational purposes. It does not constitute financial advice, trading signals, or an offer to buy or sell any financial instrument. Trading and investing carry risk, and past performance does not guarantee future outcomes. Users should perform their own research and consult a licensed financial advisor before making trading decisions.
Cycle VTLs – with Scaled Channels "Cycle VTLs – with Scaled Channels" for TradingView plots Valid Trend Lines (VTLs) based on Hurst's Cyclic Theory, connecting consecutive price peaks (downward VTLs) or troughs (upward VTLs) for specific cycles. It uses up to eight Simple Moving Averages (SMAs) (default lengths: 25, 50, 100, 200, 400, 800, 1600, 1600 bars) with customizable envelope bands to detect pivots and draw VTLs, enhanced by optional parallel channels scaled to envelope widths.
Key Features:
Valid Trend Lines (VTLs):
Upward VTLs: Connect consecutive cycle troughs, sloping upward.
Downward VTLs: Connect consecutive cycle peaks, sloping downward.
Hurst’s Rules:
Connects consecutive cycle peaks/troughs.
Must not cross price between points.
Downward VTLs:
No longer-cycle trough between peaks.
Invalid if slope is incorrect (upward VTL not up, downward VTL not down).
Expired VTLs: Historical VTLs (crossed by price) from up to three prior cycle waves.
SMA Cycles:
Eight customizable SMAs with envelope bands (offset × multiplier) for pivot detection.
Channels:
Optional parallel lines around VTLs, width set by channelFactor × envelope half-width.
Pivot Detection:
Fractal-based (pivotPeriod) on envelopes or price (usePriceFallback).
Customization:
Toggle cycles, VTLs, and channels.
Adjust SMA lengths, offsets, colors, line styles, and widths.
Enable centered envelopes, slope filtering, and limit stored lines (maxStoredLines).
Usage in Hurst’s Cyclic TheoryAnalysis:
VTLs identify cycle trends; upward VTLs suggest bullish momentum, downward VTLs bearish.
Price crossing below an upward VTL confirms a peak in the next longer cycle; crossing above a downward VTL confirms a trough.
Trading:
Buy: Price bounces off upward VTL or breaks above downward VTL.
Sell: Price rejects downward VTL or breaks below upward VTL.
Use channels for support/resistance, breakouts, or stop-loss/take-profit levels.
Workflow:
Add indicator on TradingView.
Enable desired cycles (e.g., 50-bar, 1600-bar), adjust pivotPeriod, channelFactor, and showOnlyCorrectSlope.
Monitor VTL crossings and channels for trade signals.
NotesOptimized for performance with line limits.
Ideal for cycle-based trend analysis across markets (stocks, forex, crypto).
Debug labels show pivot counts and VTL status.
This indicator supports Hurst’s Cyclic Theory for trend identification and trading decisions with flexible, cycle-based VTLs and channels.
Use global variable to scale to chart. best results use factors of 2 and double. try 2, 4, 8, 16...128, 256, etc until price action fits 95% in smallest cycle.
Continuation Suite v1 — 5m/15mContinuation Suite v1 — 5m/15m (Non-Repainting, S/R + Trend Continuation)
What it does
Continuation Suite v1 is a practical intraday toolkit that combines non-repainting trend-continuation signals with auto-built Support/Resistance (S/R) from confirmed pivots. It’s designed for fast, liquid names on 5m charts with an optional 15m higher-timeframe (HTF) overlay. You get: stacked-EMA bias, disciplined pullback+reclaim entries, optional volume/volatility gates, a “Strong” signal tier, solid S/R lines or zones, and a compact dashboard for fast reads.
⸻
Why traders use it
• Clear bias using fast/mid/slow EMA stacking.
• Actionable entries that require a pullback, a reclaim, and (optionally) a minor break of prior extremes.
• Signal quality gates (volume vs SMA, ATR%, ADX/DI alignment, EMA spacing, slope).
• Non-repainting logic when “Confirm on Close” = ON. Intrabar previews show what’s forming, but confirmed signals only print on bar close.
• S/R that matters: confirmed-pivot lines or ATR-sized zones, optional HTF overlay, and auto de-dup to avoid clutter.
⸻
Signal construction (no magic, just rules)
Bullish continuation (base):
1. Trend: EMA fast > EMA mid > EMA slow
2. Pullback: price pulls into the stack (lowest low or close vs EMA fast/mid over a lookback)
3. Reclaim: close > EMA fast and close > open
4. Break filter (optional): current bar takes out the prior bar’s high
5. Filters: volume > SMA (if enabled) and ATR% ≤ max (if enabled)
6. Cooldown: a minimum bar gap between signals
Bearish continuation (base): mirror of the above.
Strong signals: base conditions plus ADX ≥ threshold, DI alignment (DI+>DI- for longs; DI->DI+ for shorts), minimum EMA-spacing %, and minimum fast-EMA slope.
Reference stops:
• Longs: lowest low over the pullback lookback
• Shorts: highest high over the pullback lookback
Alerts are included for: Bullish Continuation, Bearish Continuation, STRONG Bullish, STRONG Bearish.
⸻
S/R engine (current TF + optional HTF)
• Builds S/R from confirmed pivots only (left/right bars).
• Choose Lines (midlines) or Zones (ATR-sized).
• Zones merge when a new pivot lands near an existing zone’s mid (ATR-scaled epsilon).
• Touches counter tracks significance; you can require a minimum to draw.
• HTF overlay (default 15m) draws separate lines/zones with tiny TF tags on the right.
• De-dup option hides current-TF zones that sit too close to HTF zones (ATR-scaled), reducing overlap.
• Freeze on Close (optional) keeps arrays stable intrabar; snapshots show levels immediately as bars open.
⸻
Presets
• Auto: Detects QQQ-like tickers (QQQ, QLD, QID) or SoFi; else defaults to Custom.
• QQQ: Tighter ATR% and EMA settings geared to index-ETF behavior.
• SoFi: Wider ATR allowances and longer mid/slow for single-name behavior.
• Custom: Expose all key inputs to tune for your product.
⸻
Dashboard (top-right)
• Preset in use
• Bias (Bullish CONT / Bearish CONT / Neutral)
• Strong (Yes/No)
• Volatility (ATR% bucket)
• Trend (ADX bucket)
• HTF timeframe tag
• Volume (bucket or “off”)
• Signals mode (Close-Confirmed vs Intrabar)
⸻
Inputs you’ll actually adjust
Trend/Signals
• Fast/Mid/Slow EMA lengths
• Pullback lookback, Min bars between signals
• Volume filter (vol > SMA N)
• ATR% max filter (cap excessive volatility)
• Require break of prior bar’s high/low
• “Strong” gates: min EMA slope, min EMA spacing %, ADX length & threshold
Support/Resistance
• Lines vs Zones
• Pivot left/right bars
• Extend left/right (bars)
• Max pivots kept (current & HTF)
• Zone width (× ATR), Merge epsilon (× ATR), Min gap (× ATR)
• Min touches, Max zones per side near price
• De-dup current TF vs HTF (× ATR)
Repainting control
• Confirm on Close: when ON, signals/SR finalize on bar close (non-repainting)
• Freeze on Close: freeze S/R intrabar with snapshot updates
• Show previews: translucent intrabar labels for what’s forming
⸻
How to use it (straightforward)
1. Load on 5-minute chart (baseline). Keep Confirm on Close ON if you hate repainting.
2. Use Bias + Strong + S/R context. If a long prints into HTF resistance, you have information.
3. Manage risk off the reference stop (pullback extreme). If ATR% reads “Great,” widen expectations; if “Poor,” size down or pass.
4. Alerts: wire the four alert types to your workflow.
⸻
Notes and constraints
• Designed for liquid symbols. Thin books and synthetic “volume” will degrade the volume gate.
• S/R is pivot-based. On very choppy tape, touch counts help. Increase min touches or switch to Lines to declutter.
• If your chart timeframe isn’t 5m, behavior changes because lengths are in bars, not minutes. Tune lengths accordingly.
⸻
Disclaimers
This is a research tool. No signals are guaranteed. Markets change, outliers happen, slippage is real. Nothing here is financial advice—use your own judgment and risk management.
⸻
Author: DaddyScruff
License: MPL-2.0 (Mozilla Public License 2.0)
Sri-Williams R % with CTF📊 Sri – Williams %R with Custom Timeframe (CTF)
Developed by Venkat Raman (Sri)
📘 Overview
The Sri – Williams %R with Custom Timeframe (CTF) is a refined version of the classic Williams %R oscillator, enhanced with multi-timeframe capability and adaptive signal smoothing.
This indicator measures overbought and oversold conditions while also incorporating trend alignment across different timeframes — making it a valuable tool for both momentum analysis and trend confirmation.
By applying custom timeframe (CTF) inputs, traders can observe higher or lower timeframe Williams %R values within their current chart, helping align trade entries with broader market direction.
⚙️ Key Features
✅ Custom Timeframe (CTF) Input:
View Williams %R from any timeframe (e.g., 5m, 15m, 1H, 1D) directly on your current chart for multi-timeframe confirmation.
✅ Dynamic Color Coding:
Green Line: Bullish bias (above -50)
Red Line: Bearish bias (below -50)
✅ Smoothed EMA Overlay:
An optional EMA line smooths out the %R curve, making it easier to identify sustained momentum shifts and filter out noise.
✅ Overbought / Oversold Zones:
Classic reference zones help identify exhaustion or continuation signals:
Overbought: -20
Oversold: -80
Neutral midpoint: -50
✅ Background Fill:
Gray shading between -20 and -80 levels for quick visual interpretation of trading zones.
🧩 Inputs Explained
Input Description
Williams %R Length Period used for %R calculation (default: 100)
EMA Length Smoothing period for the signal line (default: 50)
Custom Timeframe (CTF) Allows you to select the timeframe on which Williams %R is calculated
🟩 Interpretation
%R > -50 (Green): Indicates bullish momentum or uptrend strength.
%R < -50 (Red): Indicates bearish momentum or downtrend strength.
Crossing -50: Often signals a shift in directional bias.
Approaching -20: Potential overbought zone.
Approaching -80: Potential oversold zone.
Combine this signal with price action, volume, or volatility-based tools for stronger confirmation.
🔍 How It Works
Calculates highest and lowest price values over the selected length.
Determines the current price’s position within that range (from 0 to -100).
Applies custom timeframe aggregation to fetch %R data from higher or lower intervals.
Optionally smooths %R with an EMA filter for clarity and reduced whipsaw signals.
🎨 Color Scheme
Element Color Meaning
%R Line 🟢 Green / 🔴 Red Above or below -50 baseline
EMA Line 🩵 Aqua Smoothed signal reference
Background Fill ⚪ Light Gray Oscillator zone between -20 and -80
🧠 Usage Tips
Use a higher timeframe CTF (e.g., 1H or 1D) while trading shorter intervals to align with dominant market trends.
Combine with volume surge or trend-based indicators (e.g., ADX, RTI, or Supertrend) for momentum confirmation.
Crossovers between %R and EMA can highlight early reversals or trend continuations.
⚡ Advantages
Multi-timeframe adaptable
Noise-filtered momentum view
Visual trend alignment tool
Straightforward and clean presentation
📜 Formula
\text{Williams %R} = 100 \times \frac{(Close - Highest(High, n))}{(Highest(High, n) - Lowest(Low, n))}
Values range between 0 and -100, with overbought levels near -20 and oversold near -80.
🏁 Summary
The Sri–WR (Williams %R with CTF) is a multi-timeframe momentum indicator built for clarity, flexibility, and trend precision. It retains the core logic of Williams %R but enhances its utility for professional analysis and adaptive trend alignment.
VIX Gauge Overlay (Table + Label + Alerts) by Carlos C.🚨 Official 2025 Update – Corrected VIX Ranges 🚨
This overlay shows the live VIX level with both a table and a large label, including alerts for HIGH FEAR and PANIC zones.
✅ Official ranges applied:
- LOW: 13 – 15
- LIGHT FEAR: 15 – 18
- TRANSITION: 18 – 21
- HIGH FEAR: 21 – 25
- PANIC: ≥ 25
Features:
- Table with VIX ranges and live highlight
- Large optional label with current value
- Color schemes (Normal / Inverted)
- Alerts when entering/exiting HIGH FEAR (21) and PANIC (25)
⚠️ Note: Previous version is deprecated. This v3.1 is the official and corrected release.
Sri - Relative Trend Index (RTI) with CTF🧭 Sri - Relative Trend Index (RTI) with Custom Timeframe (CTF)
Developed by Venkat Raman (Sri)
📘 Overview
The Relative Trend Index (RTI) is a proprietary oscillator designed to measure trend strength, direction, and relative positioning within a smoothed statistical band.
Unlike standard oscillators, RTI adapts dynamically using custom timeframe data (CTF), allowing traders to evaluate multi-timeframe trend momentum and reversals more effectively.
The indicator uses standard deviation envelopes and quantile-based sensitivity to calculate upper and lower dynamic bands, then measures the relative position of the current price within those bands — resulting in a smoothed, normalized trend index scaled from 0 to 100.
⚙️ Key Features
✅ Custom Timeframe Input (CTF):
Analyze RTI on any timeframe (e.g., 60m, 120m, 1D) while viewing on lower or higher charts.
✅ Color-coded RTI Line:
Green when RTI is above the 50 baseline → bullish trend momentum.
Red when RTI is below the 50 baseline → bearish trend momentum.
✅ Adaptive Smoothing:
Smoothing automatically adjusts based on sensitivity.
Higher sensitivity = smoother RTI curve (reduces noise).
✅ Dynamic Quantile Calculation:
RTI uses quantile-based ranking of upper and lower volatility bands, making it adaptive to market volatility and minimizing lag.
✅ Overbought/Oversold & Mid Levels:
Visual reference zones for identifying potential exhaustion or reversal regions:
Overbought: Default 80
Oversold: Default 20
Midline: 50
✅ Smoothed Signal Line:
Provides an additional reference curve for crossover signals and confirmation.
✅ Visual Clarity:
Clean color-coded plots
Overbought/Oversold fill shading
Adaptive smoothing curve overlay
✅ Alert Conditions Included:
Ready-to-use alerts for:
Crossing overbought/oversold levels
Crossing midline (50)
Signal crossovers between RTI and smoothed line
🧩 Inputs Explained
Input Description
Custom Timeframe (CTF) Selects timeframe used for RTI calculation (e.g., 60, 120, D).
Trend Length Period used to calculate trend envelope range.
Sensitivity Adjusts responsiveness (lower = faster, higher = smoother).
Base Smoothing Length Controls EMA smoothing of the signal line.
Overbought / Oversold Thresholds for reversal or momentum exhaustion zones.
🟩 Interpretation
RTI > 50 (Green): Uptrend or bullish bias; stronger if rising toward 80+.
RTI < 50 (Red): Downtrend or bearish bias; stronger if falling toward 20 or below.
Crossing 50: Often indicates a shift in momentum.
Signal crossover (RTI vs. EMA): Potential early entry/exit trigger.
🔔 Built-In Alerts
RTI crossing Overbought / Oversold
RTI crossing 50 baseline
RTI crossing Smoothed Signal Line
🧠 Suggested Uses
Combine with volume, price structure, or volatility-based tools for confirmation.
Use higher-timeframe RTI (via CTF) as a trend filter and lower-timeframe RTI for entry timing.
Ideal for swing traders and intraday analysts seeking adaptive trend strength confirmation.
🎨 Color Scheme
Element Color Meaning
RTI Line 🟢 Green / 🔴 Red Above or below 50 baseline
Smoothed RTI 🔵 Blue (light) Reference EMA of RTI
Background Fill 🩵 Soft Teal Highlights oscillator zone
💡 Note
This is a proprietary adaptation of the Relative Trend Index concept by Sri (Venkat Raman), optimized for flexibility, visual clarity, and dynamic responsiveness across multiple timeframes.
ZZ RangeHappy Trading!
This is a real-time range detection indicator. Based on previous supply and demand levels, it classifies each new bar as Up, Down, or Range.
New supply and demand levels are typically detected within two bars. The indicator can be used as a filter and supports indicator-on-indicator functionality.
Intro
Concept
Usage and Settings Menu
Declaration for TradingView House Rules on Script Publishing
Disclaimer
1. Concept
Based on a variation of the Bilson-Gann Algorithm, this indicator calculates local supply and demand levels and determines whether the current price is:
Between those levels → Ranging
Above → Uptrending
Below → Downtrending
Less significant supply and demand levels are filtered out using a user-adjustable intensity setting.
2. Usage and Settings Menu
There are four settings available:
Indicator Timeframe – Display results from higher timeframes on the lower timeframe chart.
Range Detection Rule – Choose whether a bar must be fully inside supply and demand zones to be considered ranging, or if touching the zone is sufficient.
Bar Structure Basis – Select whether wicks or bodies of bars are used to calculate supply and demand levels.
Rule to set S&D – Choose among three rules defining how often new supply and demand levels are calculated. Each rule adjusts the sensitivity and responsiveness of detection.
Alert Signals Available:
Trend Signal 1 = Uptrend, 0 = Ranging, -1 = Downtrend
last supply Level
last demand Level
3. Declaration for TradingView House Rules on Script Publishing
The unique feature of ZZ Range is its real-time range detection capability.
This script is closed-source and invite-only, to support and compensate for months of development work.
4. Disclaimer
Trading involves risk, and losses can and do occur. This script is intended for informational and educational purposes only. All examples are hypothetical and not financial advice.
Decisions to buy, sell, hold, or trade securities, commodities, or other assets should be based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Use this script at your own risk. It may contain bugs, and I cannot be held responsible for any financial losses resulting from its use.
Cheers!
52WH/last52WH/ATH/lastATHThis indicator calculates and displays four values:
First, it calculates the current 52-week high and displays it as a line and in a table at the top right with the name, date, and price.
Corresponding color markings are also displayed on the price scale.
Next, the 52-week high that is at least 3 months ago is determined.
The corresponding candle is also labeled with a date. This past high is also displayed as a line, on the price scale, and in the table.
Next, the current all-time high is determined and also displayed as a line, on the price scale, and in the table.
Finally, the current all-time high that was valid 3 months ago is determined and also displayed as a linewith a label at the corresponding bar, in the price scale, and in the table.
All display values can be switched on or off in the view, and the corresponding colors of the displays can also be freely selected.
(This script was developed by J. Heina, jochen.heina@gmail, in collaboration with the ChatGPT tool, taking into account the rules developed for trading by Mario Lüddemann Investments GmbH).
NQ → NAS100 Converter by Dr WThis indicator allows traders to quickly and accurately convert stop levels from NQ (E-mini Nasdaq futures) to NAS100 (CFD) values, helping users who trade across different instruments to manage risk consistently.
Key Features:
Real-time Price Conversion:
Displays the current NQ futures price and the corresponding NAS100 price on your chart, updated every bar.
Stop Distance Conversion:
Converts a user-defined stop distance in NQ points into the equivalent NAS100 stop level using proportional scaling based on current market prices.
Customizable Labels:
Choose between Candle-attached labels (appearing near the bar) or Chart-fixed labels (HUD style).
Adjust label position, background color, text color, and label style (left, right, center).
Flexible Display Options:
Show/hide NQ price, NAS100 price, and converted stop independently.
Perfect for traders who want a quick visual reference without cluttering the chart.
Trading Direction Support:
Select Long or Short trades, and the stop conversion automatically adapts to the trade direction.
How It Works:
The indicator requests the latest NQ and NAS100 prices at your chart’s timeframe.
It calculates the NAS100 stop using the formula:
NAS_Stop = NAS_Price ± (Stop_NQ_Points / NQ_Price * NAS_Price)
+ is used for short trades, - for long trades.
The converted stop, along with the underlying prices, is displayed according to your label settings.
Use Cases:
Risk management for cross-instrument traders.
Quickly visualizing equivalent stops when trading NQ futures vs NAS100 CFDs.
An educational tool to understand proportional stop sizing between instruments.
TradingView Policy Compliance Notes:
The indicator does not provide trading advice or signals; it only performs calculations and visualizations.
It does not execute trades or connect to brokerage accounts.
All values displayed are informational only; users should independently verify stop levels before placing trades.
Options levelsOverview
Options Levels 🎯 plots 13 key institutional and options-based levels directly on your chart — including Call Wall, Put Wall, Gamma Flip, Whales Pivot, five Whale levels, and Sigma deviation bands (σ¹ / σ²).
It’s designed for both intraday and swing traders, offering a clean visual structure with elegant emoji labels, flexible visibility controls, and precise right-edge extensions for each line.
✨ Key Features
Single structured input with 13 ordered levels:
CallWall, PutWall, GammaFlip, Whales Pivot, Whale1..Whale5, Upperσ1, Upperσ2, Lowerσ1, Lowerσ2
Expressive emoji labels (🟢, 🔴, ⚖️, 🌑, 🐋, σ¹/σ²) optimized for dark themes.
Right-edge alignment: each line extends exactly to its label — no infinite lines.
Group visibility toggles:
• Critical Levels → Call Wall, Put Wall, Gamma Flip, Whales Pivot
• Whale Levels → Whale 1–5
• Sigma Bands → Upper/Lower σ¹ and σ²
Dynamic line-length multipliers that emphasize key levels.
Built-in alert conditions:
• Price crossing above the Call Wall
• Price crossing below the Put Wall
⚙️ Inputs & Settings
📋 Level List (string) : comma-separated list of 13 numeric values.
Example:
🎨 Appearance
• Base line length (bars)
• Label visibility toggle
• Line thickness
• Extend line and label to the right
• Distance (bars) between last candle and label
👁️ Visibility Controls
• Toggle Critical, Whale, or Sigma levels independently
🚀 How to Use
Paste your list of 13 ordered levels into the input field.
Adjust base length and thickness according to your timeframe.
Enable “Extend to the right” to position labels neatly beyond the last candle.
Use visibility toggles to focus on specific level groups (e.g., hide Whale Levels for short-term setups).
Optionally enable alerts to track price breakouts above/below Call and Put Walls.
The plotted levels are derived from aggregated options flow data, institutional positioning, and volatility-based deviations (σ). They serve as reference zones rather than predictive signals, helping visualize where liquidity and dealer hedging pressure may cluster.
📖 Level Definitions
Call Wall 🟢 — The strike with the highest call open interest; potential resistance area.
Put Wall 🔴 — The strike with the highest put open interest; potential support area.
Gamma Flip ⚖️ — Level where total gamma exposure changes sign; may reflect a shift in dealer hedging behavior.
Whales Pivot 🌑 — Represents the average institutional positioning from the previous trading day, reflecting where large option flows were most concentrated.
Whale Levels 🐋 — High-premium or large-volume strikes typically linked to institutional activity.
Upper σ¹ / σ² 📈 — One and two standard deviations above spot; potential overextension zones.
Lower σ¹ / σ² 📉 — One and two standard deviations below spot; potential mean-reversion zones.
Levels are manually input by the user. This script is a visual reference, not a predictive model.
⚠️ Notes
Levels are user-provided (not calculated by this script).
The indicator does not issue buy/sell signals or provide performance guarantees.
Designed purely as a visual aid for contextual market reference.
Optimized with barstate.islast for performance (draws only at the latest bar).
Disclaimer:
This indicator is for educational and visual purposes only. It does not generate buy/sell signals or guarantee future results. User-provided levels are meant for contextual reference only.
Developed for traders who rely on market structure and options flow context. Feedback and suggestions are welcome.
Traders Club RSI, EMA Strategy 🔻 Arun Gold 3H Power Indicator 🔻
Precision-Based Smart Sell System for Gold (XAU/USD)
💡 Overview
This indicator is specifically designed for Gold (XAU/USD) and delivers best results on the 3-Hour Timeframe (3H TF).
It is a Smart Money Logic-based Sell Confirmation System, combining institutional structure and candle behavior to generate highly accurate bearish signals.
⚙️ Technical Foundation
The indicator uses multiple advanced confirmations:
📉 EMA Trend Filter → Confirms downtrend
💪 RSI Overbought Rejection → Momentum reversal signal
📊 MACD Bearish Cross → Confirms trend strength
🕯️ Bearish Candle Structure → Price action validation
When all conditions align, a clear 🔻 Sell Signal is plotted on the chart.
💎 Hidden Feature
This indicator includes a hidden feature that activates only when the correct market structure forms.
It helps reduce false signals and increases accuracy without being visible on the chart — fully automated internal logic.
📆 Recommended Settings
Symbol: XAU/USD (Gold)
Timeframe: 3-Hour (3H)
Market: Forex / Commodity
Mode: Sell-Only Confirmation Indicator
Performance: Best precision and consistency on 3H TF
📈 How to Use
Select XAU/USD on chart and set 3H timeframe.
Add the indicator to the chart.
Wait for the 🔻 Sell Signal and confirm the market structure after candle close.
Take entry according to your risk management.
⚠️ Disclaimer
This indicator is for educational and analytical purposes only.
No system is 100% accurate — always backtest and demo trade before using in real trading.
💬 Credits
Developed by Ajay Sahu (India)
Based on Institutional & Smart Money Logic
Best results on 3H TF
Hidden Algorithm for XAU/USD traders
Arun R5.41🔻 Arun Gold 3H Power Indicator 🔻
Precision-Based Smart Sell System for Gold (XAU/USD)
💡 Overview
This indicator is specifically designed for Gold (XAU/USD) and delivers best results on the 3-Hour Timeframe (3H TF).
It is a Smart Money Logic-based Sell Confirmation System, combining institutional structure and candle behavior to generate highly accurate bearish signals.
⚙️ Technical Foundation
The indicator uses multiple advanced confirmations:
📉 EMA Trend Filter → Confirms downtrend
💪 RSI Overbought Rejection → Momentum reversal signal
📊 MACD Bearish Cross → Confirms trend strength
🕯️ Bearish Candle Structure → Price action validation
When all conditions align, a clear 🔻 Sell Signal is plotted on the chart.
💎 Hidden Feature
This indicator includes a hidden feature that activates only when the correct market structure forms.
It helps reduce false signals and increases accuracy without being visible on the chart — fully automated internal logic.
📆 Recommended Settings
Symbol: XAU/USD (Gold)
Timeframe: 3-Hour (3H)
Market: Forex / Commodity
Mode: Sell-Only Confirmation Indicator
Performance: Best precision and consistency on 3H TF
📈 How to Use
Select XAU/USD on chart and set 3H timeframe.
Add the indicator to the chart.
Wait for the 🔻 Sell Signal and confirm the market structure after candle close.
Take entry according to your risk management.
⚠️ Disclaimer
This indicator is for educational and analytical purposes only.
No system is 100% accurate — always backtest and demo trade before using in real trading.
💬 Credits
Developed by Ajay Sahu (India)
Based on Institutional & Smart Money Logic
Best results on 3H TF
Hidden Algorithm for XAU/USD traders
Price Trendlines + Break Signals█ OVERVIEW
The "Price Trendlines + Break Signals" indicator is a technical analysis tool that automatically draws trendlines based on price pivot points and detects breakout signals. Designed for traders seeking precise market signals, the indicator identifies key pivot points, draws trendlines (resistance and support), and generates breakout signals with background highlighting. It offers flexible settings and alerts for breakout signals.
█ CONCEPTS
The indicator was created to provide traders with an alternative source of signals based on trendlines. Breakouts and bounces from trendlines can signal a trend change or the end of a correction. Combining these signals with other technical analysis tools can form the basis for building diverse trading strategies.
█ FEATURES
-Pivot Point Calculation: The indicator identifies pivot points (pivot high and pivot low) based on the closing price, with configurable left and right bars for pivot detection. Setting a higher number of bars results in fewer but more significant trendlines, with a delay corresponding to the specified length. Lower values generate more trendlines, but they are less significant. Crossovers are signaled only after the trendline is drawn, so sometimes no signals appear on crossed trendlines—this indicates the price passed through the line before it was detected.
- Trendlines: Draws trendlines connecting price pivot points—upper lines for downtrends (resistance) and lower lines for uptrends (support). Lines can be extended by a specified number of bars (default: 50).
- Tolerance Margin: Trendlines are widened by a tolerance margin, calculated using the average candle body size over a specified period and its multiplier. Reducing the multiplier to zero leaves only the trendline without a margin. Breaking this zone is a condition for generating signals.
- Breakout Signals: Generates signals when the price breaks through a trendline (bullish for upper lines, bearish for lower lines), with background highlighting for signal confirmation.
Alerts: Built-in alerts for:
- Upper trendline breakout (bullish signal).
- Lower trendline breakout (bearish signal).
Customization: Allows adjustment of pivot parameters, trendline extension length, tolerance margin, line colors, fills, and signal background transparency.
█ HOW TO USE
Adding the Indicator: Add the indicator to your TradingView chart via the Pine Editor or Indicators menu.
Configuring Settings:
- Left Bars for Pivot: Number of bars back for detecting pivots (default: 10).
- Right Bars for Pivot: Number of bars forward to confirm pivots (default: 10).
- Extend past 2nd pivot: Number of bars to extend the trendline after the second pivot (default: 50, 0 = no extension).
- Average Body Periods: Period for calculating the average candle body size used for the tolerance margin (default: 100).
- Tolerance Multiplier: Multiplier for the tolerance margin based on the average candle body size (default: 1.0).
Colors and Style:
- Upper trendline (resistance): default red.
- Lower trendline (support): default green.
- Line fills: colors with transparency (default 70).
- Signal background: green for bullish signals, red for bearish signals (default transparency 85).
Interpreting Signals:
- Trendlines: Upper lines (red) indicate a downtrend, lower lines (green) indicate an uptrend. Signals appear after a trendline breakout with the tolerance margin. Each trendline generates only one breakout signal, though it may still act as resistance or support for the price.
- Breakout Signals: Green background indicates an upper trendline breakout (bullish), red background indicates a lower trendline breakout (bearish).
- Alerts: Set up alerts in TradingView for trendline breakout signals.
Combining with Other Tools: Use with support/resistance levels, Fibonacci levels, RSI, pivot points, or FVG (Fair Value Gap) for signal confirmation.
█ APPLICATIONS
The "Price Trendlines + Break Signals" indicator is designed to identify trends and potential reversal points, supporting both trend-following and contrarian strategies:
- Trend Confirmation: Trendlines indicate the direction of the price trend, and bounces from them may signal the end of a correction.
- Reversal Strategies: Breakout signals can be used as cues to enter positions in anticipation of a trend change or correction.
- Noise Filtering: The tolerance margin reduces false signals, enhancing reliability.
█ NOTES
- Trendline crossovers are signaled only after the trendline is drawn, so sometimes no signals appear on crossed trendlines—this indicates the price passed through the line before it was detected.
- Each trendline generates only one breakout signal, though it may still act as a level of support or resistance for the price.
- Setting a higher number of bars for pivots results in fewer but more significant trendlines, with a delay corresponding to the specified length. Lower values generate more trendlines, but they are less significant.
- Adjust settings (e.g., number of bars for pivots, tolerance multiplier) to suit your trading style and timeframe.
- Combine with other technical analysis tools, such as RSI, pivot points, or FVG, to enhance signal accuracy.
- For high-volatility markets, consider increasing the tolerance margin to reduce false signals.
TRADALOGIX A-Setup Mentoring Checklist97% of traders (new or old) sometime forget that to win the markets consistently, you have to be consistent in your thought process as well. Many that come to me desire only to know the secrets to my trading success. And I ask the same question to each and everyone: What are your steps in finding, validating & executing the best trade possible? Majority of the times, they know of only 3-5 points to consider when trading. Hence the reason why many traders fail.
This led me down to compiling a 1000 trader survey. It resulted in finding the reasons for trader failures. Most traders were unaware of some of the critical steps in finding, validating & executing the A-Setup trade of the day.
Once launched, you will find the critical steps in processing your setup. No one item should be ignored if you are seeking consistency in your trading. Good luck.
CISD + Fractals - Milana TradesThe CISD (Change in State of Delivery ) is a precision-engineered tool for identifying structural shifts within price action.
It algorithmically detects when price transitions from one swing direction to another — providing objective confirmation of market structure breaks that often precede trend reversals.
By mapping swing highs and lows, and visually marking breakpoints through CISD signals, this indicator enables traders to see the market’s internal structure in real time, without noise or subjective interpretation.
⚙️ Core Logic
The CISD algorithm uses a fractals-based structure recognition system to define market swings (high/low) and monitor for structural breaches.
Swing Identification
Using a configurable Pivot Strength parameter, the indicator detects significant local highs and lows based on price symmetry.
These pivots form the foundation of short-term and long-term structural reference points.
Execution Logic
Once a CISD is detected, the script dynamically projects a horizontal reference line at the validated structural level and plots a clear label (+CISD or –CISD) at the break location.
This provides an immediate, unobtrusive visualization of key structural events.
Visualization & Styling
The CISD interface is built for clarity and adaptability across all charting environments.
All stylistic parameters are fully customizable:
Pivot Strength – Sensitivity of swing identification
Fractal Visibility – Optional visualization of pivot origins
Bullish/Bearish Color Schemes – Independent line and text coloration
Line Style & Thickness – Adjustable for chart clarity
Label Size – Four-tier sizing (Tiny to Large) for multi-timeframe readability
Each CISD line maintains the context of structural order flow, allowing traders to visually differentiate active structure levels from historical breakpoints.
Alert System
The indicator integrates a fully functional alert module for automated market monitoring:
Any CISD – Alerts when any structural break occurs
Bullish CISD Formed – Alerts on bullish market structure shifts
Bearish CISD Formed – Alerts on bearish market structure shifts
These can be used for manual trade confirmation, smart alerts, or automated trading system triggers.
Adaptive Chikou Strategy - Level 1This strategy is based on the Ichimoku cloud system and the power of delaying the signal. I changed how the averages are calculated to better detect the range areas.
The strategy uses this concept to determine the market regime, whether the price is below or above its delayed signal, and acts accordingly:
Bull (green) – when the price is above the average of the highs, delayed, the strategy favors long entries.
Bear (red) – when the price is below the average of the lows delayed, the strategy favors short entries.
Range (brown) – when the percent rank is in between those 2 conditions, we detect range, and no trades are initiated.
The transition between these regimes depends mainly on 4 key parameters.
The first parameter controls the lookback period for the highest and lowest functions.
The second controls how much we delay the signal of these 2 functions.
The third adjusts how much range is detected in bull conditions; it changes the transition from bull to range conditions. The bigger it is, the less bull and the more range.
The fourth parameter is similar to the third, but for bear conditions. The bigger it is, the less bear and the more range conditions are detected.
The user can configure the strategy to run long-only, short-only, or both directions, depending on the market or preference. In addition to the core regime logic, the strategy includes several risk and trade management controls that are featured in all my strategies.
Four oscillators are also integrated into the logic to detect short-term overbought and oversold conditions. These help the strategy avoid entering or exiting a trade when the price has already extended too far in one direction, improving timing and potentially reducing false entries and exits. When overbought or oversold are detected, a red or green dot appears on the chart.
The script is designed to be flexible across different assets and timeframes. However, to achieve consistent results, it is important to optimize parameters carefully. A recommended workflow is as follows:
Disable the walk-forward option during the optimization phase.
Optimize the first main parameter while keeping others fixed.
Once a satisfactory value is found, move to the second parameter.
Continue the process for subsequent parameters.
Optionally, repeat the full sequence once more to refine the results.
Finally, activate walk-forward analysis and check the out-of-sample results.
This strategy is published as invite-only with hidden source code. Access may be granted upon request for research or evaluation purposes. It is part of a broader collection of technical analysis strategies I have developed, which focus on regime detection and adaptive trading systems.
There are five levels of strategy complexity and performance in my collection. This script represents a Level 1 strategy, designed as a solid foundation and introduction to the framework. More advanced levels progressively add greater complexity, adaptability, and robustness.
When multiple strategies are combined under this same framework, the results become more robust and stable. In particular, combining my suite of technical analysis strategies with my macro strategies and alternative data strategies, such as onchain for cryptocurrencies. It creates a multi-layered system that adapts across regimes, timeframes, and market conditions.
Percent Rank Strategy - Level 1This strategy is based on the Percent Rank math, a statistical measure that evaluates how the current price compares to its historical prices over a specified lookback period.
In simple terms, Percent Rank tells you the percentile position of the current price within a recent window, for example, a value of 80% means the price is higher than 80% of the previous prices in that period, while 20% means it’s lower than 80% of them.
The strategy uses this concept to determine the market regime, whether price is high, low, or neutral relative to its recent range, and acts accordingly:
Bull (green) – when the price percent rank is usually above 50% the price is normally high, and the strategy favors long entries.
Bear (red) – when the price percent rank is usually below 50% the price is normally low, and the strategy favors short entries.
Range (brown) – when the percent rank is in between those 2 conditions, we detect range, and no trades are initiated.
The transition between these regimes depends mainly on 3 key parameters.
The first parameter controls the maximum lookback period for the percent rank array and so the maximum cycle length.
The second controls how much range is detected in bull conditions; it changes the transition from bull to range conditions. The bigger it is, the less bull and the more range.
The third parameter is similar to the second, but for bear conditions. The smaller it is, the less bear and the more range conditions are detected.
The user can configure the strategy to run long-only, short-only, or both directions, depending on the market or preference. In addition to the core regime logic, the strategy includes several risk and trade management controls that are featured in all my strategies.
Four oscillators are also integrated into the logic to detect short-term overbought and oversold conditions. These help the strategy avoid entering or exiting a trade when the price has already extended too far in one direction, improving timing and potentially reducing false entries and exits. When overbought or oversold are detected, a red or green dot appears on the chart.
The script is designed to be flexible across different assets and timeframes. However, to achieve consistent results, it is important to optimize parameters carefully. A recommended workflow is as follows:
Disable the walk-forward option during the optimization phase.
Optimize the first main parameter while keeping others fixed.
Once a satisfactory value is found, move to the second parameter.
Continue the process for subsequent parameters.
Optionally, repeat the full sequence once more to refine the results.
Finally, activate walk-forward analysis and check the out-of-sample results.
This strategy is published as invite-only with hidden source code. Access may be granted upon request for research or evaluation purposes. It is part of a broader collection of technical analysis strategies I have developed, which focus on regime detection and adaptive trading systems.
There are five levels of strategy complexity and performance in my collection. This script represents a Level 1 strategy, designed as a solid foundation and introduction to the framework. More advanced levels progressively add greater complexity, adaptability, and robustness.
When multiple strategies are combined under this same framework, the results become more robust and stable. In particular, combining my suite of technical analysis strategies with my macro strategies and alternative data strategies, such as onchain for cryptocurrencies. It creates a multi-layered system that adapts across regimes, timeframes, and market conditions.
Advanced Chandelier Exit with S/R [Alpha Extract]Advanced Chandelier Exit with S/R is a precision-crafted trailing stop and market structure detection system that fuses advanced Chandelier Exit logic with intelligent, multi-timeframe support and resistance tracking. This indicator delivers adaptive trend detection, volatility-aware exit positioning, and real-time structural mapping in a clean, responsive format. By combining directional filtering, pivot zone detection, and customizable styling, Advanced Chandelier Exit with S/R is designed to give traders reliable context, strong risk management, and visually intuitive confirmation signals across all timeframes and asset classes.
🔶 Adaptive Trailing Stop Architecture
At the core of Advanced Chandelier Exit with S/R is a refined Chandelier Exit mechanism that dynamically calculates trailing stops based on recent highs and lows, ATR volatility, and trend sensitivity. The system features directional memory, anchoring the stop to maintain position until a confirmed trend break occurs. This method prevents premature flips and keeps the trade aligned with sustained momentum.
longStop := close > longStop ? math.max(longStop, longStop ) : longStop
shortStop := close < shortStop ? math.min(shortStop, shortStop ) : shortStop
🔶 Volatility-Weighted Filtering
To reduce noise and improve reaction quality, Advanced Chandelier Exit with S/R includes an optional volatility normalization filter. This system adjusts ATR output based on how elevated it is relative to its own average, effectively down-weighting erratic price moves while maintaining responsiveness in directional phases.
volatilityFilter = enableVolatilityFilter ? ta.sma(baseATR, length) / baseATR : 1.0
atr = mult * baseATR * sensitivity * volatilityFilter
🔶 Trend Strength-Aware State Transitions
Trend flips in Advanced Chandelier Exit with S/R are not based solely on price crossing the stop level. Instead, the system includes a momentum-derived trend strength filter that validates the legitimacy of directional shifts. This guards against weak reversals and gives stronger confidence in breakout moves.
priceChange = math.abs(close - close )
avgPriceChange = ta.sma(priceChange, length)
trendStrength = math.min(priceChange / avgPriceChange * 100, 200)
🔶 Multi-Timeframe Support & Resistance Zones
Advanced Chandelier Exit with S/R embeds a sophisticated pivot-based structure mapping engine that automatically identifies significant price reaction levels and tracks their validity over time. It filters redundant zones, removes invalidated levels, and renders real-time support and resistance overlays based on market structure.
if isUniqueLevel(ph, resistanceLevels)
array.unshift(resistanceLevels, ph)
if isUniqueLevel(pl, supportLevels)
array.unshift(supportLevels, pl)
🔶 Dynamic Visual Encoding
The indicator uses strength-scaled fills, customizable colors, and line styling to convey directional bias with clarity. Color opacity intensifies as trend strength increases, offering intuitive context at a glance. Dynamic background fills mark trend states, while S/R zones are rendered with user-defined transparency for clean integration.
🔶 Signal Detection and Alerts
Directional signals are generated upon confirmed flips between long and short regimes, validated by stop crosses and strength filters. Additionally, the indicator provides S/R breakout alerts, identifying when price breaks through a key structural level.
🔶 Performance and Customization Optimizations
Advanced Chandelier Exit with S/R is built with modularity and efficiency in mind. It supports full customization of stop logic, volatility sensitivity, structural lookback, S/R zone filtering, and visual display. The use of array-based data structures for S/R levels ensures consistent performance even across high-activity assets and longer lookback periods.
Advanced Chandelier Exit with S/R represents the next evolution in trailing stop and structure-aware trading tools. By blending the proven logic of the Chandelier Exit system with intelligent trend strength filters and robust S/R detection, it becomes more than just a stop indicator—it becomes a complete trade management companion. Traders benefit from fewer false flips, clearer directional bias, and precise structural overlays that reinforce both breakout and reversal strategies. Whether used for swing entries, intraday positioning, or zone-based re-entries, Advanced Chandelier Exit with S/R empowers traders with responsive, intelligent logic that adapts to market conditions without compromise.