ATH Levels v4# ATH Levels v4
A powerful indicator for tracking All-Time Highs (ATH) and setting customizable price levels based on percentage drops from the ATH. Perfect for cryptocurrency trading, DCA strategies, and risk management.
## Overview
ATH Levels v4 helps traders visualize key support levels calculated as percentage drops from the All-Time High within a configurable lookback period. The indicator also tracks the All-Time Low (ATL) since the last ATH, providing a complete picture of price range dynamics.
## Key Features
### Configurable Percentage Levels
- Define up to 8 custom price levels as percentage drops from ATH
- No longer limited to fixed 10% intervals
- Each level can be set anywhere from 0% to 100% drop
- Default levels: 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%
### ATL Tracking (NEW in v4)
- Automatically tracks the All-Time Low since the last ATH was reached
- Displays ATL price and percentage drop from ATH
- Resets when a new ATH is detected
- Can be toggled on/off
### Portfolio Management
- Allocate pot size percentages to each level
- Visualize dollar amounts for each level based on your total pot size
- Plan your DCA (Dollar Cost Averaging) strategy
- Only displays levels with allocated pot percentages
### Flexible Display Options
- Show/hide level lines
- Hide ATH level for zooming into lower levels
- Configurable lookback period (default 365 days)
- Adjustable right margin positioning for labels
- Color-coded labels with transparency gradient
## How to Use
### Basic Setup
1. Add the indicator to your chart
2. Set your total pot size in dollars
3. Configure the percentage drops for each level (where you want to buy/accumulate)
4. Allocate pot size percentages to each level
### Example DCA Strategy
```
Total Pot Size: $10,000
Level 3 (-30%): 10% pot = $1,000
Level 4 (-40%): 20% pot = $2,000
Level 5 (-50%): 25% pot = $2,500
Level 6 (-60%): 30% pot = $3,000
Level 7 (-70%): 10% pot = $1,000
Level 8 (-80%): 5% pot = $500
```
## Settings
### Display Options
- **Show level lines**: Toggle horizontal lines on/off
- **Hide ATH level**: Hide the ATH label for cleaner charts
- **Show ATL since last ATH**: Display/hide the All-Time Low indicator
- **Days to Lookback**: Period for calculating ATH (default: 365)
- **Margin from last bar**: Spacing between chart and labels (default: 10)
### Level Configuration
- **Level 1-8 % drop from ATH**: Set custom percentage drops (0-100%)
- **Level 1-8 pot %**: Allocate your portfolio percentage to each level (0-100%)
**Note**: Levels only display if they have a pot percentage allocated (>0%)
### Pot Size
- **Pot size**: Total amount in dollars available for the strategy
## Version History
### V4 (October 2025)
- Upgraded to PineScript v6
- Configurable percentage drops from ATH (no longer hardcoded)
- ATL tracking and display since last ATH
- Updated syntax and functions for v6 compatibility
### V3 (May 2020)
- Added option to hide ATH level for better chart zoom
### V2
- Hide/show level lines
- Configurable lookback period
- Configurable right margin
- Only shows levels with pot size % set
### V1
- Initial release with 8 fixed levels
## Use Cases
### Cryptocurrency Trading
- Plan accumulation zones during bear markets
- Set alerts at key percentage drops from ATH
- Track historical ATH and ATL ranges
### Risk Management
- Visualize potential support zones
- Plan position sizing at different levels
- Monitor distance from ATH in real-time
### DCA Strategies
- Automate dollar-cost averaging planning
- Allocate budget across multiple price levels
- Track execution of your DCA plan
## Technical Details
- **Version**: PineScript v6
- **Type**: Indicator
- **Overlay**: Yes
- **Default Timeframe**: Works on all timeframes
- **Calculations**: Based on closing prices within lookback period
## Credits
Original concept inspired by daytask. Enhanced and maintained by SilvesterScorpion.com
## License
This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
---
**Tip**: For best results, use on higher timeframes (4H, Daily, Weekly) to identify major support zones. Combine with volume analysis and other indicators for confirmation.
指標和策略
VIX Overnight Move Percentage@MiniHedgeFunds
An overnight percent move in the VIX used as an indicator below the graph
Daily Levels + Pivot + VWAP + LRC + Bollinger + Session BiasAdded several indicators to help traders to create price action strategy. All lines of this indicator are fully non repaint and will never vanish even in the most volatile condition on any chart even on Renko. Try it...
Octopus OscillatorOctopus Oscillator - Advanced Multi-Indicator for TradingView
The Octopus Oscillator is a sophisticated technical analysis tool that combines the power of MACD and OBV-ADX indicators into one comprehensive oscillator. Designed for traders seeking clean, professional signals without visual clutter.
🎯 KEY FEATURES:
Dual Analysis System:
MACD Component: Classic Moving Average Convergence Divergence with thin, clean lines
OBV-ADX Component: Advanced volume-based directional movement analysis
Clean Visual Design:
Slim, elegant lines for optimal chart clarity
Prominent DI Difference histogram for momentum visualization
No distracting arrows or unnecessary plot markers
Professional color scheme with blue MACD and red Signal lines
Flexible Display Options:
Toggle MACD display on/off
Switch between ADX line view and DI Difference histogram
Adjustable background highlights for strong trend signals
Customizable parameters for all components
📊 INDICATOR COMPONENTS:
MACD Section:
Fast and slow EMA comparison for momentum analysis
Clean crossover signals without histogram clutter
Customizable periods and moving average types
OBV-ADX Section:
On-Balance Volume (OBV) based Directional Indicators
ADX smoothing for trend strength measurement
DI Difference histogram showing momentum direction
Background highlights for strong trend conditions
⚙️ CUSTOMIZATION:
Adjustable MACD fast/slow lengths and smoothing
Customizable DI Length and ADX smoothing periods
Multiple MA type options (SMA/EMA)
Toggle individual components on/off
Perfect for traders who want combined momentum and volume analysis in one clean, professional package. The Octopus Oscillator helps identify trend strength, momentum shifts, and potential trading opportunities with exceptional clarity.
Add to your TradingView chart today and enhance your technical analysis!
Octopus Indicator 🐙 Octopus Indicator - Technical Analysis Description
Overview
The Octopus Indicator is a comprehensive TradingView technical analysis tool that combines multiple trading methodologies into a single, powerful script. It provides a complete market analysis framework through seven integrated components.
🔧 Core Components:
1. Moving Averages with Clouds
EMA 25, 50, 75, and 150 with standard deviation bands
Visual clouds representing volatility around each EMA
Customizable colors for each average and its cloud
2. Dual Hull Bands
Two separate Hull bands with different periods (20 and 110)
Multiple variations: HMA, THMA, EHMA
Colored filling between Hull lines
Option to use higher timeframes for multi-timeframe analysis
3. Swing High/Low Detector
Identifies significant price reversal points
Configurable swing strength (default: 5 bars)
Solid lines for current swings and dotted for past ones
Alerts when swing levels are broken
4. Volume Analysis (PVSRA)
Vector Candles that change color based on volume:
Red/Green: Volume ≥ 200% of average or highest spread×volume
Blue/Violet: Volume ≥ 150% of average
Gray: Normal conditions
Vector Candle Zones (VCZ): Key areas based on volume candles
5. Daily & Weekly Levels
Previous day's high and low
Previous week's high and low
Stepline display with optional labels
6. UT Bot - Trailing Stop
Dynamic ATR-based stop loss
Bar coloring based on trend direction
Adjustable sensitivity via "Key Value"
7. Session Detector
Identifies session highs/lows (Sydney, Asia, Europe, etc.)
Visual boxes marking each trading session
⚙️ Customization Features:
Individual color schemes for all elements
Adjustable line thickness
Custom transparency settings
Flexible calculation periods
Multiple timeframe options
🎯 Trading Applications:
Trend Identification (EMAs + Hull)
Entry/Exit Points (Swings + Volume)
Risk Management (Trailing Stop)
Support/Resistance (VCZ + Highs/Lows)
Market Timing (Sessions + Volume)
💡 Key Benefits:
All-in-One Solution: Eliminates indicator clutter
Multi-Timeframe Analysis: Built-in higher timeframe data
Visual Clarity: Clean, organized display with color coding
Customizable Alerts: Swing break and trend change notifications
Professional Grade: Institutional-level volume analysis
This indicator is designed for traders who want a comprehensive market analysis tool without the complexity of managing multiple separate indicators, providing holistic market insight through different technical perspectives.
Fair Value Gaps by DGTFair Value Gaps
A refined, multi-timeframe Fair Value Gap (FVG) detection tool that brings institutional imbalance zones to life directly on your chart.
Designed for precision, it visualizes how price delivers into inefficiencies across chart, higher, and lower (intrabar) timeframes — offering a fluid, structural view of liquidity displacement and market flow.
The script continuously tracks unfilled, partially repaired, and fully resolved imbalances, revealing where liquidity inefficiencies concentrate and where price may seek rebalancing.
Overlapping zones naturally expose institutional footprints, potential liquidity targets, and key re-pricing regions within the broader market structure.
KEY FEATURES
⯌ Multi-Timeframe Detection
Detect and display FVGs from the current chart, higher timeframes (HTF), or lower timeframes (LTF)
⯌ Smart Fill Tracking
Automatic real-time monitoring of each FVG’s fill progress with live percentage updates
⯌ Custom Fill Logic
Choose your preferred definition of when a gap is considered filled: Any Touch
Midpoint Reached
Wick Sweep
Body Beyond
⯌ Dynamic Labels & Tooltips
Labels can be toggled on/off. Even when hidden, detailed tooltips remain available by hovering over the FVG midpoint.
⯌ Adaptive Lower-Timeframe Mode
When set to “Auto,” the script intelligently selects the optimal lower timeframe based on the chart resolution.
DISCLAIMER
This script is intended for informational and educational purposes only. It does not constitute financial, investment, or trading advice. All trading decisions made based on its output are solely the responsibility of the user.
LGS - Vertical LinesThe script allows you to configure 5 vertical lines, to be displayed at the selected hour and minute.
Ghost BookGhost Book is an indicator that visualizes the distribution of bid and ask amount — the activity of buyers and sellers — in the form of a synthetic order book.
While a real order book shows active limit orders, Ghost Book displays the most recent n ticks (controlled by the input Max rows count in book).
For each tick, the indicator shows:
Price
Amount
Total trade value
Trade side (buyer or seller)
Relative weight of the tick by its amount
The center row displays the current closing price as a reference point between buyers and sellers.
Note: This indicator uses tick-level data. If your TradingView subscription level does not include tick data, the indicator will not function correctly.
Institutional Compression Breakout (ICBO Algo) [@darshakssc]The ICBO Algo is a smart intraday trading tool that detects institutional compression zones followed by breakout confirmation. It combines candle range analysis, volume compression, EMA filtering, and ATR-based Risk/Reward zones to highlight high-probability trade setups with visual clarity.
This script is designed for educational and research purposes only, fully aligned with TradingView’s Pine Script policy and publishing guidelines.
🔍 Key Features
🌀 Compression Zone Detection
Identifies low-range, low-volume candles often formed before institutional breakouts.
📈📉 Breakout Signals
Triggered after confirmed price + EMA breakout post-compression.
📊 Dashboard Panel
Displays breakout phase, current R:R ratio, and zone status in real-time.
🟢🔴 Buy/Sell Labels with Emojis
Clean and non-intrusive labels for immediate action recognition.
🔔 Alerts Included
Receive real-time push, email, or webhook alerts for breakout signals.
⚙️ How It Works
Compression Phase:
When the candle range and volume are significantly lower than the moving average, the script flags it as a compression zone.
Breakout Confirmation:
A breakout signal is confirmed when the price breaks the previous high/low and is above/below the trend EMA.
Entry Logic:
📈 Buy: Price > previous high + above EMA after compression
📉 Sell: Price < previous low + below EMA after compression
⚠️ Disclaimer
This script is intended for educational and research purposes only. It does not constitute financial advice or recommendations of any kind. Always use proper risk management. Past performance does not guarantee future results.
Remote bar rangeShows the price range for a certain period of bars back. For example, the range between 100 bars back and 50 bars back. The last 50 bars are not counted in this case.
RVol (Daily and PreMarket)RVol with distinction between Pre-Market and Active Trading
Also ration of pre-market to Ave Daily Vol
Triple SuperTrend + RSI + Fib BBTriple SuperTrend + RSI + Fibonacci Bollinger Bands Strategy
📊 Overview
This advanced trading strategy combines the power of three SuperTrend indicators with RSI confirmation and Fibonacci Bollinger Bands to generate high-probability trade signals. The strategy is designed to capture strong trending moves while filtering out false signals through multi-indicator confluence.
🔧 Core Components
Three SuperTrend Indicators
The strategy uses three SuperTrend indicators with progressively longer periods and multipliers:
SuperTrend 1: 10-period ATR, 1.0 multiplier (fastest, most sensitive)
SuperTrend 2: 11-period ATR, 2.0 multiplier (medium sensitivity)
SuperTrend 3: 12-period ATR, 3.0 multiplier (slowest, most stable)
This layered approach ensures that all three timeframe perspectives align before generating a signal, significantly reducing false entries.
RSI Confirmation (7-period)
The Relative Strength Index acts as a momentum filter:
Long signals require RSI > 50 (bullish momentum)
Short signals require RSI < 50 (bearish momentum)
This prevents entries during weak or divergent price action.
Fibonacci Bollinger Bands (200, 2.618)
Uses a 200-period Simple Moving Average with 2.618 standard deviation bands (Fibonacci ratio). These bands serve dual purposes:
Visual representation of price extremes
Automatic exit trigger when price reaches overextended levels
📈 Entry Logic
LONG Entry (BUY Signal)
A LONG position is opened when ALL of the following conditions are met simultaneously:
All three SuperTrend indicators turn green (bullish)
RSI(7) is above 50
This is the first bar where all conditions align (no repainting)
SHORT Entry (SELL Signal)
A SHORT position is opened when ALL of the following conditions are met simultaneously:
All three SuperTrend indicators turn red (bearish)
RSI(7) is below 50
This is the first bar where all conditions align (no repainting)
🚪 Exit Logic
Positions are automatically closed when ANY of these conditions occur:
SuperTrend Color Change: Any one of the three SuperTrend indicators changes direction
Fibonacci BB Touch: Price reaches or exceeds the upper or lower Fibonacci Bollinger Band (2.618 standard deviations)
This dual-exit approach protects profits by:
Exiting quickly when trend momentum shifts (SuperTrend change)
Taking profits at statistical price extremes (Fib BB touch)
🎨 Visual Features
Signal Arrows
Green Up Arrow (BUY): Appears below the bar when long entry conditions are met
Red Down Arrow (SELL): Appears above the bar when short entry conditions are met
Yellow Down Arrow (EXIT): Appears above the bar when exit conditions are met
Background Coloring
Light Green Tint: All three SuperTrends are bullish (uptrend environment)
Light Red Tint: All three SuperTrends are bearish (downtrend environment)
SuperTrend Lines
Three colored lines plotted with varying opacity:
Solid line (ST1): Most responsive to price changes
Semi-transparent (ST2): Medium-term trend
Most transparent (ST3): Long-term trend structure
Dashboard
Real-time information panel showing:
Individual SuperTrend status (UP/DOWN)
Current RSI value and color-coded status
Current position (LONG/SHORT/FLAT)
Net Profit/Loss
⚙️ Customizable Parameters
SuperTrend Settings
ATR periods for each SuperTrend (default: 10, 11, 12)
Multipliers for each SuperTrend (default: 1.0, 2.0, 3.0)
RSI Settings
RSI length (default: 7)
RSI source (default: close)
Fibonacci Bollinger Bands
BB length (default: 200)
BB multiplier (default: 2.618)
Strategy Options
Enable/disable long trades
Enable/disable short trades
Initial capital
Position sizing
Commission settings
💡 Strategy Philosophy
This strategy is built on the principle of confluence trading - waiting for multiple independent indicators to align before taking a position. By requiring three SuperTrend indicators AND RSI confirmation, the strategy filters out the majority of low-probability setups.
The multi-timeframe SuperTrend approach ensures that short-term, medium-term, and longer-term trends are all in agreement, which typically occurs during strong, sustainable price moves.
The exit strategy is equally important, using both trend-following logic (SuperTrend changes) and mean-reversion logic (Fibonacci BB touches) to adapt to different market conditions.
📊 Best Use Cases
Trending Markets: Works best in markets with clear directional bias
Higher Timeframes: Designed for 15-minute to daily charts
Volatile Assets: SuperTrend indicators excel in assets with clear trends
Swing Trading: Hold times typically range from hours to days
⚠️ Important Notes
No Repainting: All signals are confirmed and will not change on historical bars
One Signal Per Setup: The strategy prevents duplicate signals on consecutive bars
Exit Protection: Always exits before potentially taking an opposite position
Visual Clarity: All three SuperTrend lines are visible simultaneously for transparency
🎯 Recommended Settings
While default parameters are optimized for general use, consider:
Crypto/Volatile Markets: May benefit from slightly higher multipliers
Forex: Default settings work well for major pairs
Stocks: Consider longer BB periods (250-300) for daily charts
Lower Timeframes: Reduce all periods proportionally for scalping
📝 Alerts
Built-in alert conditions for:
BUY signal triggered
SELL signal triggered
EXIT signal triggered
Set up notifications to never miss a trade opportunity!
Disclaimer: This strategy is for educational and informational purposes only. Past performance does not guarantee future results. Always backtest thoroughly and practice proper risk management before live trading.
Daily H/L/M + Open + VWAP + BB + LRC + Session Bias (Robust)This is great indicator to create price action based strategy in all kind of charts including renko. All the line are non repainting and wont vanish even in high volatily in renko or in any other chart. Try it to make your own strategy.
Previous High/Low Multi-Timeframe (3 TFs)Supports 3 customizable timeframes, with full color, width, style, and label options
Confluence Tiered Bullish Entries (MTF Trend Confirm)Draws only the key trendlines: previous day’s high/low, last completed 4H high/low, and last completed 1H high/low.
Fires an alert the instant price touches any of those lines.
Detects bullish Fair Value Gaps (early, as they form), then marks a confluence only when price revisits that FVG.
Confirms with a volume spike + a green candle that closes near the bottom of its range (tunable).
Labels entries as Tier 3 (one confluence), Tier 2 (two), or Tier 1 BUY (all three).
Only shows those trendlines and bullish entry labels on chart.
Previous 4-Hour High/Low (Updated)Features:
- Works on any chart timeframe.
- Automatically updates at the close of each 4H candle.
- Lines extend across the chart (both directions).
- Customizable color and thickness.
- Optional labels.
- No flickering or constant deletion/recreation — lines are updated only when the 4H candle closes
ATR + VIX Breakout StrategyChange the symbol to UVXY. Work great for option l long and S short. Take profits before it closes the trade. Pls remember you are using it at your own risk.
Hurdle rateStocks beating BTC 50 > 200 Week EMA. The indicator is scanning the available stocks for equities that are beating BTC over mid term time frames.
Relative Strength Index Remastered [CHE]Relative Strength Index Remastered — Enhanced RSI with robust divergence detection using price-based pivots and line-of-sight validation to reduce false signals compared to the standard RSI indicator.
Summary
RSI Remastered builds on the classic Relative Strength Index by adding a more reliable divergence detection system that relies on price pivots rather than RSI pivots alone, incorporating a line-of-sight check to ensure the RSI path between points remains clear. This approach filters out many false divergences that occur in the original RSI indicator due to its volatile pivot detection on the RSI line itself. Users benefit from clearer reversal and continuation signals, especially in noisy markets, with optional hidden divergence support for trend confirmation. The core RSI calculation and smoothing options remain familiar, but the divergence logic provides materially fewer alerts while maintaining sensitivity.
Motivation: Why this design?
The standard RSI indicator often generates misleading divergence signals because it detects pivots directly on the RSI values, which can fluctuate erratically in volatile conditions, leading to frequent false positives that confuse traders during ranging or choppy price action. RSI Remastered addresses this by shifting pivot detection to the underlying price highs and lows, which are more stable, and adding a validation step that confirms the RSI line does not cross the direct path between pivot points. This design targets the real problem of over-signaling in the original, promoting more actionable insights without altering the RSI's core momentum measurement.
What’s different vs. standard approaches?
- Reference baseline: The classical TradingView RSI indicator, which uses simple RSI-based pivot detection for divergences.
- Architecture differences:
- Pivot identification on price extremes (highs and lows) instead of RSI values, extracting RSI levels at those points for comparison.
- Addition of a line-of-sight validation that checks the RSI path bar by bar between pivots to prevent signals where the line is interrupted.
- Inclusion of hidden divergence types alongside regular ones, using the same robust framework.
- Configurable drawing of connecting lines between validated pivot RSI points for visual clarity.
- Practical effect: Charts show fewer but higher-quality divergence markers and lines, reducing clutter from the original's frequent RSI pivot triggers; this matters for avoiding whipsaws in intraday trading, where the standard version might flag dozens of invalid setups per session.
Key Comparison Aspects
Aspect: Title/Shorttitle
Original RSI: "Relative Strength Index" / "RSI"
Robust Variant: "Relative Strength Index Remastered " / "RSI RM"
Aspect: Max. Lines/Labels
Original RSI: No specification (Standard: 50/50)
Robust Variant: max_lines_count=200, max_labels_count=200 (for more lines/markers in divergences)
Aspect: RSI Calculation & Plots
Original RSI: Identical: RSI with RMA, Plots (line, bands, gradient fills)
Robust Variant: Identical: RSI with RMA, Plots (line, bands, gradient fills)
Aspect: Smoothing (MA)
Original RSI: Identical: Inputs for MA types (SMA, EMA etc.), Bollinger Bands optional
Robust Variant: Identical: Inputs for MA types (SMA, EMA etc.), Bollinger Bands optional
Aspect: Divergence Activation
Original RSI: input.bool(false, "Calculate Divergence") (disabled by default)
Robust Variant: input.bool(true, "Calculate Divergence") (enabled by default, with tooltip)
Aspect: Pivot Calculation
Original RSI: Pivots on RSI (ta.pivotlow/high on RSI values)
Robust Variant: Pivots on price (ta.pivotlow/high on low/high), RSI values then extracted
Aspect: Lookback Values
Original RSI: Fixed: lookbackLeft=5, lookbackRight=5
Robust Variant: Input: L=5 (Pivot Left), R=5 (Pivot Right), adjustable (min=1, max=50)
Aspect: Range Between Pivots
Original RSI: Fixed: rangeUpper=60, rangeLower=5 (via _inRange function)
Robust Variant: Input: rangeUpper=60 (Max Bars), rangeLower=5 (Min Bars), adjustable (min=1–6, max=100–300)
Aspect: Divergence Types
Original RSI: Only Regular Bullish/Bearish: - Bull: Price LL + RSI HL - Bear: Price HH + RSI LH
Robust Variant: Regular + Hidden (optional via showHidden=true): - Regular Bull: Price LL + RSI HL - Regular Bear: Price HH + RSI LH - Hidden Bull: Price HL + RSI LL - Hidden Bear: Price LH + RSI HH
Aspect: Validation
Original RSI: No additional check (only pivot + range check)
Robust Variant: Line-of-Sight Check: RSI line must not cross the connecting line between pivots (line_clear function with slope calculation and loop for each bar in between)
Aspect: Signals (Plots/Shapes)
Original RSI: - Plot of pivot points (if divergence) - Shapes: "Bull"/"Bear" at RSI value, offset=-5
Robust Variant: - No pivot plots, instead shapes at RSI , offset=-R (adjustable) - Shapes: "Bull"/"Bear" (Regular), "HBull"/"HBear" (Hidden) - Colors: Lime/Red (Regular), Teal/Orange (Hidden)
Aspect: Line Drawing
Original RSI: No lines
Robust Variant: Optional (showLines=true): Lines between RSI pivots (thick for regular, dashed/thin for hidden), extend=none
Aspect: Alerts
Original RSI: Only Regular Bullish/Bearish (with pivot lookback reference)
Robust Variant: Regular Bullish/Bearish + Hidden Bullish/Bearish (specific "at latest pivot low/high")
Aspect: Robustness
Original RSI: Simple, prone to false signals (RSI pivots can be volatile)
Robust Variant: Higher: Price pivots are more stable, line-of-sight filters "broken" divergences, hidden support for trend continuations
Aspect: Code Length/Structure
Original RSI: ~100 lines, simple if-blocks for bull/bear
Robust Variant: ~150 lines, extended helper functions (e.g., inRange, line_clear), var group for inputs
How it works (technical)
The indicator first computes the core RSI value based on recent price changes, separating upward and downward movements over the specified length and smoothing them to derive a momentum reading scaled between zero and one hundred. This value is then plotted in a separate pane with fixed upper and lower reference lines at seventy and thirty, along with optional gradient fills to highlight overbought and oversold zones.
For smoothing, a moving average type is applied to the RSI if enabled, with an option to add bands around it based on the variability of recent RSI values scaled by a multiplier. Divergence detection activates on confirmed price pivots: lows for bullish checks and highs for bearish. At each new pivot, the system retrieves the bar index and values (price and RSI) for the current and prior pivot, ensuring they fall within a configurable bar range to avoid unrelated points.
Comparisons then assess whether the price has made a lower low (or higher high) while the RSI at those points moves in the opposite direction—higher for bullish regular, lower for bearish regular. For hidden types, the directions reverse to capture trend strength. The line-of-sight check calculates the straight path between the two RSI points and verifies that the actual RSI values in between stay entirely above (for bullish) or below (for bearish) that path, breaking the signal if any bar violates it. Valid signals trigger shapes at the RSI level of the new pivot and optional lines connecting the points. Initialization uses built-in functions to track prior occurrences, with states persisting across bars for accurate historical comparisons. No higher timeframe data is used, so confirmation occurs after the right pivot bars close, minimizing live-bar repaints.
Parameter Guide
Length — Controls the period for measuring price momentum changes — Default: 14 — Trade-offs/Tips: Shorter values increase responsiveness but add noise and more false signals; longer smooths trends but delays entries in fast markets.
Source — Selects the price input for RSI calculation — Default: Close — Trade-offs/Tips: Use high or low for volatility focus, but close works best for most assets; mismatches can skew overbought/oversold reads.
Calculate Divergence — Enables the enhanced divergence logic — Default: True — Trade-offs/Tips: Disable for pure RSI view to save computation; essential for signal reliability over the standard method.
Type (Smoothing) — Chooses the moving average applied to RSI — Default: SMA — Trade-offs/Tips: None for raw RSI; EMA for quicker adaptation, but SMA reduces whipsaws; Bollinger Bands option adds volatility context at cost of added lines.
Length (Smoothing) — Period for the smoothing average — Default: 14 — Trade-offs/Tips: Match RSI length for consistency; shorter boosts signal speed but amplifies noise in the smoothed line.
BB StdDev — Multiplier for band width around smoothed RSI — Default: 2.0 — Trade-offs/Tips: Lower narrows bands for tighter signals, risking more touches; higher widens for fewer but stronger breakouts.
Pivot Left — Bars to the left for confirming price pivots — Default: 5 — Trade-offs/Tips: Increase for stricter pivots in noisy data, reducing signals; too high delays confirmation excessively.
Pivot Right — Bars to the right for confirming price pivots — Default: 5 — Trade-offs/Tips: Balances with left for symmetry; longer right ensures maturity but shifts signals backward.
Max Bars Between Pivots — Upper limit on distance for valid pivot pairs — Default: 60 — Trade-offs/Tips: Tighten for short-term trades to focus recent action; widen for swing setups but risks unrelated comparisons.
Min Bars Between Pivots — Lower limit to avoid clustered pivots — Default: 5 — Trade-offs/Tips: Raise to filter micro-moves; too low invites overlapping signals like the original RSI.
Detect Hidden — Includes trend-continuation hidden types — Default: True — Trade-offs/Tips: Enable for full trend analysis; disable simplifies to reversals only, akin to basic RSI.
Draw Lines — Shows connecting lines between valid pivots — Default: True — Trade-offs/Tips: Turn off for cleaner charts; helps visually confirm line-of-sight in backtests.
Reading & Interpretation
The main RSI line oscillates between zero and one hundred, crossing above fifty suggesting building momentum and below indicating weakness; touches near seventy or thirty flag potential extremes. The optional smoothed line and bands provide a filtered view—price above the upper band on the RSI pane hints at overextension. Divergence shapes appear as upward labels for bullish (lime for regular, teal for hidden) and downward for bearish (red regular, orange hidden) at the pivot's RSI level, signaling a mismatch only after validation. Connecting lines, if drawn, slope between points without RSI interference, their color matching the shape type; a dashed style denotes hidden. Fewer shapes overall compared to the standard RSI mean higher conviction, but always confirm with price structure.
Practical Workflows & Combinations
- Trend following: Enter longs on regular bullish shapes near support with higher highs in price; filter hidden bullish for pullback buys in uptrends, pairing with a rising smoothed RSI above fifty.
- Exits/Stops: Use bearish regular as reversal warnings to tighten stops; hidden bearish in downtrends confirms continuation—exit if lines show RSI crossing the path.
- Multi-asset/Multi-TF: Defaults suit forex and stocks on one-hour charts; for crypto volatility, widen pivot ranges to ten; scale min/max bars proportionally on daily for swings, avoiding the original's intraday spam.
Behavior, Constraints & Performance
Signals confirm only after the right pivot bars close, so live bars may show tentative pivots that vanish on close, unlike the standard RSI's immediate RSI-pivot triggers—plan for this delay in automation. No higher timeframe calls, so no security-related repaints. Resources include up to two hundred lines and labels for dense charts, with a loop in validation scanning up to three hundred bars between pivots, which is efficient but could slow on very long histories. Known limits: Slight lag at pivot confirmation in trending markets; volatile RSI might rarely miss fine path violations; not ideal for gap-heavy assets where pivots skip.
Sensible Defaults & Quick Tuning
Start with defaults for balanced momentum and divergence on most timeframes. For too many signals (like the original), raise pivot left/right to eight and min bars to ten to filter noise. If sluggish in trends, shorten RSI length to nine and enable EMA smoothing for faster adaptation. In high-volatility assets, widen max bars to one hundred but disable hidden to focus essentials. For clean reversal hunts, set smoothing to none and lines on.
What this indicator is—and isn’t
RSI Remastered serves as a refined momentum and divergence visualization tool, enhancing the standard RSI for better signal quality in technical analysis setups. It is not a standalone trading system, nor does it predict price moves—pair it with volume, structure breaks, and risk rules for decisions. Use alongside position sizing and broader context, not in isolation.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Adaptive CE-VWAP Breakout Framework [KedArc Quant]📘 Description
A structured framework that unites three complementary systems into one charting engine:
>Chandelier Exit (CE) – ATR-based trailing logic that defines trend direction, stop placement, and risk/reward overlays.
>Swing-Anchored VWAP (SWAV) – a dynamically anchored VWAP that re-starts from each confirmed swing and adapts its smoothness to volatility.
>Pivot S/R with Volume Breaks – confirmed horizontal levels with alerts when broken on expanding volume.
This script builds a single workflow for bias → trigger → management>without mixing unrelated indicators. Each module is internally linked rather than layered cosmetically, making it a true analytical framework—not.
🙏 Acknowledgment
Special thanks to Dynamic Swing Anchored VWAP by @Zeiierman, whose swing-anchoring concept inspired a part of the SWAV module’s implementation and adaptation logic.
Support and Resistance Levels with Breaks by @luxalgo for S/R breakout logic.
🎯 How this helps traders
>Trend clarity – CE color-codes direction and provides evolving stops.
>Context value – SWAV traces adaptive mean paths so traders see where price is “heavy” or “light.”
>Action filter – Pivot+volume logic highlights true structural breaks, filtering false moves.
>Discipline tool – Optional R:R boxes visualize risk and target zones to enforce planning.
🧩 Entry / Exit guidelines (for study purposes only)
Bias Use CE direction: green = long bias · red = short bias
Entry
1. Breakout method>– Trade in CE direction when a pivot level breaks on valid volume.
2. VWAP confirmation>– Prefer breaks occurring around the nearest SWAV path (fair-value cross or re-test).
Exit
>Stop = CE line / recent swing HL / ATR × (multiplier)
>Target = R-multiple × risk (default 2 R)
>Optional live update keeps SL/TP aligned with current CE state.
🧮 Core formula concepts
>ATR Stop: `Stop = High/Low – ATR × multiplier`
>VWAP calc: `Σ(price × vol) / Σ(vol)` anchored at swing pivot, adapted by APT (Adaptive Price Tracking) ratio ∝ ATR volatility.
>Volume oscillator: `100 × (EMA₅ – EMA₁₀)/EMA₁₀`; valid break when > threshold %.
⚙️ Input configuration (high-level)
Master Controls
• Show CE / SWAV modules • Theme & Fill opacity
CE Section
• ATR period & multiplier • Use Close for extremums
• Show buy/sell labels • Await bar confirmation
• Risk-Reward overlay: R-multiple, Stop basis (CE/Swing/ATR×), Live update toggle
SWAV Section
• Swing period • Adaptive Price Tracking length • Volatility bias (ATR-based adaptation) • Line width
Pivot & Volume Breaks
• Left/Right bar windows • Volume threshold % • Show Break labels and alerts
⏱ Best timeframes
>Intraday: 5 m – 30 m for breakout confirmation
>Swing: 1 h – 4 h for trend context
Settings scale with instrument volatility—adjust ATR period and volume threshold to match liquidity.
📘 Glossary
>ATR: Average True Range (volatility metric)
>CE: Chandelier Exit (trailing stop/trend filter)
>SWAV: Swing-Anchored VWAP (anchored mean price path)
>Pivot H/L: Confirmed local extrema using left/right bar windows
>R-multiple: Profit target as a multiple of initial risk
💬 FAQ
Q: Does it repaint? A: No—pivots wait for confirmation and VWAP updates forward-only.
Q: Can modules be disabled? A: Yes—each section has its own toggle.
Q: Can it trade automatically? A: This is an indicator/study, not an auto-strategy.
Q: Is this financial advice? A: No—educational use only.
⚠️ Disclaimer
This script is for educational and analytical purposes only.
It is not financial advice. Trading involves risk of loss. Past performance does not guarantee future results. Always apply sound risk management.