YCGH ATH DrawdownHow the Indicator Measures Drawdown from ATH
The indicator continuously tracks and calculates the percentage decline from the all-time high (ATH) using a systematic approach.
ATH Tracking Mechanism
Dynamic ATH Calculation: The script maintains a persistent variable that stores the highest price ever reached. On each bar, it compares the current high with the stored ATH using ath := math.max(ath, high), updating the ATH whenever a new peak is reached.
Zyklen
VIX Calm vs Choppy (Bar Version, VIX High Threshold)This indicator tracks market stability by measuring how long the VIX stays below or above a chosen intraday threshold. Instead of looking at VIX closes, it uses VIX high, so even a brief intraday spike will flip the regime into “choppy.”
The tool builds a running clock of consecutive bars spent in each regime:
Calm regime: VIX high stays below the threshold
Choppy regime: VIX high hits or exceeds the threshold
Calm streaks plot as positive bars (light blue background).
Choppy streaks plot as negative bars (dark pink background).
This gives a clean picture of how long the market has been stable vs volatile — useful for trend traders, breakout traders, and anyone who watches risk-on/risk-off conditions. A table shows the current regime and streak length for quick reference.
YCGH Drawdown PercentilesWhat This Indicator Does?
The Drawdown Percentiles indicator tracks how far below the all-time high (ATH) a stock or asset is currently trading, then displays statistical percentiles of historical drawdowns in a customizable table.
Percentile Analysis: It collects up to 5,000 historical bars of drawdown data, sorts them, and calculates user-selected percentiles (default: 10th, 30th, 50th) to show where current drawdowns rank historically.
Visual Display: A table shows each percentile threshold with color-coded drawdown values, helping you quickly assess whether the current drawdown is typical or extreme compared to historical patterns.
Practical Use Cases
Risk Assessment: Identify if current drawdowns fall within normal ranges or represent extreme conditions requiring position adjustments.
Entry/Exit Timing: Use percentile rankings to time entries during historically shallow drawdowns (better conditions) and reduce exposure during deep drawdowns.
Strategy Comparison: Compare drawdown patterns across different assets or trading strategies to evaluate risk-adjusted performance.
BTCUSD / (inverted)DXY RatioShows relation between INVERTED DXY and BITCOIN ( blue line ) . With EMA-smoothing ( red line ).
PDH/PDL Breakout Reversal [Invite-Only]Detects daily breakout reversals based on Previous Day High/Low structure.
Ideal for intraday reversals and continuation entries with built-in SL/TP visualization.
ATC v6 with ORB by SabnATC v6 with ORB: Advanced Automatic Session and Opening
Range Indicator
ATC v6 is an advanced indicator designed by Alfa Trade Club for
TradingView users. This tool not only automatically marks important session
opens, closes, or specific times of financial markets on your chart but also
visualizes powerful Opening Range (ORB) strategies directly on your chart.
This tool removes the need to manually monitor critical trading hours, allowing
you to easily analyze price action in relation to these important timeframes.
Key Features
This indicator comes with a set of powerful features to provide the flexibility,
visual clarity, and strategic advantage that traders need:
1. Multi-Time Zone Support The indicator is based on the world's most
important financial market centers:
New York (America/New_York)
London (Europe/London)
Tokyo (Asia/Tokyo)
Istanbul (Europe/Istanbul)
This allows you to always set the lines accurately according to the local time of
the market you are trading.
2. Advanced 3-Stage Timing (Pre / Main / Next) Each time line is more than
just a simple line; it can manage a three-stage event cycle:
"Pre-Session": Draws a dotted line a few minutes before the main time you
specify (e.g., market open). This allows you to see the price level just before a
significant event.
"Main Session": Marks the opening price at the exact event time (e.g., 08:00
London Open) with a solid line.
"Next / ORB" (Opening Range): Draws another dotted line a specified number
of minutes after the main event (e.g., 15 minutes later). This is used to define the
Opening Range.
3. Automatic Price Boxes (Volatility & ORB) The indicator can draw two
different types of boxes based on this timing:
Opening Volatility Box (Pre -> Main): If the "Pre-Session" feature is active, the
indicator draws a colored box between the price at the pre-session moment and
the price at the main event. This box visualizes the initial volatility at the session
open.
Opening Range Box (Main -> Next): If the "Next" feature is active, the indicator
draws a box between the price at the main event and the "next" event.
4. Customizable Time Lines You have full control over each line. Users can:
Enable/Disable each line.
Set any desired hour and minute.
Define the "Pre" and "Next" durations in minutes.
Assign a different color for visual distinction.
5. Smart and Efficient Drawing
Forward-Extending Lines: All drawn lines and boxes automatically extend from
the moment they are created until the next day. This makes it easy to track how
these levels act as support/resistance throughout the day.
High Performance: Instead of deleting old lines and drawing new ones when a
new day starts, the code intelligently extends the existing lines into the next day
Weekend and DST Protection: Automatically skips weekends (from Friday to
Monday) and is not affected by Daylight Saving Time (DST) changes.
Who Is It For?
Session-Focused Traders: Ideal for those who track volatility during the London,
New York, Asian, or Istanbul session opens.
Day Traders: Perfect for those who want to mark important economic data
release times or daily market open/close levels.
Technical Analysts: A powerful aid for those who want to visually analyze how
opening prices at specific times and time ranges play a role throughout the day.
ATC v6 with ORB is much more than just a simple session line; it is a dynamic
analysis and strategy tool that combines price and time.
Relative Strength HSIWe add the relative strength indicator. We try to maximize the alpha,
when there is price divergence, we should notice.
RSI with Zone Colors//@version=6
indicator(title="RSI with Zone Colors", shorttitle="RSI+", format=format.price, precision=2, timeframe="", timeframe_gaps=true)
//// ==== INPUT SETTINGS ====
rsiLength = input.int(14, title="RSI Length", minval=1)
source = input.source(close, title="Source")
ob_level = input.int(70, title="Overbought Level")
os_level = input.int(30, title="Oversold Level")
//// ==== RSI CALCULATION ====
change = ta.change(source)
up = ta.ma(math.max(change, 0), rsiLength)
down = ta.ma(-math.min(change, 0), rsiLength)
rsi = down == 0 ? 100 : 100 - (100 / (1 + up / down))
//// ==== COLOR BASED ON ZONES ====
rsiColor = rsi > ob_level ? color.red : rsi < os_level ? color.green : #2962FF
//// ==== PLOT RSI ====
plot(rsi, title="RSI", color=rsiColor, linewidth=2)
//// ==== ZONE LINES ====
hline(ob_level, "Overbought", color=#787B86)
hline(50, "Middle", color=color.new(#787B86, 50))
hline(os_level, "Oversold", color=#787B86)
//// ==== FILL ZONES ====
zoneColor = rsi > ob_level ? color.new(color.red, 85) : rsi < os_level ? color.new(color.green, 85) : na
fill(plot(ob_level, display=display.none), plot(rsi > ob_level ? rsi : ob_level, display=display.none), color=zoneColor, title="OB Fill")
fill(plot(os_level, display=display.none), plot(rsi < os_level ? rsi : os_level, display=display.none), color=zoneColor, title="OS Fill")
//// ==== COLOR CANDLE WHEN RSI IN ZONE ====
barcolor(rsi > ob_level ? color.red : rsi < os_level ? color.green : na)
RSI with Zone ColorsRSI with zone cooler highlight for everyone
🔹 Short description (for the “Description” box)
RSI with Zone Colors
This indicator plots a classic RSI and highlights the overbought / oversold zones with clear colors.
The RSI line changes color when it enters each zone, the zones are softly filled in the RSI pane, and the price candles on the main chart are recolored whenever RSI is overbought or oversold.
It’s designed to make momentum shifts easy to see at a glance on any symbol or timeframe.
⸻
🔹 What the script does (explanation)
1. Custom RSI calculation
• Uses the price source you choose (close by default) and the RSI length you set.
• Calculates average up-moves and down-moves, then builds a classic RSI value from 0–100.
2. Configurable levels
• Overbought Level (default 70)
• Oversold Level (default 30)
• Midline at 50 is drawn automatically.
3. RSI line color by zone
• Above OB level → RSI line becomes red (overbought zone).
• Below OS level → RSI line becomes green (oversold zone).
• Between the two levels → blue (normal zone).
4. Zone lines
• Horizontal lines at Overbought, Oversold, and 50 are plotted to clearly mark each region.
5. Zone fills
• The space around the overbought area is filled with a soft red background.
• The space around the oversold area is filled with a soft green background.
• Transparency is used so the RSI line stays visible.
6. Candle colors on the main chart
• When RSI is overbought, price candles are colored red.
• When RSI is oversold, price candles are colored green.
• In the normal zone, candles keep their default color.
→ This lets you see RSI conditions directly on the price chart without looking down at the indicator pane all the time.
⸻
🔹 How to use (for “How to use / Strategy idea” section)
You can copy-paste and tweak this:
How to use
• Apply this indicator to any symbol and timeframe.
• Adjust RSI Length, Overbought Level, and Oversold Level to match your trading style (for example 14 / 80 / 20 for stronger filters).
• Use the red overbought zone to look for potential exhaustion after strong up moves.
• Use the green oversold zone to look for potential exhaustion after strong down moves.
• Candle colors on the main chart help you see when RSI is extended without taking your eyes off price.
• This script is meant as a visual aid, not a complete trading system. Combine it with your own trend, structure, and risk-management rules.
⸻
🔹 Optional disclaimer (short)
This script is for educational and informational purposes only and is not financial advice. Always test any idea on a demo account before using it with real capital.
DCA Position vs Cash HoldingThis indicator visualizes the performance of a simulated dollar-cost averaging (DCA) strategy compared to simply holding cash. It models the cumulative position size and value of buying a fixed dollar amount of the asset per candle over a configurable lookback period.
🔍 What It Shows:
Simulates buying $1 (or any amount) of the asset per candle
Tracks the total units accumulated and their current market value
Plots the difference between the DCA position value and total cash spent
Highlights when DCA buyers are underwater — a potential contrarian buy zone
📈 How to Use:
Values above zero indicate DCA outperformance vs cash
Values below zero signal structural drawdown — often a high-conviction bulk-buy opportunity
Use as a sentiment overlay to time discretionary adds or confirm regime shifts
⚙️ Inputs:
Lookback Window: Number of candles used to simulate DCA accumulation
DCA Amount: Dollar value purchased per candle
This tool is ideal for traders seeking to quantify accumulation efficiency, identify cycle inflection points, and visualize sentiment-weighted cost basis dynamics.
Taiwan Pagoda Chart (Triple) Indicator Name
Taiwan Pagoda Chart
This is a technical analysis charting method similar to candlesticks but with different logic, designed to filter market noise and identify trend reversal points.
Key Features
Dynamic Pagoda Line Plotting
Unlike traditional candlesticks that plot every bar, the Pagoda line only updates when the price breaks above the previous high or below the previous low by a certain threshold.
Bullish (rising) bars are shown in green; bearish (falling) bars in red.
Multiple Optional Filters
T-value filter: Sets a minimum price change threshold to avoid signals from minor fluctuations.
Price percentage filter: Dynamically adjusts sensitivity based on a percentage of the previous Pagoda bar’s range.
ATR volatility filter: Uses Average True Range (ATR) to widen the threshold during high volatility and tighten it during low volatility.
Visual Design
Semi-transparent Pagoda structure for better visual context.
A bold central trend line to clearly show the underlying market direction.
Trading Signal Alerts
Bullish reversal (turning green): Potential buy signal.
Bearish reversal (turning red): Potential sell signal.
Optional on-chart labels (B / S) and support for TradingView alert notifications.
Highly Customizable
Users can freely adjust colors, line width, filtering rules, and signal visibility—making it adaptable to various trading styles.
Ideal Use Cases
Trend following
Reducing false breakouts
Helping medium-to-long-term traders identify high-probability entry and exit points
Bull/Bear FVG Density RatioThis indicator tracks the directional frequency of Fair Value Gaps (FVGs) over a configurable lookback window, offering a clean, responsive measure of market imbalance.
🔍 What It Does:
Detects bullish and bearish FVGs using a 3-bar displacement logic
Calculates the ratio of FVGs to candles over the last N bars
Plots separate density curves for bullish and bearish FVGs
Includes a threshold line to help identify regime shifts (e.g., drought vs spate)
📈 How to Use:
Use rising density to confirm trend strength or breakout momentum
Watch for crossovers above the threshold to signal active imbalance regimes
Combine with price action or volume overlays for high-confluence setups
⚙️ Inputs:
Lookback Window: Number of candles used to calculate FVG density
Threshold: Visual guide for regime classification (default: 0.2)
This tool is ideal for traders who want to move beyond symptomatic signals and model structural causality. It pairs well with lifecycle scoring, retest velocity, and HTF overlays.
volume cryptosmart v2Visual Components: The 3 Layers of Information
To understand the indicator, you must see it as three layers of information superimposed on a single panel.
Layer 1: The Background Color (The "Tide" or Market Regime)
The background color of the entire panel tells you the general market condition, using an ADX/DMI filter:
Green Background: ADX is above 23 (there is a trend) and DI+ is above DI-. Regime: Bullish Trend.
Red Background: ADX is above 23 (there is a trend) and DI- is above DI+. Regime: Bearish Trend.
Black Background: ADX is below 23. Regime: Range or Consolidation.
Layer 2: The Threshold Lines (The Filters)
There are two key horizontal lines that act as filters:
"Dead Zone" Line (Dotted Blue): This is your noise filter line. It is based on the ATR. Any momentum impulse that is weaker (lower) than this line is considered irrelevant noise.
"Explosion" Line (Brown): This line is based on Bollinger Bands. It measures "normal" volatility. When a histogram impulse breaks above this line, it means the acceleration is statistically large and could be a range breakout.
Layer 3: The Histogram (The "Wave" or Acceleration)
The histogram bars (trendUp and trendDown) do not measure price or volume. They measure the acceleration of momentum (specifically, the difference between today's MACD and yesterday's MACD, multiplied by sensitivity).
The Brain: The Histogram's Color Logic
This is where the true intelligence of your indicator lies. The color of each histogram bar is decided by following a series of 4 strict rules, designed to show only high-quality signals.
Rule 1: GRAY (Dead Zone)
If the impulse (trendUp or trendDown) is weaker than the "Dead Zone" line...
Then it is painted GRAY.
Meaning: The momentum is too weak to be considered. It is noise.
Rule 2: GREEN / RED (Trend Impulse)
If the impulse exceeds the Dead Zone (Gray)...
AND the panel background is Green (bullish trend) or Red (bearish trend)...
Then the histogram is painted GREEN (for trendUp) or RED (for trendDown).
Meaning: It is a valid momentum impulse that is in favor of the main trend. These are trend continuation signals.
Rule 3: BLUE (Range Breakout)
If the impulse exceeds the Dead Zone (Gray)...
AND the panel background is Black (range-bound market)...
BUT the impulse is so strong that it breaks above the "Explosion Line" (Brown)...
Then the histogram is painted BLUE.
Meaning: This is a range breakout signal. The price is exploding from a consolidation.
Rule 4: WHITE ("Chop" or Noise)
If the impulse exceeds the Dead Zone (Gray)...
BUT it does not meet the requirements of Rule 2 (no trend) or Rule 3 (not a breakout)...
Then it is painted WHITE.
Meaning: It is a momentum impulse without a clear trend and without the strength of a breakout. It is usually "noise" or market chop and should be ignored.
The Final Confirmation: The Volume Filter
In addition to the 4 rules above, you have added a final layer of conviction:
If a signal is Green, Red, or Blue (Rules 2 or 3) and occurs with high volume (volume > 20-period MA)...
...it is painted with an intense and transparent color (High Conviction).
If it occurs with low volume...
...it is painted with a light and opaque color (Low Conviction).
How to Use: Signal Summary
Background Color Histogram Color Shade Meaning
Green Green Intense (High Vol) Strong Buy Signal (Bullish impulse with trend and volume)
Red Red Intense (High Vol) Strong Sell Signal (Bearish impulse with trend and volume)
Black Blue Intense (High Vol) Breakout Signal (The range is breaking with force)
Any White or Gray - Ignore. Noise, chop, or "dead zone".
Green/Red Green/Red Light (Low Vol) Trend signal, but with low conviction. Proceed with caution.
volume cryptosmart v2Visual Components: The 3 Layers of Information
To understand the indicator, you must see it as three layers of information superimposed on a single panel.
Layer 1: The Background Color (The "Tide" or Market Regime)
The background color of the entire panel tells you the general market condition, using an ADX/DMI filter:
Green Background: ADX is above 23 (there is a trend) and DI+ is above DI-. Regime: Bullish Trend.
Red Background: ADX is above 23 (there is a trend) and DI- is above DI+. Regime: Bearish Trend.
Black Background: ADX is below 23. Regime: Range or Consolidation.
Layer 2: The Threshold Lines (The Filters)
There are two key horizontal lines that act as filters:
"Dead Zone" Line (Dotted Blue): This is your noise filter line. It is based on the ATR. Any momentum impulse that is weaker (lower) than this line is considered irrelevant noise.
"Explosion" Line (Brown): This line is based on Bollinger Bands. It measures "normal" volatility. When a histogram impulse breaks above this line, it means the acceleration is statistically large and could be a range breakout.
Layer 3: The Histogram (The "Wave" or Acceleration)
The histogram bars (trendUp and trendDown) do not measure price or volume. They measure the acceleration of momentum (specifically, the difference between today's MACD and yesterday's MACD, multiplied by sensitivity).
The Brain: The Histogram's Color Logic
This is where the true intelligence of your indicator lies. The color of each histogram bar is decided by following a series of 4 strict rules, designed to show only high-quality signals.
Rule 1: GRAY (Dead Zone)
If the impulse (trendUp or trendDown) is weaker than the "Dead Zone" line...
Then it is painted GRAY.
Meaning: The momentum is too weak to be considered. It is noise.
Rule 2: GREEN / RED (Trend Impulse)
If the impulse exceeds the Dead Zone (Gray)...
AND the panel background is Green (bullish trend) or Red (bearish trend)...
Then the histogram is painted GREEN (for trendUp) or RED (for trendDown).
Meaning: It is a valid momentum impulse that is in favor of the main trend. These are trend continuation signals.
Rule 3: BLUE (Range Breakout)
If the impulse exceeds the Dead Zone (Gray)...
AND the panel background is Black (range-bound market)...
BUT the impulse is so strong that it breaks above the "Explosion Line" (Brown)...
Then the histogram is painted BLUE.
Meaning: This is a range breakout signal. The price is exploding from a consolidation.
Rule 4: WHITE ("Chop" or Noise)
If the impulse exceeds the Dead Zone (Gray)...
BUT it does not meet the requirements of Rule 2 (no trend) or Rule 3 (not a breakout)...
Then it is painted WHITE.
Meaning: It is a momentum impulse without a clear trend and without the strength of a breakout. It is usually "noise" or market chop and should be ignored.
The Final Confirmation: The Volume Filter
In addition to the 4 rules above, you have added a final layer of conviction:
If a signal is Green, Red, or Blue (Rules 2 or 3) and occurs with high volume (volume > 20-period MA)...
...it is painted with an intense and transparent color (High Conviction).
If it occurs with low volume...
...it is painted with a light and opaque color (Low Conviction).
How to Use: Signal Summary
Background Color Histogram Color Shade Meaning
Green Green Intense (High Vol) Strong Buy Signal (Bullish impulse with trend and volume)
Red Red Intense (High Vol) Strong Sell Signal (Bearish impulse with trend and volume)
Black Blue Intense (High Vol) Breakout Signal (The range is breaking with force)
Any White or Gray - Ignore. Noise, chop, or "dead zone".
Green/Red Green/Red Light (Low Vol) Trend signal, but with low conviction. Proceed with caution.
Easy [CHE] Easy — Minimalist Pine Script for detecting EMA direction changes to define fixed price zones for simple support and resistance visualization, ideal for manual trading workflows.
Summary
This indicator's programming is kept minimalist and super simple, with core logic in under 20 lines for easy comprehension and modification. It creates fixed price zones based on divergences between a base exponential moving average and its smoother counterpart, helping traders spot potential consolidation or reversal areas without dynamic adjustments. By locking the zone at the high and low of the signal bar, it avoids over-expansion in volatile conditions, offering a stable reference line colored by price position relative to the zone. This approach differs from expanding channels by prioritizing simplicity and persistence until a new qualifying signal, reducing visual clutter while highlighting directional bias through midpoint coloring.
Motivation: Why this design?
Traders often face noisy signals from moving averages that flip frequently in sideways markets or lag during breakouts, leading to premature entries or missed opportunities. This indicator addresses that by focusing on confirmed direction shifts between the base and smoothed averages, then anchoring a non-expanding zone to capture the initial price range of the shift. The result is a cleaner tool for marking equilibrium levels, assuming price respects these bounds in ranging or mildly trending conditions.
What’s different vs. standard approaches?
- Reference baseline: Traditional moving average crossovers or simple channels that update every bar.
- Architecture differences:
- Zones are set only on new divergence signals and remain fixed until reset by a gap from the prior zone.
- No ongoing high-low expansion; relies on persistent variables to hold bounds across bars.
- Midpoint plotting with conditional coloring based on close position, plus a highlight for zone initiations.
- Practical effect: Charts show persistent horizontal references instead of drifting lines, making it easier to gauge if price is rejecting or embracing the zone—useful for avoiding false breaks in low-volatility setups.
How it works (technical)
The indicator first computes a base exponential moving average of closing prices over a user-defined length, then applies a second exponential moving average to smooth that base. It checks if both the base and smoothed values are increasing or decreasing compared to their prior values, indicating aligned direction. A signal triggers when this alignment breaks, marking a potential shift.
On a new signal, if the current bar's high and low fall outside any existing zone (or none exists), the zone bounds update to those extremes and persist via dedicated variables. The midpoint of these bounds becomes the primary plot line, colored green if below the close (bullish lean), red if above (bearish lean), or gray otherwise. A secondary thick line highlights the midpoint briefly when a zone first sets, aiding visual confirmation. No higher timeframe data or external fetches are used, so updates occur on each bar close without lookahead.
Parameter Guide
EMA Length — Sets the period for the base moving average; longer values smooth more, reducing signal frequency but increasing lag. Default: 50. Trade-offs/Tips: Shorter for faster response in intraday charts (risks noise); longer for daily trends (may miss early shifts).
Smoother Length — Defines the period for the secondary smoothing on the base average; higher values dampen minor wiggles for stabler direction checks. Default: 3. Trade-offs/Tips: Keep low (2–5) for sensitivity; increase to 7+ if zones trigger too often in choppy markets, at cost of delayed signals.
Reading & Interpretation
The main circle plot at the zone midpoint serves as a dynamic equilibrium line: green suggests price is above the zone (potential strength), red indicates below (potential weakness), and gray shows containment within bounds (neutral consolidation). A sudden thick foreground line at the midpoint flags a fresh zone start, prompting review of the prior bar's context. Absence of a plot means no active zone, implying reliance on price action alone until the next signal.
Practical Workflows & Combinations
- Trend following: Enter long on green midpoint after a higher low touches the zone lower bound, confirmed by structure like higher highs; filter shorts similarly on red with lower highs.
- Exits/Stops: Use the opposite zone bound as a conservative stop (e.g., below lower for longs); trail aggressively to midpoint on strong moves, tightening near gray neutrality.
- Multi-asset/Multi-TF: Defaults work across forex and stocks on 1H–Daily; for crypto volatility, shorten EMA Length to 20–30. Pair with volume oscillators for confirmation, avoiding isolated use.
Behavior, Constraints & Performance
- Repaint/confirmation: Plots update on bar close using historical closes, so confirmed signals hold; live bars may shift until close but without future references.
- security()/HTF: Not used, eliminating related repaint risks.
- Resources: Minimal overhead—no loops, arrays, or bar limits exceeded; suitable for real-time on any timeframe.
- Known limits: Fixed zones may lag in strong trends (price drifts away without reset); signals skip if no gap from prior zone, potentially missing clustered shifts. Assumes standard OHLC data; untested on non-equity assets.
Sensible Defaults & Quick Tuning
Start with EMA Length at 50 and Smoother Length at 3 for balanced daily charts. If signals fire too frequently (e.g., in ranges), extend EMA Length to 100 for fewer but stabler zones. For sluggish response in trends, drop Smoother Length to 2 and EMA Length to 30, monitoring for added noise. In high-vol setups, widen both to 75/5 to filter extremes, trading speed for reliability.
What this indicator is—and isn’t
This is a lightweight visualization layer for EMA-driven zones, aiding manual chart reading and basic signal spotting. It is not a standalone system, predictive model, or automated alert generator—integrate with broader analysis like market structure and risk rules. (Unknown/Optional: No built-in alerts or multi-timeframe scaling.)
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
Trading Range Aggression Histogram
This indicator is a histogram that accumulates the net volume of aggressive buying and selling per candle, representing the dominant market pressure within defined time-frame.
The indicator works by continuously summing volumes as long as the aggression remains in the same direction, resetting and reversing the accumulation when the pressure changes sides.
This creates visual waves that facilitate the perception of phases dominated by buyers and sellers over time. The tool is useful to identify moments of strength, weakness, and potential reversals in a dynamic market, especially in short-term trading.
Ohm's Law Market Model (V=I·R)Ohm's Law Market Model (V=I·R)
This indicator applies the concept of Ohm's Law from physics to the financial markets, creating a model to analyze market dynamics as if they were an electrical circuit.
The core idea is:
Voltage (V): Represents price "pressure" or the strength of a recent price move (the return).
Current (I): Represents the "flow" of transactions, measured by volume relative to its average.
Resistance (R): Represents the market "friction" or difficulty of moving the price.
By combining these, the indicator calculates Power (P), which signifies the overall energy and strength behind a market move.
How to Read the Indicator
This indicator displays five main lines in an oscillator panel below your chart. By default, they are "Z-score normalized," meaning they show how many standard deviations away from their 200-bar average they are.
A value of 0 is "normal."
A value of +2.0 is "very high" or "very strong."
A value of -2.0 is "very low" or "very weak."
The 5 Plots
Voltage (V) - Teal/Red:
Above 0 (Teal): Positive price pressure (price has gone up recently).
Below 0 (Red): Negative price pressure (price has gone down recently).
What it means: How much "push" is behind the price?
Current (I) - Teal/Red:
Above 0 (Teal): High, positive transaction flow (high volume on up-moves).
Below 0 (Red): High, negative transaction flow (high volume on down-moves).
What it means: Is volume confirming the price push?
Resistance (R) - Orange:
High (e.g., > 0.5): High market friction. It's hard to move the price. This can be caused by low volume (low Current) or high volatility (ATR friction).
Low (e.g., < 0): Low market friction. It's easy to move the price.
Conductance (G) - Blue:
This is simply the inverse of Resistance (G = 1/R).
High (e.g., > 0.5): The market is "conductive." Price can move easily.
Low (e.g., < 0): The market is "non-conductive." Price movement is difficult.
Power (P) - Purple (Thick Line):This is the most important line, as it combines Voltage and Current (P = V * I).
High (e.g., > 1.0): Indicates a very strong, energetic, and well-supported trend (high price pressure and high volume flow).
Low (e.g., < -0.5): Indicates a weak, "exhausted" market, or a strong "anti-trend" (e.g., a sharp drop with high volume).
Key Signals
The indicator generates two primary signals, shown as triangles on the chart:
Breakout (BRK) - Teal Triangle Up:
This appears when Power is high and Conductance is high. Interpretation: The market is showing a lot of energy (high Power) and it's easy for the price to move (high Conductance). This is a classic sign of a strong breakout or trend continuation.
Exhaustion (EXH) - Red Triangle Down: This appears when Power is low and Resistance is high.I nterpretation: The market has very little energy (low Power) and it's very difficult to move the price (high Resistance). This often signals that a trend is running out of steam and may be at an exhaustion point, ripe for a reversal.
Key User Inputs
Voltage Window (20): How far back (in bars) to look to measure the price "push" (Voltage).
Current Baseline (50): The moving average length used to normalize volume (Current).
Z-score normalize plots (Checked): This is the setting that makes all plots revolve around the "0" line. It's highly recommended to keep this on.
Include ATR Friction (Checked): Adds a volatility (ATR) component to Resistance. When checked, high volatility increases resistance, making it "harder" for a trend to continue, which is a realistic model.
Relational RSI - Trend IdentifierThis indicator analyzes the relationship between Price and RSI. It doesn't just show you the current RSI value; it compares the current Price-to-RSI relationship against thousands of historical examples to see if the market is behaving "normally."
The core idea is to identify when this historical relationship "decays" or breaks.
Positive (Green): Price is higher than it "should be" for the current RSI level, based on history. This is a sign of bullish strength or over-exuberance.
Negative (Red): Price is lower than it "should be" for the current RSI level. This is a sign of bearish weakness or being oversold.
Zero Line: Price is exactly where history suggests it should be for the current RSI. This is the "normal" or equilibrium state.
Think of it as an "expectations" indicator. Is the price over-performing or under-performing relative to its typical momentum signature?
How to Read the Indicator
1. The Main Oscillator (Relational Decay)
This is the central line that moves above and below zero.
Rising (Bullish Decay): When the line moves up, it means bulls are in control, pushing price higher than the RSI momentum would normally suggest.
Falling (Bearish Decay): When the line moves down, it means bears are in control, suppressing price lower than the RSI momentum would normally suggest.
Extreme Readings (> 2.0 or < -2.0): These are the dotted/dashed lines. Reaching these zones means the market is in an "extreme" state of deviation—either extremely over-extended (top) or extremely oversold (bottom) relative to its own history.
2. Background Color (Relationship Strength)
The background color tells you how reliable the indicator's main signal is right now.
Blue Background: High strength. The historical Price-RSI relationship is stable and consistent. The oscillator's readings are reliable.
Orange Background: Low strength. The historical relationship is weak, volatile, or inconsistent. The oscillator's readings are less reliable—the market is choppy or "out of character."
3. Diamonds (Extreme Reversal Signals)
These diamonds appear at potential exhaustion points.
Aqua Diamond (at bottom): An "Extreme Bullish Reversal." This appears when the indicator was at an extremely negative (bearish) level and has just started to turn up. It's a potential bottoming signal.
Fuchsia Diamond (at top): An "Extreme Bearish Reversal." This appears when the indicator was at an extremely positive (bullish) level and has just started to turn down. It's a potential topping signal.
4. The Info Table (Top Right)
This table provides a snapshot of the current state:
RSI/Price: Your current values.
Expected Price: The price the indicator "expects" to see based on the current RSI and historical data. This is the most important number.
Relational Decay: The main oscillator's value. It's essentially the difference between the Current Price and the Expected Price, normalized.
State: A simple text description (e.g., "Stable," "Strong Bullish Decay").
Matches Found: How many historical data points the script found to make its calculation.
Strength: The "Relationship Strength" (background color) as a percentage.
Key User Inputs
RSI Period (14): The lookback for the standard RSI calculation.
Historical Lookback (500): How many past bars the indicator should analyze to build its "normal" model. A larger number gives it more historical context.
RSI Similarity Threshold (3.0): How close the current RSI must be to a historical RSI to be considered a "match."
Normalization Method (Z-Score): The statistical method used to scale the output. Z-Score is standard and robust. "Percentile" and "Raw" are other options for different ways of viewing the deviation.
RSI Regime: Continuation vs Reversal Indicator Description: RSI Regime (Continuation vs. Reversal)
This indicator uses the standard Relative Strength Index (RSI) to analyze market momentum and categorize it into three "regimes." Its primary goal is to help you determine if an overbought (OB) or oversold (OS) signal is likely to be a continuation of the current trend or a reversal point.
It also identifies "Fast Trend Starts," which are exceptionally fast and powerful moves from one extreme to the other.
Core Features & How to Read It
1. The Three RSI Regimes (Background Color) The script calculates a moving average (SMA) of the RSI to determine the dominant medium-term momentum. This is shown as the background color:
Bull Regime (Green Background): The RSI's average is high (e.g., above 55). The market is in a clear uptrend.
Bear Regime (Red Background): The RSI's average is low (e.g., below 45). The market is in a clear downtrend.
Range Regime (Orange Background): The RSI's average is in the middle. The market is consolidating or undecided.
2. Overbought (OB) & Oversold (OS) Signals
When the RSI line crosses into the overbought (e.g., >70) or oversold (e.g., <30) zones, the indicator generates one of two types of signals:
A) Continuation Signals (Small Triangles: ►)
These signals suggest an OB/OS reading is just a "pause" and the main trend will likely continue.
Orange ► (at the top): Appears when RSI becomes overbought while the market is already in a Bull Regime. This suggests the uptrend is strong, and this OB signal may not lead to a big drop.
Teal ► (at the bottom): Appears when RSI becomes oversold while the market is already in a Bear Regime. This suggests the downtrend is strong, and this OS signal may not lead to a big bounce.
(Note: An optional Price EMA filter can be enabled to make these signals more strict.)
B) Reversal Signals (Small Labels: "OS→>50" / "OB→<50")
These labels appear after an OB/OS signal to confirm that a reversal has actually occurred.
"OS→>50 Reversal" (Aqua Label): Appears if the RSI becomes oversold and then recovers back above the 50 midline within a set number of bars. This confirms the oversold dip was a reversal point.
"OB→<50 Reversal" (Orange Label): Appears if the RSI becomes overbought and then falls back below the 50 midline within a set number of bars. This confirms the overbought peak was a reversal point.
3. "Fast Trend Starts" (Large Labels)
This is a unique feature that identifies the fastest percentile of market moves. It measures how many bars it takes for the RSI to go from one extreme to the other and flags when a move is in the top 5% (default) of all historical moves.
"Long Pullbacks (Fast OS→BullRange)" (Large Green Label): This powerful signal appears when the RSI moves from oversold (<30) all the way up to the bull range (>60) exceptionally fast. It identifies a very strong, fast, and decisive bounce that could signal the start of a new uptrend.
"Short Pumps (Fast OB→BearRange)" (Large Red Label): This appears when the RSI moves from overbought (>70) all the way down to the bear range (<40) exceptionally fast. It identifies a very sharp, fast rejection or "pump-and-dump" that could signal the start of a new downtrend.
Key User Inputs
RSI Length (14): The lookback period for the main RSI calculation.
OB (70) / OS (30): The standard overbought and oversold levels.
Bull/Bear Range Threshold (60/40): These are the levels used to confirm the "Fast Trend Starts." They are separate from the OB/OS levels.
RSI Regime SMA Length (21): The lookback period for the moving average that determines the background regime.
Use Price EMA filter (true): If checked, the small "Continuation" triangles will only appear if the price is also above (for bulls) or below (for bears) its own 50-period EMA.
Fastest X% duration (5.0): This sets the percentile for the "Fast Trend Start" labels. 5.0 means it only flags moves that are in the fastest 5% of all recorded moves.
VWAP CATS background flipped 4.0VWAP CATS Background Flipped 4.0 is a sophisticated Pine Script v5 indicator for TradingView that combines a configurable moving average (MA) with dynamic Gann Square of 9 levels to create a multi-layered background shading system for price action analysis. It visualizes support/resistance zones around a central MA (often VWAP or RVWAP) using incremental offsets (either % or absolute points), generating symmetrical bands that resemble a "CATS" (Concentric Adaptive Tiered System) — hence the name.The background is "flipped" in the sense that shading intensity and structure emphasize higher-tier zones, and labels are placed to the right of the chart for future projection.Key FeaturesFeature
Description
Multi-MA Engine
Supports 20+ MA types: EMA, DEMA, TEMA, SMA, VWAP, RVWAP, HMA, ALMA, custom volume blends (CVB1–4)
RVWAP Mode
Rolling VWAP with adaptive or fixed time window (days/hours/minutes)
Gann Square of 9 Logic
Generates 80+ symmetric levels (0.25x to 17x increment) above/below the MA
Dual Increment Mode
Choose Percent or Points for spacing
Background Fills
Tiered transparency fills between Gann levels (darker = stronger zones)
Visual MA Offset
Shift MA line left/right without breaking fill alignment
Smart Labels
Projected labels on last bar: "FV", "normal", "high", "3/4" at key levels
Performance Optimized
Hidden plots + label cleanup to prevent lag
Primary Use Cases
1. Institutional VWAP Anchoring
Use RVWAP (1-day fixed) as maRaw
Set Increment = 0.5 points or 0.05%
Watch price interaction with "normal" (2x), "high" (4x), "3/4" (6x) zones
Ideal for intraday scalping on indices (ES, NQ) or forex
2. Swing Trading with Gann Projections
Use 400-period SMA/EMA on daily chart
Increment in Percent mode (~1.22%)
Identify confluence when price rejects at 2x, 4x, or 6x bands
Labels project future targets to the right
3. Volume-Weighted Mean Reversion
Select CVB1–CVB4 for heavy volume smoothing
Use Points mode for stocks with stable tick sizes (e.g. $0.50 increments)
Trade mean reversion between ±1x and ±2x bands
4. Risk Management & Stop Placement
Place stops beyond 2x or 4x bands
Take profits at next major tier (e.g. 4x → 6x)
Pro Tips
Enable "Use Fixed Time Period" for RVWAP to avoid session reset issues
Increase i_label_offset on lower timeframes to avoid overlap
Combine with volume profile or order flow for confluence
The "FV" label marks the Fair Value MA — core anchor
Summary"VWAP CATS Background Flipped 4.0" turns any moving average into a dynamic Gann-based pricing grid with intelligent background shading and forward-projected labels — perfect for institutional-style mean reversion, swing targeting, and risk-defined trading."
US30 15m Trap & Liquidity Sweep Detectorshowcases trapped traders that are on the chart or the market
Moving Average Ribbon (10x, per-MA timeframe)A flexible moving‑average ribbon that plots up to 10 MAs, each with its own type, length, source, color, and independent timeframe selector for true multi‑timeframe analysis without repainting on higher‑timeframe pulls.
What it does
Plots ten moving averages with selectable types: SMA, EMA, SMMA (RMA), WMA, and VWMA.
Allows per‑line timeframe inputs (e.g., 5, 15, 60, 1D, 1W) so you can overlay higher‑ or equal‑timeframe MAs on the current chart.
Uses a non‑repainting request pattern for higher‑timeframe series to keep lines stable in realtime.
How to use
Leave a TF field blank to keep that MA on the chart’s timeframe; type a timeframe (like 15 or 1D) to fetch it from another timeframe.
Typical trend‑following setup: fast MAs (10–21) on chart TF, mid/slow MAs (34–200) from higher TFs for bias and dynamic support/resistance.
Color‑code faster vs slower lines and optionally hide lines you don’t need to reduce clutter.
Best practices
Prefer pulling equal or higher timeframes for stability; mixing lower TFs into a higher‑TF chart can create choppy visuals.
Combine with price action and volume/volatility tools (e.g., RSI, Bollinger Bands) for confirmation rather than standalone signals.
Showcase example charts in your publish post and explain default settings so users know how to interpret the ribbon.
Inputs
Show/Hide per MA, Type (SMA/EMA/SMMA/WMA/VWMA), Source, Length, Color, Timeframe.
Defaults cover common lengths (10/20/50/100/200 etc.) and can be customized to fit intraday or swing styles.
Limitations
This is an analysis overlay, not a signal generator; it doesn’t place trades or alerts by default.
Effectiveness depends on instrument liquidity and user configuration; avoid overfitting to one market or regime.
Attribution and etiquette
Provide a brief explanation of your calculation choices and note that MA formulas are standard; credit any borrowed concepts or snippets if used.






















