Duggan Capital ValueScript with lines for previous Vwaps.
GOD VIEW $$$$$$$$$$ WE ARE SHAKING VOL WHEN YOU SLEEP
Statistics
Cash-and-Carry Yield (APR)This indicator calculates and visualizes the annualized rate of return for Cash-and-Carry arbitrage strategies by comparing a specific Futures contract against its underlying Spot price. By automatically projecting the current price spread (basis) based on the exact time remaining until expiration, it allows traders to instantly assess the potential "risk-free" yield available in the market.
The script is engineered to support both continuous 24/7 crypto markets and traditional CME futures. It features a smart "Gap Handling" setting that allows users to choose between a strict view that respects market closes (showing "Market Closed" during weekends) or a filled view that carries over the last known price for a seamless chart experience.
Visually, the indicator displays the annualized yield as a histogram; green columns indicate a Contango market (positive yield), while red columns signal Backwardation. A Simple Moving Average (SMA) is overlaid to help identify the broader yield trend amidst volatility. An integrated dashboard table in the corner provides a real-time summary of the Spot Price, Future Price, absolute spread, and the precise number of days left until expiration. Please ensure the Futures Ticker and the corresponding Expiration Date are correctly entered in the settings for accurate time-weighted calculations.
USDC/USDT PremiumUSDC/USDT Premium Index
Overview
This indicator tracks the premium or discount of USD Coin (USDC) relative to Tether (USDT) using data from Binance. It serves as a barometer for sentiment within the stablecoin market. A premium on USDC often suggests a flight to quality or higher demand for a stablecoin perceived as more transparent and regulated.
Key Features
•
Premium Calculation: The premium is calculated as (USDC/USDT Price - 1) * 100 to represent the deviation from parity in basis points. For example, a value of 0.1 means USDC is trading at a 0.1% premium to USDT (i.e., a price of 1.001).
•
Dynamic Coloring: The indicator's line color changes based on its position relative to a moving average (MA):
•
Green: The premium is currently above its moving average, suggesting bullish momentum for USDC.
•
Red: The premium is below its moving average, indicating bearish momentum.
•
Zero Line: A zero line is plotted to clearly distinguish between a premium (above zero) and a discount (below zero).
•
Customizable MA: You can adjust the moving average period and type (SMA, EMA, etc.) to fine-tune the indicator's sensitivity.
How to Use
1.
Gauge Stablecoin Sentiment: A rising premium (green line) can indicate that traders are favoring USDC over USDT, which might happen during times of market uncertainty or concerns about USDT's reserves.
2.
Identify Shifts in Momentum: Look for the color to flip from red to green as a sign that the USDC premium is gaining strength. A flip from green to red may signal a weakening trend.
3.
Spot Extremes: Extreme deviations from the zero line can signal market stress or significant capital flows between the two major stablecoins.
Interpretation
•
Green Line (Premium > MA): Suggests that the short-term trend for the USDC premium is positive and strengthening.
•
Red Line (Premium < MA): Suggests that the short-term trend is negative, with USDC's value declining relative to its recent average against USDT.
•
Above Zero Line: USDC is trading at a premium to USDT.
•
Below Zero Line: USDC is trading at a discount to USDT.
This tool provides a nuanced view of the stablecoin ecosystem, helping traders understand capital flows and risk appetite. It is most effective when used to complement a broader market analysis strategy.
Multi-Symbol RSI Portfolio Simulator [Honestcowboy]The Multi-Symbol RSI Portfolio Simulator was build to test a theory, does the RSI indicator work in FOREX assets. Does it have predictive power. In this example the security function is used to fetch data for 40 different Forex pairs and it executes a very simple trading strategy. Sell when RSI hits 80, flatten if back below. Buy when RSI hits 20, flatten if back above. All executed on bar closes so no intra bar stuff.
🟦 🟦 🟦 Very Important Disclaimer
This is a very crude indicator which does not calculate trading costs and assumes perfect execution of trades with zero slippage. Forex markets carry high risk and most CFD brokers ask high spreads and trading costs so this approach will most likely only work on the H4 or above Daily charts. We are observing market behaviour here, it's a study of price action not an executable ready strategy. Do your own cost analysis, simulation if you want to take this idea further.
🟦 What is the point?
I build this indicator to prove that RSI indeed causes price action reactions especially on the intraday level in forex. Just like any study or paper not accounting for trading costs, this is just hypothetical and a starting point.
🟦 CALCULATION
On each bar close it will check RSI value for each pair in the list. If one of the pairs meets the condition for a long or short it will open that trade on next bar open and hold it till close. Add the profits/losses to the equity line. And if condition still true on next bar do it again, this is a very crude simple form of testing. Tradingview strategy tester is superior but does not allow for multi-pair trading.
Short Condition: RSI above 80
Short Exit: RSI below 70
Long Condition: RSI below 20
Long Exit: RSI above 30
The indicator also has 2 modes: Mean reversion and Trend mode. On default it uses Mean Reversion which is explained above. Trend mode does the exact opposite, so long above 80 short below 20.
I've also included a table with a heatmap showing all the trading pairs the indicator uses, it's current RSI value and color based on how close indicator is to shorting or longing it from green to red with gray being middle so no direction.
🟦 USE CASES
You can tweak the setting for different RSI values. Different RSI lengths and also freely change any trading pair inside the list to make your own test. I'm including some screenshots of tests here below:
StO Price Action - Panel US Economy DataShort Summary
- Displays selected us economic data as a time series graph
- Economic indicator name shown in the upper-right corner
- Designed as a lightweight fundamental context overlay
Full Description
Overview
- Plots economic macro data as a continuous graph
- Combines visual trend context with clear textual identification
Supported Economic Data
- CPI – Consumer Price Index
- CIR – Core Inflation Rate (YoY)
- IRYY – Inflation Rate (YoY)
- IJC – Initial Jobless Claims
- JC4W – Jobless Claims (4-Week Average)
- NFP – Nonfarm Payrolls
- UR – Unemployment Rate
Graph Behavior
- Selected economic series is rendered as a line graph
- Graph color is user-configurable
Label Display
- Full descriptive name of the selected indicator
- Fixed position in the upper-right corner
Usage
- Helps identify macro trends alongside price action
- Useful for bias alignment on higher timeframes
- Works well with Trend-following Systems or higher-timeframe structure analysis
Notes
- Economic data is informational and non-predictive
- Not a signal or timing tool
- Best used as contextual background not standalone input
Dealer Control Index (DCI) Oscillator BreakoutsOverview
The Dealer Control Index (DCI) is a structural oscillator designed to measure market stability based on the relationship between price and key institutional "hedging levels" (Gamma Flip). Unlike momentum-based oscillators like RSI, the DCI focuses on Dealer Gamma Exposure—the point where market makers shift from supporting price (Long Gamma) to accelerating moves (Short Gamma).
How to Use
This indicator requires a Manual Anchor (Flip Level) to function with high precision. Users should identify the current institutional Gamma Flip level for their specific ticker and input it into the script settings.
Positive Score (+25 to +100): Price is above the Flip Level. Dealers are in a "Long Gamma" position, typically resulting in lower volatility and "dip-buying" behavior.
Neutral Zone (-75 to +25): The "Transition Zone." Price is fluctuating near the hedge-rebalancing point. Expect "choppy" price action.
The Gamma Trap (-75 to -100): Price has snapped significantly below the Flip Level. Dealers are now "Short Gamma" and may be forced to sell into further price drops to hedge their books, potentially creating a "Waterfall" effect.
Key Features
Volatility Normalized: Uses ATR-based normalization to ensure the -100 to +100 scale is consistent across different asset classes (e.g., comparing SPY to NVDA).
Sigmoid Smoothing: Employs a sigmoid curve to filter out "market noise" and provide a clear visual of when the regime shift is actually occurring.
Visual Regimes: Color-coded zones (Green/Red) provide instant feedback on the current dealer hedging bias.
Absorption Pro V4This indicator detects absorption-style reversal setups and scores them with a multi-factor model.
It builds key levels from ZigZag/Fibonacci and round numbers across multiple timeframes, then flags potential absorption candles using volume and a delta-proxy filter plus strict candle-structure rules. Signals are validated with trend context (MA/SMMA/EMA/ATR), VWAP positioning, and optional momentum/volatility filters (RSI, Stoch, CCI, MACD, ADX, Volume Profile). Only score-threshold crosses can trigger long/short markers and alerts (defaults tuned for NQ).
Volume Variance SuppressionVolume Variance Suppression Indicator
This indicator measures the variance of traded volume over a rolling window to detect periods of participation compression.
When volume variance falls below a defined threshold, it signals:
Reduced initiative order flow
Dominance of passive liquidity
Market balance / consolidation rather than trend
These suppression phases often precede volatility expansion, failed auctions, or impulsive moves, as liquidity builds and positioning becomes crowded.
The indicator is not directional and should be used as a market state filter, not a standalone signal. It helps distinguish balance vs expansion regimes and improves trade selection by aligning strategies with the current microstructural environment.
GR/Awesome Bill Williams [ReiConcept]📊 AWESOME OSCILLATOR SIGNALS - Bill Williams Method
This free indicator displays the 3 classic Awesome Oscillator signals directly on your chart:
🔄 TWIN PEAKS (Reversal)
Detects divergences below/above the zero line to anticipate trend reversals.
✕ CROSS (Crossover)
Classic zero line crossover signal - momentum change.
〰️ SAUCER (Continuation)
Identifies continuation opportunities within the current trend.
🌤️ MARKET WEATHER
A visual panel instantly shows market conditions:
- ☀️ Strong Bullish (AO positive + rising)
- 🌤️ Bullish (AO positive + falling)
- 🌥️ Bearish (AO negative + rising)
- 🌧️ Strong Bearish (AO negative + falling)
⚙️ SETTINGS
- Customizable MMA periods (default: 5/34)
- Enable/disable each signal type
- Candle coloring based on momentum
🔔 ALERTS INCLUDED
Get notified for every BUY or SELL signal.
⚡ PREMIUM VERSION
An advanced version with automatic TP/SL and built-in backtesting is available at reiconcept.fr
⚠️ DISCLAIMER: This indicator is a decision-support tool. It does not constitute investment advice. Trading involves risk of capital loss.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🇫🇷 VERSION FRANÇAISE
📊 AWESOME OSCILLATOR SIGNALS - Méthode Bill Williams
Cet indicateur gratuit affiche les 3 signaux classiques de l'Awesome Oscillator directement sur votre graphique :
🔄 TWIN PEAKS (Retournement)
Détecte les divergences sous/sur la ligne zéro pour anticiper les retournements de tendance.
✕ CROSS (Croisement)
Signal classique de croisement de la ligne zéro - changement de momentum.
〰️ SAUCER (Continuation)
Identifie les opportunités de continuation dans la tendance en cours.
🌤️ MÉTÉO DU MARCHÉ
Un tableau visuel vous indique instantanément l'état du marché.
⚠️ AVERTISSEMENT : Cet indicateur est un outil d'aide à la décision. Il ne constitue pas un conseil en investissement. Le trading comporte des risques de perte en capital.
Performance Table: Standard DCA | Last 6-12-24-48MThis indicator visualizes Standard Dollar-Cost Averaging (DCA) performance across multiple time horizons (6M, 12M, 24M, 48M).
It summarizes invested capital, current portfolio value, net profit, and return percentage in a compact table, allowing quick comparison of short- and long-term DCA outcomes.
Designed for long-term investors, it helps evaluate how consistent periodic investments perform over time without relying on market timing.
The indicator is asset-agnostic and works on any symbol supported by TradingView.
Key use cases:
Long-term portfolio tracking
DCA strategy validation
Performance comparison across periods
Educational and analytical purposes
This tool focuses on clarity and realism, avoiding over-optimization and short-term noise.
--
I hope this table helps investors better understand long-term DCA performance.
Feedback and suggestions for improvement are always welcome.
Trailing Stoploss % BasedA minimalistic trend-following indicator that plots a single trailing line based on a user-defined percentage using price highs and lows.
The line:
Trails price in trends
Moves only in the direction of the trend
Flattens when price is not making new highs or lows
Acts as support in uptrends and resistance in downtrends
Useful on all instruments and all timeframes for clean trend tracking and trailing stop management.
Halo MTF Market Bias (Bull / Bear)This indicator is designed to provide a clear directional market bias at a glance, using a clean and easy-to-read multi-timeframe analysis.
It allows traders to quickly determine whether the market is bullish or bearish, helping them trade only in the direction of the overall market context.
The indicator automatically analyzes the bias on the following timeframes:
1 minute
5 minutes
15 minutes
30 minutes
1 hour
4 hours
Daily
👉 Works on all markets: Crypto, Forex, Indices, Gold, and more.
⚠️ Important
This indicator is not a trading system.
It should be used as a decision-support tool, always combined with a clear strategy and proper risk management.
Volume Profile: Date-Range ObservationI have refined the strategy developed by kv4coins , incorporating an additional option for the observation date range. Previously, when seeking a fixed date range—particularly to track data from the onset of an event-driven trigger up to the present—it was somewhat cumbersome. To address this, I added a new date selection feature to accommodate the need for observing specific time periods.
Vortex Indicator (Smoothed Version)The original tradingview vortex indicator but with smoothed as default
Sharpe & Sortino RatiosRisk Ratios Indicator for TradingView — User Guide
What It Does
The Risk Ratios Indicator measures the quality of returns by analyzing risk-adjusted performance. It calculates two essential statistics that professional fund managers use daily: Sharpe Ratio and Sortino Ratio. Unlike price-based indicators, this tool ignores noise and focuses on the fundamental question: "Am I getting paid fairly for the risk I'm taking?"
The Two Metrics
Sharpe Ratio measures excess return per unit of total volatility. It captures how much profit you earn above the risk-free rate (Treasury bonds) for every unit of price fluctuation you endure. A Sharpe of 2.0 is considered excellent; 1.0 is acceptable; below 0.8 suggests poor risk-adjusted returns. Higher is always better.
Sortino Ratio improves on Sharpe by measuring excess return per unit of downside volatility only. It ignores upside swings, treating only losses as risk—which mirrors how real investors think. Most assets show Sortino ratios 20-40% higher than Sharpe ratios because upward price movement shouldn't penalize you. Sortino is the superior metric for identifying true alpha generators.
How to Use It
Apply the indicator to any ticker. Three adjustable parameters control the calculation: Lookback Period (default 252 days = one full year), Risk-Free Ticker (default SHV, a short-term Treasury ETF that dynamically tracks actual interest rates), and Sortino Target (the minimum acceptable daily return, default 0%).
The blue line represents Sharpe; the green line represents Sortino. Monitor both simultaneously: if Sortino significantly exceeds Sharpe, downside risk is well-controlled. If they converge, volatility is symmetric (risky in both directions).
Interpretation
Watch the reference lines. Ratios above 2.0 indicate excellent risk-adjusted returns—rare and desirable. Ratios between 1.0-2.0 are good for institutional investing. Below 1.0 means volatility is eating profits; below 0 indicates losses. For asset comparison, choose the ticker with the highest Sortino relative to its peers.
Use this alongside price analysis to confirm that gains aren't just leveraged luck—they're genuine alpha backed by disciplined risk management.
Broadening Formation Reclaim Stats v1.0Description: Broadening Formation Reclaim Stats v1.0
Overview
The Broadening Formation Reclaim Stats is a technical analysis tool designed to track and quantify "reclaim" price action within expanding market structures (Broadening Formations). It focuses on scenarios in which price breaches a prior Swing High or Swing Low and subsequently rotates back into the range, often signaling a potential reversal toward the opposite side of the formation.
This indicator is built for traders who study price action rotations, "The Strat" (Rev 2-2 / Failed 2-Down/Up), and liquidity sweeps.
How It Works
The script utilizes a state-machine logic to track price movements relative to high and low pivots:
1. Structure Identification: It identifies recent Pivot Highs and Lows (Auto-Swing mode) or allows users to input specific price levels (Manual mode).
2. The Breach: It identifies when price breaks above the established high or below the established low, "locking" the structure for a potential reclaim.
3. The Reclaim: A signal is generated when price moves back inside the range using specific price action triggers:
Rev 2-2: A reversal pattern where price reverses the direction of the previous candle.
Failed 2-Down/Up: Price makes a new wick extreme but closes back within the previous candle's range and below its opening price.
4. Targets: The script considers a reclaim "Successful" if price reaches the opposite side of the broadening formation (the opposing pivot).
Key Features
Backtesting Dashboard: A real-time table displaying the total number of reclaims, global success rates, and a breakdown of Bullish vs. Bearish performance.
Flexible Lookbacks: Statistics can be calculated based on the entire chart history, "Today Only" (for day traders), or a specific number of bars.
Dual Mode Detection: Choose between **Auto Swing** detection (based on a user-defined pivot length) or **Manual** mode for specific levels.
Optimized Visuals: Uses the Pine Script Plot Engine for core levels to ensure price-scale stability and "Box Objects" for clear pivot visualization.
Settings
Swing Length: Adjust the sensitivity of the pivot detection.
BF Mode: Toggle between automatic pivot tracking or manual price entry.
Statistics Start Mode: Filter the data displayed in the table to focus on recent price action or historical performance.
UI Customization: Fully adjustable table position, size, and transparency.
Disclaimer
This indicator is for educational and research purposes only. It tracks historical price action patterns and does not constitute financial advice. Past performance (success rates) as displayed in the dashboard is not an indicator of future results.
Opening Gaps (RTH Gap, NDOG, NWOG, NMOG) [Tradeisto]This indicator is a comprehensive tool developed to monitor significant market opening gaps across daily, weekly, and monthly timeframes, as well as specific Regular Trading Hours (RTH) gaps. It automates the detection and visualization of these key institutional levels, providing real-time status updates and mitigation tracking.
Key Features:
Multi-Timeframe Gap Tracking:
NDOG (New Day Opening Gap): Monitor daily opening gaps based on official settlement.
NWOG (New Week Opening Gap): Track weekly opening gaps.
NMOG (New Month Opening Gap): Track monthly opening gaps.
RTH Gap: Specifically monitors the Regular Trading Hours (RTH) gap.
Live RTH Gap Dashboard:
Real-Time Status: Instantly see if the current RTH gap is Bullish or Bearish.
Mitigation Tracking: Live updates on whether the gap is Unmitigated, Partially Mitigated, or Fully Mitigated (100%).
Smart Range Display: Shows the exact gap range (Abs(PrevClose - Open)). Displays "RTH Closed" during post-market hours.
Professional Settlement Logic:
Utilizes advanced ticker.modify logic to fetch Official Settlement Prices for true gap accuracy, ensuring levels match institutional standards.
Includes a Back-Adjusted Futures option for continuous contract analysis.
Intelligent Chart Management:
Auto-Hide on HTF: Automatically hides gap boxes and labels on timeframes greater than 4 hours to keep charts clean.
Customizable History: User-defined limits for how many days, weeks, or months of history to display.
Visual Customization:
Full control over colors, labels, and visibility for every gap type.
Clean, informative labels with Trading Day accuracy.
Magic Hour Range + Window Levels (0/50/75/100 + Extensions)This indicator plots one or more “Magic Hour” ranges (by ET hour) by drawing the hour’s high/low box, then extending an aligned post-hour analysis window for a set number of hours. Inside that window it overlays key reversion targets—0% (High), 50% (Mid), 100% (Low), optional 25%/75%—plus optional extension levels beyond the range (±25/50/75/100% and extras). All levels are clipped to the analysis window for a clean, session-by-session view of range, targets, and extensions.
Opening Range (RTH, Globex, Tokyo, London) [Tradeisto]This indicator provides a comprehensive solution for monitoring Opening Ranges across major global trading sessions—RTH (New York), Globex, Tokyo, and London, within a single script. It is designed for stability and precision on all timeframes.
Key Features
Multi-Session Support: Track four distinct opening ranges simultaneously:
RTH (New York): Auto-detects based on asset class:
Indices (NQ, ES, YM): 09:30 NY
Metals (Gold/Silver): 08:20 / 08:25 NY
Energy (Oil/NatGas): 09:00 NY
Currencies & More: Automatically sets the correct pit open.
Globex: 18:00 America/New_York
Tokyo: 09:00 Asia/Tokyo
London: 08:00 Europe/London
Native Timezone Handling:
Automatically adjusts for Daylight Saving Time (DST) using native Pine Script timezones.
Smart Labeling: Evening sessions (Globex, Tokyo) display the correct "Trading Day" date (e.g., Sunday evening labeled as Monday).
Hybrid Data Engine:
Ensures stability by automatically switching data fetching methods based on your chart's timeframe.
Zoom In: Uses request.security_lower_tf for high-resolution data when the Chart Timeframe > Session Duration.
Zoom Out: Uses standard request.security when the Chart Timeframe <= Session Duration, preventing runtime errors.
Customizable Durations:
Independently configure durations for each session (30s, 1m, 5m, 15m, 30m).
How to Use
Add Opening Range to your chart.
Open Settings to enable or disable specific sessions.
Select the desired Duration for each session.
Customize colors and borders to fit your chart theme.
ATR Volatility RegimeATR Volatility Regime
A volatility classification indicator that uses ATR (Average True Range) percentile ranking to identify LOW , NORMAL , HIGH , or EXTREME volatility conditions.
Displayed as a separate pane oscillator (0–100 scale) with colored zones.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 WHY THIS INDICATOR?
Most volatility indicators show raw ATR — a number without context. Is ATR = 50 high or low? Depends on the asset and recent history.
This indicator answers: "Is current volatility high or low for THIS asset, right now?"
What it adds over standard ATR:
Percentile context — Compares current ATR to its own history
Regime classification — Actionable labels instead of raw numbers
Visual zones — Instant read without interpretation
Optional MTF — Lock to a fixed timeframe while viewing another
Auto-adapts — Works on any asset without manual threshold tuning
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 CORE CONCEPTS
ATR (Average True Range)
Measures volatility in price units — how much an asset typically moves per bar. Directionless (magnitude only, not direction).
Calculation:
True Range = the greatest of:
High − Low (current bar's range)
|High − Previous Close| (gap up captured)
|Low − Previous Close| (gap down captured)
ATR = Moving average of True Range over N bars (default: 14)
Percentile Rank (Pctl)
Answers: "What percentage of historical values is the current value greater than?"
Pctl = 0% → Lowest ATR in lookback period (extreme compression)
Pctl = 50% → Median ATR (typical volatility)
Pctl = 100% → Highest ATR in lookback period (extreme expansion)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IT DOES
Classifies current volatility into four regimes:
LOW (< 25th percentile) — Compression, breakout likely brewing
NORMAL (25th–50th percentile) — Typical market conditions
HIGH (50th–75th percentile) — Elevated volatility, use caution
EXTREME (> 75th percentile) — Rare expansion, tighten stops or stay flat
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 DISPLAY COMPONENTS
Oscillator Line (0–100)
ATR percentile rank over time. Color matches regime:
Blue = LOW
Gray = NORMAL
Orange = HIGH
Red = EXTREME
Zone Backgrounds
Colored bands at threshold levels for instant visual reference.
Status Label
VOL — Current regime
ATR — Raw ATR value (for stop sizing)
Pctl — Percentile rank (0–100%)
TF — Active timeframe (chart or fixed)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
LOW Volatility (Pctl < 25%):
Market compressed — "calm before the storm"
Watch for breakout setups
Pctl = 0% often precedes significant moves
NORMAL Volatility (Pctl 25–50%):
Typical conditions
Standard position sizing and stops
HIGH Volatility (Pctl 50–75%):
Elevated movement — reduce size
Widen stops to avoid noise
EXTREME Volatility (Pctl > 75%):
Rare, intense conditions
Avoid new entries or tighten risk
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
ATR Settings:
ATR Length (default: 14) — Period for ATR calculation
Percentile Lookback (default: 100) — Bars for percentile ranking
Timeframe:
Use Fixed Timeframe (default: off) — Lock calculation to specific TF
Fixed Timeframe (default: D) — TF to use when fixed mode enabled
Thresholds:
Low Threshold (default: 25)
High Threshold (default: 50)
Extreme Threshold (default: 75)
Display:
Show Zone Background — Toggle colored fills
Show Status Label — Toggle info label
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 SUGGESTED LOOKBACK BY ASSET
Crypto — 100 bars (fast regime shifts)
Stocks — 252 bars (one trading year)
Forex — 100–150 bars
Commodities — 150–200 bars (seasonal patterns)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS
Vol → EXTREME
Vol → HIGH
Vol → LOW
Vol exits HIGH
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 PRACTICAL APPLICATIONS
Stop-Loss Sizing:
Use raw ATR for stops. Example: Stop = Entry − (1.5 × ATR)
Position Sizing:
Reduce size when percentile is HIGH or EXTREME.
Entry Filtering:
LOW regime = prepare for breakout
EXTREME regime = avoid new entries
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 NOTES
Works on any timeframe — adapts to chart or locks to fixed TF
ATR is non-directional — magnitude only
Percentile auto-adapts to each asset's volatility profile
Not a standalone signal — combine with trend/regime filters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷️ TAGS
volatility, ATR, average-true-range, percentile, regime, risk-management, position-sizing, swing-trading, MTF
Quant Stats: Alpha, Beta, R2Quant Stats Indicator for TradingView: Alpha, Beta, and R-Squared
Overview
The Quant Stats Indicator is a professional-grade Pine Script tool designed for quantitative traders and hedge fund managers who need real-time analysis of stock or ETF performance against a benchmark using three fundamental CAPM metrics: Beta, R-Squared, and Alpha.
This indicator calculates three critical measurements that answer every quant trader's core questions: How volatile is this asset relative to my benchmark? How much of its performance is independent of the benchmark? And how much excess return am I achieving after adjusting for risk?
The Three Metrics Explained
Beta (β) measures systematic risk and volatility relative to your chosen benchmark. A Beta of 1.0 means the asset moves in lockstep with the benchmark. A Beta above 1.0 indicates higher volatility—if the market rises 10%, a Beta-1.5 asset should rise 15%. Conversely, a Beta below 1.0 indicates lower volatility, making it a defensive position. This metric helps you understand how much market exposure you're truly taking.
R-Squared (R²) quantifies what percentage of an asset's price movement can be explained by benchmark movements. An R² of 0.95 means 95% of the asset's moves are driven by the benchmark, leaving only 5% unexplained. Conversely, an R² of 0.2 means 80% of the asset's movement is independent of the benchmark. This distinction is crucial: high R² is desirable for passive index tracking but indicates weak alpha potential; low R² reveals genuine independent returns, exactly what active managers seek.
Alpha (α) reveals Jensen's Alpha—the excess risk-adjusted return after accounting for the return you "should" earn given your Beta exposure. A positive Alpha of 15% means you're outperforming the market by 15 percentage points after adjusting for systematic risk. This is the holy grail of stock picking: pure skill-driven excess return, not luck from market exposure.
How to Use It
Configure four key inputs: your benchmark ticker (default SPY, but use QQQ for tech-focused analysis or sector-specific ETFs), the lookback period in days, and the risk-free rate reflecting current Treasury yields. The lookback period is critical. Use 20 days for tactical trading to capture short-term sentiment and beta spikes; use 63 days for swing trading and quarterly rebalancing; use 252 days for structural asset allocation decisions.
The indicator plots Beta as a blue line, R-Squared as a red shaded background area, and Alpha as a green line in a sub-panel. Reference gridlines appear at Beta = 1.0 (market-equivalent volatility) and Alpha = 0.0 (breakeven performance), making interpretation intuitive.
Practical Applications
For swing traders monitoring a 63-day window, seek positions with low Beta (below 0.8) and positive Alpha—these are defensive winners. Avoid high Beta (above 1.2) with low R² unless you specifically want high-volatility speculation. Long/short hedge funds should use a 20-day lookback to detect regime changes: sudden Beta spikes often precede correlation breakdowns, while R² collapses signal rising idiosyncratic risk requiring immediate rebalancing.
For ETF portfolio construction, high R² (above 0.95) indicates index-tracking that doesn't justify active management fees. Low R² (below 0.3) combined with positive Alpha reveals genuine active management skill. The sweet spot is moderate Beta (0.5–0.8) with low R² and positive Alpha—a true diversifier that reduces portfolio volatility while generating independent returns.
Critical Interpretation Rules
A common mistake is assuming high R² is always desirable. It isn't. Passive index funds naturally have high R²; active managers should target low R² with high Alpha. Similarly, don't assume Alpha above 10% is sustainable—short-term Alpha (20–100 days) is inherently volatile and often represents temporary mispricings rather than repeatable skill. Always pair Beta analysis with R² interpretation; Beta alone ignores idiosyncratic risk, liquidity constraints, and tail risk.
Configuration Recommendations
Conservative investors should use SPY as benchmark with a 252-day lookback, targeting Alpha above 3% and Beta below 0.8. Growth-oriented portfolios might use QQQ with a 63-day lookback, targeting 8–12% Alpha and tolerating Beta up to 1.3. Hedge funds pursuing market-neutral strategies should use SPY with a 20-day lookback, set the risk-free rate to 2% (anticipating rate cuts), and target 15%+ Alpha while maintaining Beta below 0.3.
Important Limitations
The indicator is backward-looking; historical statistical relationships may not persist. Shorter lookback periods are noisier but more responsive; longer periods smooth noise but lag regime changes. Choosing the wrong benchmark completely invalidates analysis. Finally, the indicator doesn't account for tail risk or extreme market events where correlations spike unpredictably and Beta becomes unreliable.
Use this tool to separate signal from noise and identify true alpha generators. Apply it consistently, validate results against official fund factsheets, and monitor for 2–4 weeks before making significant portfolio decisions.
Monthly Seasonality AnalyzerThis indicator analyzes historical performance/seasonality of a chosen month, from date of inception to present. Users can choose any calendar month via dropdown menu.
For each historical month selected, it will calculate the monthly percentage gain/loss, range(volatility), and average gain/loss percentage, average range percentage across all recorded years. Positive returns are colored green and negative returns are red. Also, calculates if the selected month was bullish(open>close) or bearish.
When current chart month matches the selected month, it shows the in-progress range as well.
Data is collected from 1930 to present. Results are shown in vertical and horizontal tables. If the vertical table exceeds a 36 years, the script automatically switches to horizontal table to display all the data, with option to change table position.
Overall this tool is valuable for seasonality research, such as Santa Rally, May Go Away and swing trading/ position trading to capture the monthly PO3 range.
Most seasonality indicators show all 12 months at once or use daily bars. This one zooms in deeply on one month only, providing detailed per-year breakdowns, accurate completed-month stats, and a practical live range display.
The script uses arrays to store years, gains, and ranges. Uses table.new(), table.cell(), table.merge_cells() for easily readable result display. Code handles the current in-progress month separately (shows live range without including it in historical averages).
**Script will not run on any timeframe other than monthly and displays error otherwise. Script is best used on spot and not futures.
BC catchBottom Catcher is a comprehensive reversal indicator designed to find high-probability bottoms. Unlike standard indicators, it combines Momentum, Volume, Price Action, and Trend Filters into one powerful tool.
Key Features:
Smart Filtering: Only signals when Stochastic is oversold AND Volume is spiking (Institutional buying) AND Price Action shows strength.
Real-time Statistics Dashboard: The table automatically calculates the historical win rate for hitting 20%, 30%, ... 100% profit targets based on your custom Stop Loss settings.
Trend Classification:
Gold Signal: Above EMA 200 (Trend Pullback).
Purple Signal: Below EMA 200 (Oversold Bounce).
Perfect for traders who want data-driven decisions rather than guessing bottoms.






















