Z-Score Predictive Zones [AlgoPoint]Z-Score Predictive Zones
This indicator is an advanced evolution of the classic Z-Score (Standard Score) oscillator. Unlike traditional Z-Score indicators that use static overbought/oversold levels (e.g., +2.0 or -2.0), this script utilizes a dynamic memory system to identify where the market statistically tends to reverse based on recent history.
It provides a dual-view system: it displays the oscillator in the bottom pane and simultaneously projects those statistical extremes onto the main chart as Predictive Support and Resistance Zones.
1. Underlying Concept & Math
The core calculation is based on the Standard Score formula: Z = (Price - Mean) / Standard Deviation
- Adaptive Thresholds : The script detects pivot points (peaks and troughs) in the Z-Score history. It stores the most recent reversals (based on user-defined depth) and calculates the average level where the market has historically reversed.
- Reverse Engineering (Price Projection) : The script takes these average Z-Score reversal levels and reverse-engineers the formula to find the corresponding price on the main chart: Projected Price = Mean + (Target Z * Standard Deviation)
- Noise Reduction : The raw Z-Score is smoothed using a Volume Weighted Moving Average (VWMA) to reduce false signals.
2. Key Features
Dynamic Predictive Zones (Main Chart):
- Red Zone (Resistance) : Represents the price area where the Z-Score hits its historical average peak.
- Green Zone (Support) : Represents the price area where the Z-Score hits its historical average trough.
Note: These zones expand and contract based on market volatility (Standard Deviation).
Dual Visualization:
- Bottom Pane : Shows the Z-Score oscillator with the calculated dynamic steps.
- Main Chart : Uses force_overlay=true to draw the corresponding price channels directly on the candles, allowing for real-time price action analysis.
- RSI Gradient Coloring : The oscillator line changes color based on RSI (Relative Strength Index) values to provide additional momentum context (Purple/Blue gradients).
- Signal Dots : Plots small circles on the main chart when the price enters these extreme statistical zones, indicating a potential mean reversion opportunity.
3. How to Use
This indicator is best used for Mean Reversion strategies.
- Potential Short : When price enters the Red Zone (Upper Channel) and a red dot appears, the price is statistically overextended relative to its recent volatility profile.
- Potential Long : When price enters the Green Zone (Lower Channel) and a green dot appears, the price is statistically undervalued relative to the mean.
- Trend Warning : If the price candles close forcefully beyond these zones and the zones begin to widen rapidly, it may indicate a breakout or a strong trend initiation rather than a reversal.
4. Settings
- Z-Score Length : The lookback period for the Mean and Standard Deviation.
- Lookback Depth : How many past reversal points the script should "remember" to calculate the average zones.
- Reversal Thresholds : The minimum Z-Score value required to register a peak or trough as a valid data point.
- Visuals : Toggle signal dots on/off.
中心震荡指标
Squared9 Pro v1Squared9 Pro v1.0 (strategy) combines classic Gann geometry with modern momentum checks to find high-conviction reversal zones.
The strategy requires:
1. Price to be within a user-defined percentage of Gann levels (based on recent pivot highs/lows and Square of Nine calculations).
2. Divergence on Stochastic and/or MACD (price and indicator moving in opposite directions).
3. Current price to respect the trend direction on a higher timeframe EMA.
4. A candle with a strong body relative to its range.
Here's what it looks for:
- Price is close to important Gann levels (calculated from recent swing highs/lows using Square of Nine math — shown as colored horizontal lines).
- Stochastic and MACD indicators show divergence (price makes new high/low but indicators do not — a classic reversal clue).
- The overall trend on a higher timeframe (default 4-hour) supports the trade direction via a 50-period EMA filter.
- The current candle has a strong directional body (not a doji or tiny range — minimum body size is adjustable).
When these line up, a green triangle appears below the bar for a potential long entry, or a red triangle above for short. Stop-loss and take-profit are set automatically using ATR multiples (default 1.7× for stop, 3.2× for target), with an optional trailing stop.
All settings (lookback periods, tolerances, ATR multipliers, etc.) can be changed in the inputs panel.
This script is designed for traders who want confluence-based signals rather than relying on a single indicator.
Feedback is welcome.
Rhokeo-VW-RSI Histogram for Cumulative Delta by ZeiirmanRhokeo-VW-RSI Histogram: Volume-Weighted Momentum (use with Cumulative Delta from Zeiierman) Note that Cumulative Delta is a paid indicator.
Overview: The Rhokeo-VW-RSI Histogram is a momentum oscillator designed to filter out market noise by integrating volume directly into the RSI calculation. Unlike a standard RSI, which only considers price change, this indicator weights those changes by the volume occurring at the time.
It creates a momentum profile in the form of a Histogram. If the price moves on high volume, the indicator reflects that strong market interest through its volume-weighted gain and loss calculations. It is particularly effective as a complementary filter for “Cumulative Delta” from Zeiierman to confirm the strength behind a move before you enter a trade.
How It Works The indicator operates on a normalized scale of -1.0 to +1.0 for easier visual interpretation and compatibility with Cumulative Delta indicator:
• The Volume-Weighted Core: Gains and losses are calculated by multiplying the price change by volume to ensure the "Relative Strength" reflects true capital flow.
• Smoothing for Clarity: The raw Volume Weighted RSI (VW-RSI) is processed through a customizable Moving Average—such as SMA, EMA, SMMA, WMA, or VWMA—to produce the smooth histogram.
• Four-Zone Coloring System: The histogram changes color dynamically based on momentum intensity:
o Strong Bull: Price is trending up with high-volume conviction.
o Weak Bull: Positive momentum, but not yet overextended.
o Weak Bear: Negative momentum starting to build.
o Strong Bear: Heavy selling pressure with high-volume conviction.
Key Features
• Shading: The background features optional red and green shading in the "Extreme" zones to warn traders of potential exhaustion areas.
• Dynamic Zero Line: The center line flips color between Green and Red based on whether the VW-RSI is positive or negative.
• Customization: Traders can adjust the smoothing length, source price, and the specific levels for overbought/oversold zones.
Best Use Case for New Traders: New traders often get "faked out" by price spikes that have no volume behind them. This indicator helps confirm and time better entries:
1. Wait for your Cumulative Delta indicator to give a signal.
2. Check the VW-RSI Histogram and whether it confirms or not.
3. Long Entry: Only enter if the histogram is positive and rising (above 0).
4. Short Entry: Only enter if the histogram is negative and decreasing (below 0).
________________________________________
Disclaimer
Financial Risk:
• Trading involves significant risk, and most traders lose money.
• This indicator is a tool for technical analysis and does not constitute financial, investment, or trading advice.
• Past performance is not indicative of future results; never trade with money you cannot afford to lose.
Usage & Reliability:
• The Rhokeo-VW-RSI Histogram is provided "as-is" for educational and informational purposes only.
• While volume-weighting aims to filter market noise, no indicator can guarantee 100% accuracy or predict future market movements with certainty.
• This script is intended to be a complementary tool that works well with other indicators in this case the Cumulative Delta from Zeiirman; it should be used in conjunction with other forms of analysis, risk management, and your own due diligence.
Commercial Notice:
• If you are using this alongside a third-party paid indicator, please note that I am not responsible for the performance or support of external products.
• Users are responsible for their own trade execution and account management.
Cyberpunk MACD Pulse EngineDescription
The Cyberpunk MACD Pulse Engine is a high-performance trend momentum oscillator designed for the modern trader operating in high-volatility environments. It reimagines classic MACD logic through a futuristic HUD (Head-Up Display) aesthetic and is now equipped with "Tactical Mode" switching capabilities—allowing you to swap your analytical focus instantly, much like upgrading hardware in a high-tech sprawl.
Core Systems
・Four Tactical Presets: Instantly recalibrate the engine between Standard, Fast (Scalp), Slow (Swing), or Neural Spike (Hyper-reactive) to match your specific trading style.
・Pulse Histogram: Features dynamic transparency and neon-fused clarity to visualize momentum acceleration and deceleration in real-time.
・Dual-Core Lines: MACD and Signal lines are rendered with a "Neon Glow" effect for maximum visibility during intense sessions.
・System Status HUD: An integrated interface in the top-right corner that monitors current status and active Tactical Mode without cluttering your focus.
・Optimized Logic: Built on Pine Script V5 to ensure lightweight, latency-free performance.
How to Use
1. Identify the Signal: Watch for the "System Reboot" (Cyan Triangle) for bullish reversals and "System Critical" (Magenta Triangle) for bearish shifts.
2. Monitor Intensity: When the histogram glows intensely, momentum is at its peak.
3. Tactical Tip: Use Neural Spike for spotting sudden volatility spikes, and switch to Slow (Swing) to confirm if the primary higher-timeframe trend is still intact.
概要
Cyberpunk MACD Pulse Engineは、現代のトレーダーのために設計された高性能トレンド・モメンタム・オシレーターです。クラシックなMACDを近未来的なHUD(ヘッドアップディスプレイ)の美学で再構築しただけでなく、状況に応じて設定を瞬時に換装できる**「タクティカル・モード」**を新たに搭載しました。ハイテク都市のハードウェアをアップグレードするように、分析の焦点を即座に切り替えることが可能です。
主な機能
・4つのタクティカル・プリセット: Standard、Fast (スキャルピング)、Slow (スイング)、Neural Spike (超高感度反応) から、自身のトレードスタイルに合わせてエンジンを即座に再調整できます。
・パルス・ヒストグラム: ネオンが融合したクリアな視覚効果と動的な透明度変化により、モメンタムの加速と減速をリアルタイムに視覚化します。
・デュアルコア・ライン: MACDとシグナルラインに「ネオングロー」エフェクトを施し、ボラティリティの高い局面でも最高の視認性を確保。
・統合HUD: ペインの右上に、現在のトレンドステータスと選択中のモードをフィードバック表示。集中力を削ぐことなく状況を把握できます。
・最適化されたロジック: Pine Script V5をベースに、軽量な動作とラグのない描画を実現しました。
使用方法
1. シグナルの確認: 強気の反転を示す「System Reboot(シアンの三角)」と、弱気への転換を示す「System Critical(マゼンタの三角)」に注目してください。
2. 勢いの測定: ヒストグラムの発色が鮮やかになった時、トレンドの勢いが最大に達していることを示します。
3. タクティカル・チップ: 急なボラティリティを検知するにはNeural Spikeを使用し、主要なトレンドが維持されているか確認するにはSlow (Swing)に切り替えて分析を補完してください。
Momentum ChecklistMomentum Checklist - Visual Trading Dashboard
A clean, easy-to-read dashboard that displays key momentum indicators in one convenient table. This indicator helps traders quickly determine the directional bias of price action by combining ADX, Directional Movement Index (DMI), and Money Flow Index (MFI).
What It Shows:
ADX (Average Directional Index): Measures trend strength. Green checkmark appears when ADX ≥ 20, indicating a strong trending market
DI+ (Positive Directional Indicator): Tracks upward price movement
DI- (Negative Directional Indicator): Tracks downward price movement
MFI (Money Flow Index): Volume-weighted momentum indicator. When > 50 indicates bullish money flow
Bias: Automatically calculates directional bias:
LONG: When DI+ > 25 and DI- < 20
SHORT: When DI- > 25 and DI+ < 20
NEUTRAL: When conditions are mixed
Trading Strategy:
This indicator helps determine the bias of price movement in a certain direction. When coupled with Bollinger Bands, it becomes a very powerful combination to catch those big explosive moves up or down. The momentum confirmation from this checklist combined with Bollinger Band squeezes or breakouts can significantly improve entry timing.
Recommended Usage:
Timeframes: 5-minute to 15-minute charts for optimal performance
Best Assets: US30, XAUUSD (Gold), BTCUSD, and most major indices
Works exceptionally well on volatile instruments with strong directional moves
Features:
Color-coded cells for instant visual confirmation
Customizable position (Top Right, Top Left, Bottom Right, Bottom Left)
Adjustable text size (Tiny, Small, Normal)
Configurable ADX, DMI, and MFI period settings
Perfect for day traders and scalpers looking for quick momentum confirmation before entering trades! Feel free to adjust any part of this description to match your style! 🎯
Volume Conviction Index v1.0Volume Conviction Index (VCI) v1.0
This indicator helps answer a simple question: Does this price move have real strength behind it, or is the volume too weak to trust???
It measures "conviction" through how many participants are in the marketplace by looking at volume in a smart, reliable way:
- Spots unusual volume surges (buying or selling pressure) that stand out from normal (median line plotted) levels.
- visually helps with discretionary calls and allows the median avg of participation not just volume to be 'seen'
- Blends recent volume changes with how volume compares to its typical range.
How to read the chart (super straightforward):
- Teal columns above the zero line: Strong buying conviction — volume supporting the up move (good sign for breakouts or holds).
- Orange columns below zero: Strong selling conviction — heavy participation on the downside (watch for reversals or weakness on rallies).
- Flat/small bars near zero: Low conviction — price might be moving on fumes (often leads to fakeouts or quick fades).
- Optional white dashed line (the "median conviction"): A smoothed version over the last few bars. If it crosses zero or diverges from price, it can signal shifting momentum.
index works the same for both bears and bulls. teal bars in the positive are above participation or conviction in both bearish and bullish participation. also allows identifying exhaustion in both bearish and bullish scenarios.
works well equally on lower TFs and higher TFs
Why use it:
It uses robust statistics (rolling median volume + Median Absolute Deviation for a "z-like" score) instead of plain averages — much better at handling noisy or outlier-heavy markets like crypto, forex, or stocks during news events. Then it adds a weighted mix of short-term volume acceleration and relative volume for better context.
Great for:
- Beginners: Start with defaults — the colors and zero line make it easy to see at a glance.
- Day/swing traders: Filter entries/exits with real participation (e.g., teal spike on support bounce = higher odds).
- Anyone learning volume: Shows clearly when moves have "muscle" vs. when they're suspect.
Quick usage tips:
- Best on 5m to 4h charts with good volume data.
- Combine with price action, levels, or your favorite tools — use VCI to confirm conviction.
- Toggle the median line in settings if your timeframe is noisy.
Defaults work well across most assets — adjust "Volume Window" for longer/shorter lookback, or "Recent Weight" to emphasize sudden changes more/less.
I personally like using it on 1min / 5min / 30min charts. Has a microscope / high-rez feel about it when I'm on quicker TFs.
Open-source under © RU55IANROUL3TT3 — feel free to study, fork, or build on it!
Feedback welcomed — what markets/timeframes does it help you with?
WaveTrend Oscillator Lite [SolQuant]The WaveTrend Oscillator Lite indicator provides single-timeframe WaveTrend momentum analysis with overbought and oversold zone detection. It displays the core WT1/WT2 oscillator lines with color-coded gradient fills, making it easy to identify momentum extremes at a glance.
This is the free version of WaveTrend Oscillator , offering the core oscillator engine on a single timeframe without the multi-timeframe overlays, chart signals, alignment stars, or dashboard available in the full version.
█ USAGE
Reading the Oscillator
Two WaveTrend lines (WT1 and WT2) oscillate around a zero line. When WT1 is above WT2, momentum is bullish (default: blue). When below, momentum is bearish (default: magenta). A gradient fill extends between the lines and toward zero, providing an intuitive visual cue of momentum strength and direction.
Extreme Zones
When either WT line crosses above the overbought level, the lines turn red and a red fill highlights the extreme zone. When below the oversold level, the lines turn green with a green fill. These extreme readings indicate potential reversal areas where momentum has stretched to unsustainable levels.
█ DETAILS
The WaveTrend oscillator is calculated in three steps:
1 — An EMA of the typical price (HLC3) is computed over the channel length
2 — The absolute deviation from this EMA is smoothed with another EMA
3 — The normalized difference (CI) is smoothed with an EMA of the average length to produce WT1, and a simple SMA of WT1 produces WT2
█ SETTINGS
• Channel Length: EMA period for the price channel (default: 10).
• Average Length: EMA period for final smoothing (default: 21).
• Over Bought Level 1 / 2: Upper threshold levels for extreme zone detection (default: 60 / 53).
• Over Sold Level 1 / 2: Lower threshold levels for extreme zone detection (default: -60 / -53).
This indicator is an oscillator-based tool and does not constitute financial advice. Overbought and oversold conditions do not guarantee reversals. Past performance does not guarantee future results.
Adaptive Structure Trend Engine (ASTE)Adaptive Structure Trend Engine (ASTE)
Adaptive Structure Trend Engine (ASTE) is a non-repainting, multi-layer trend analysis indicator designed to help traders identify high-quality directional opportunities using market structure and adaptive moving averages. ASTE focuses on trend clarity, confirmation, and signal cleanliness, avoiding indicator noise and repeated signals.
🔍 Core Components
ASTE combines four powerful concepts into a single, structured framework:
• FRAMA (Fractal Adaptive Moving Average)
Detects market structure and directional slope changes.
• KAMA (Kaufman Adaptive Moving Average)
Measures price efficiency and regime stability.
• JMA (Jurik-style Moving Average)
Provides smooth momentum confirmation with minimal lag.
• EMA Hierarchy (21/50 + 50/100/150/200)
Validates trend strength and higher-order alignment.
📊 Signal Types
ASTE produces state-based signals (no repeated alerts on every bar):
1️⃣ Base Signal
Single tiny triangle
• FRAMA slope alignment
• KAMA direction confirmation
• JMA momentum confirmation
• EMA 21/50 trend validation
2️⃣ Strong Signal
Two stacked triangles
• All Base Signal conditions
• PLUS EMA 50/100/150/200 full trend confluence
Signals remain active until an opposite signal of the same type appears.
🎨 Visual Design
• Clean stacked triangle system
• No repainting
• No signal spam
• EMA band with gradual color transition
• Fully configurable visibility options
⚙️ User Controls
• Adjust FRAMA, KAMA, and JMA lengths
• Toggle Base / Strong signals
• Show or hide EMA band
• Works on all markets and timeframes
⚠️ Disclaimer
This indicator is provided for educational and analytical purposes only. It does not constitute financial advice or trade recommendations. Always use proper risk management and confirm signals with additional analysis. Past performance does not guarantee future results.
stelaraX - MomentumstelaraX – Momentum
stelaraX – Momentum is a simple yet effective indicator designed to measure the speed and direction of price movement. It shows whether price is accelerating or decelerating and helps identify shifts in market strength at an early stage.
This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation
stelarax.com
Core logic
The Momentum indicator calculates the difference between the current price and the price from a user-defined number of periods ago.
Key characteristics include:
* positive values indicate upward momentum
* negative values indicate downward momentum
* the zero line acts as a directional threshold
When momentum crosses above zero, bullish pressure is increasing. When momentum crosses below zero, bearish pressure is increasing.
Visualization
The script plots a histogram in a separate indicator pane:
* green bars when momentum is positive
* red bars when momentum is negative
* a clearly visible zero baseline for direction reference
The histogram format makes changes in momentum strength immediately visible.
Use case
This indicator is intended for:
* measuring price acceleration and deceleration
* confirming trend strength
* identifying early momentum shifts
* filtering entries in trend-following strategies
* divergence analysis between price and momentum
For traders who want to combine classical momentum tools with modern AI-driven chart analysis, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
Safer Reversal: CHoCH & Div 1st BoS Entry & Exits & Pro FeaturesProfessional traders (in ICT/SMC frameworks) often exit reversal trades using these logic layers for better risk control and to avoid holding into reversals:
Opposing CHoCH → Strongest exit/reversal warning: If you’re in a bullish trade and a bearish CHoCH forms (breaks structure against your direction), it’s time to exit fully or scale out aggressively. This signals the new trend might be over or reversing.
Failed BoS / Lack of Continuation → If no new BoS occurs for many bars after entry (e.g., 10–20 bars, adjustable), momentum is fading → partial or full exit.
Target Zones → Common exits at next major POI: e.g., opposite-side liquidity (equal highs/lows), recent swing extremes, or a fixed RR (like 1:2 or 1:3 from entry).
Trailing via Swings → After each new BoS in your direction, trail stop to the recent swing low/high (or below last BoS level) for letting winners run.
Other Pro Touches:
Volume filter on entry BoS (require above-average volume for confirmation).
RSI extreme check (e.g., exit if RSI hits overbought/oversold in your trade direction after entry).
Alerts for exits (“EXIT BUY - Opposing CHoCH” etc.).
RSI Adaptive Structure Engine (RASE)RSI Adaptive Structure Engine (RASE) is a regime-based market structure indicator built entirely using the Relative Strength Index (RSI).
Rather than focusing on overbought or oversold conditions, RASE is designed to help traders identify directional market regimes and trend quality by combining multiple layers of RSI analysis into a single, structured framework.
🔹 What RASE Does
RASE analyzes the market using:
Structural RSI slope to determine directional bias
RSI efficiency to filter noisy or choppy conditions
Smoothed RSI momentum to confirm trend continuation
Fast RSI behavior for timing alignment
Higher-timeframe RSI confirmation for strong trend validation
The indicator uses state-based logic, meaning signals appear only when a regime changes. This helps reduce noise and avoids repetitive or cluttered signals.
🔔 Signal Types
🔹 Base Signal (Single Triangle)
Indicates early alignment of structure, momentum, and efficiency
Uses the current timeframe only
Intended to highlight potential regime shifts
🔹 Strong Signal (Double Triangle)
Confirms trend strength using higher-timeframe alignment
Appears only after a base regime is established
Intended to highlight stronger directional persistence
Optional execution-style markers can also be enabled for users who want additional same-timeframe context.
📈 How to Use
RASE is best used as a regime and directional bias tool, not as a standalone entry system.
Common use cases include:
Trend filtering for other strategies
Identifying favorable directional conditions
Avoiding trades during low-quality or choppy regimes
Multi-timeframe market structure analysis
⚠️ Disclaimer
This indicator is provided for educational and analytical purposes only. It does not constitute financial advice, investment guidance, or a recommendation to buy or sell any asset.
Trading and investing involve risk. Users are solely responsible for their own decisions and risk management. Past performance is not indicative of future results.
stelaraX - MACDstelaraX – MACD
stelaraX – MACD is a classic momentum and trend-following indicator based on the relationship between two exponential moving averages. It is designed to visualize trend direction, momentum strength, and potential reversal points in a clear and uncluttered way.
This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation.
stelarax.com
Core logic
The MACD is calculated using three user-defined parameters:
* fast moving average period
* slow moving average period
* signal line smoothing period
The indicator consists of:
* the MACD line, calculated as the difference between the fast and slow EMA
* the signal line, which is an EMA of the MACD line
* the histogram, representing the difference between MACD and signal line
Momentum increases when the histogram expands and decreases when it contracts. Crossovers between the MACD line and the signal line highlight potential trend shifts.
Visualization
The script plots:
* the MACD line
* the signal line
* a color-coded histogram
Histogram bars adapt their color dynamically:
* green tones for positive momentum
* red tones for negative momentum
* brighter colors when momentum is increasing
* softer colors when momentum is weakening
A zero baseline is plotted to clearly separate bullish and bearish momentum phases.
Use case
This indicator is intended for:
* momentum and trend analysis
* identifying trend continuation and exhaustion
* confirming price action and breakout signals
* divergence observation between price and momentum
For traders looking to combine classical indicators with modern AI-driven chart analysis, additional tools are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
Bernoulli Process: Trend Probability & Entropy [MarkitTick]💡 This technical indicator introduces a rigorous probabilistic framework to the evaluation of market regimes by modeling price fluctuations as a Bernoulli Process. Unlike traditional oscillators that merely measure the magnitude of price movement, this script treats every bar as a discrete "trial" that either succeeds or fails based on specific conditions—such as directional price action, momentum thresholds, or trend alignment. By applying Information Theory and the principles of Maximum Likelihood Estimation (MLE), the script quantifies not just the direction of the market, but the statistical reliability and the "noise" content of the current sequence. This allows traders to distinguish between a structured trend and high-entropy market "chop," providing a level of objective clarity often missing in standard technical analysis.
● ✨ Originality and Utility
The primary innovation of this script lies in its transition from deterministic price tracking to stochastic regime modeling. Most indicators suffer from the "binary trap," where they simply tell a trader if price is above or below a level without assessing the statistical significance of that state.
• Quantifying Market Information
By integrating Shannon’s Binary Entropy, the script measures the uncertainty inherent in a price sequence. When entropy is near 1.0, the market is in a state of maximum uncertainty (effectively a fair coin toss), signaling that a trader should likely avoid the "noise." Conversely, low entropy values indicate a high-information state where one side of the Bernoulli trial is dominating, suggesting a persistent trend.
• Adaptive Definition of Success
The script is not limited to a single logic; it allows the user to define what constitutes a "Success" in the Bernoulli trial. Whether you prioritize raw price action (Close > Open), momentum (RSI > 50), or trend-following (Price > Moving Average), the underlying probabilistic engine remains consistent, making it a versatile tool for various trading styles.
• Z-Score Significance Testing
It applies a Central Limit Theorem (CLT) approximation to calculate a Z-Score. This tells the trader how many standard deviations the current trend is away from a random walk (p=0.5). This provides a mathematical filter to avoid entering "trends" that are actually within the bounds of statistical randomness.
● 🔬 Methodology and Concepts
The script operates through a four-stage mathematical pipeline that converts raw market data into probabilistic metrics.
• Stage 1: The Bernoulli Trial (I)
The foundation is the indicator variable (I). On every bar, the script evaluates a boolean condition. If the condition is met, the trial is a "Success" (1.0); otherwise, it is a "Failure" (0.0). This transforms complex candles into a simple binary sequence: {1, 0, 1, 1, 0...}.
• Stage 2: Probability Estimation (p-hat)
Using a rolling window of length N, the script calculates the Maximum Likelihood Estimate (MLE) of the probability parameter 'p'. This is essentially the sample mean of the successes within the window. A value of 0.7 suggests that in the last N trials, 70% were successful.
• Stage 3: Binary Entropy Calculation
The script calculates Entropy H(p) using the formula:
H(p) = -p * log2(p) - (1-p) * log2(1-p)
This provides a metric for "Trend Quality." If p is 0.5 (random), H(p) is 1.0 (maximum noise). If p is 1.0 or 0.0 (perfect trend), H(p) is 0.0 (maximum order).
• Stage 4: Volatility-Adjusted Z-Score
To determine if a sequence is truly anomalous, the script calculates the standard deviation of a fair process and compares the observed deviations to this baseline. This identifies "Significant Trends" that are mathematically distinct from a 50/50 random distribution.
● 🎨 Visual Guide
The visual interface is designed to communicate complex statistical data through intuitive color-coded cues.
• The Bernoulli Probability Line
The main plot is a continuous line representing the estimated probability (p).
A value above 0.5 indicates a bullish bias (p-hat > 0.5).
A value below 0.5 indicates a bearish bias (p-hat < 0.5).
• Dynamic Entropy Coloring
The line does not just change color based on direction; it changes based on certainty.
Vibrant Green: Strong bullish trend with low entropy (High Certainty).
Vibrant Red: Strong bearish trend with low entropy (High Certainty).
Gray/Faded Color: High entropy regime (Entropy > 0.9). This signals that the market is "choppy" and the probability of success is too close to random to be reliable.
• Background Entropy Zones
The chart background highlights areas of "Max Entropy" in a subtle gray color. When you see these zones, it suggests the current Bernoulli definition is failing to find a directional edge, signaling a period of market consolidation.
• Real-Time Metrics Dashboard
A table in the top-right corner displays:
Probability (p): The exact decimal value of the current trend probability.
Entropy (Bits): The current level of uncertainty in the sequence.
Regime: A text-based label identifying the market state (Bull Trend, Bear Trend, or Noise/Chop).
• Execution Signals
Small triangles appear on the chart to mark high-probability transition points. A Triangle Up (Green) marks a bullish breakout from a low-entropy state, while a Triangle Down (Red) marks a bearish breakdown.
● 📖 How to Use
• Identifying Low-Noise Entries
Traders should look for instances where the Probability Line crosses the 0.5 threshold while Entropy is low (vibrant colors). If the line is gray, the "trend" lacks statistical significance, and the risk of a whip-saw is high.
• Regime Filtering
Use the indicator as a "Mode Filter." If the Dashboard displays "NOISE / CHOP," it is a signal to stay flat or use mean-reversion strategies. If it displays a "TREND" regime, trend-following strategies can be deployed with higher confidence.
• Interpreting the Z-Score
While not directly plotted, the Z-Score logic powers the signal generation. A signal is only produced when the deviation from the "Fair Coin" (0.5) is substantial enough to suggest a non-random event.
● ⚙️ Inputs and Settings
• Bernoulli Trial Definition
Choose between three calculation modes:
Price Action: Uses the relationship between Close and Open (Directional bars).
Momentum: Uses RSI relative to the 50-level (Standard momentum).
Trend: Uses Price relative to a Simple Moving Average (Long-term regime).
• Sample Window (N)
Determines the "lookback" for the probability calculation. Smaller values (e.g., 10-15) are more responsive but noisier; larger values (e.g., 30-50) provide a smoother, more institutional view of the regime.
• Risk Management (Alerts)
Target R:R Ratio: Used to calculate the Take Profit level in the JSON alerts.
Stop ATR Multiplier: Uses Average True Range to calculate a volatility-adjusted stop loss for signals.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The "Bernoulli Process: Trend Probability & Entropy" script is built upon the pillars of Discrete Stochastic Processes and Information Theory.
• The Law of Large Numbers (LLN)
The script relies on the LLN, which states that as a sample size grows, its mean gets closer to the average of the whole population. By using a "Sample Window," we are performing a rolling MLE of the true underlying probability parameter of the market at that moment.
• Shannon Entropy and Information Theory
Claude Shannon’s 1948 work on information entropy is the bedrock of the "Noise" detection in this script. In the context of trading, entropy represents the "surprise" or "uncertainty" in the price sequence. A low-entropy market is one where the next bar's success/failure is highly predictable based on the recent past, which is the mathematical definition of a trend.
• Bernoulli vs. Gaussian Distributions
Most indicators assume a Normal (Gaussian) distribution of price returns. However, market states are often better modeled as discrete outcomes (Up/Down). By treating the market as a Bernoulli Process, we bypass the "fat-tail" problem of Gaussian distributions and focus purely on the frequency of successful outcomes, making the tool more robust against outliers.
• The Z-Test for Proportions
By applying a Z-score calculation to a Bernoulli distribution, the script treats the market like a "biased coin" experiment. It tests the Null Hypothesis ($H_0$): "The market is a fair coin (p=0.5)." When the Z-score is high, we reject $H_0$ in favor of the Alternative Hypothesis ($H_1$): "The market is trending (p != 0.5)."
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Decycler Momentum Regime Filter ~ CharonQuantThe Decycler Momentum Regime Filter is a trend-following and momentum confirmation indicator built on John Ehlers’ Decycler filtering methods, combined with the Price Momentum Oscillator (PMO) for regime validation.
The original Decycler concept uses high-pass filtering techniques to suppress cyclical noise and isolate the underlying directional structure of price.
This version extends that foundation into a unified trend regime system designed for real trading conditions, not constant flipping in chop.
What’s different in this implementation:
• Ehlers Decycler trend backbone to smooth price action and reduce noise
• Momentum confirmation using PMO
• Zero-line regime filter to avoid weak or transitional environments
• Directional state engine that clearly defines bullish, bearish, or neutral trend regimes
• Clean visual context using adaptive trend coloring, bar bias, and background shading
Trend regimes are only confirmed when all conditions align:
• Decycler slope confirms directional trend persistence
• PMO is aligned with its signal line (momentum continuation)
• PMO is above or below zero (trend-strength regime validation)
• The CharonQuant state updates only when trend + momentum agree
If one condition fails, the system remains neutral or holds its previous state.
This design prioritizes signal quality over signal frequency.
Visual interpretation:
• Gold (CharonQuant = +1) → Confirmed Bullish Trend Regime
• Wine (CharonQuant = –1) → Confirmed Bearish Trend Regime
• Gray (Neutral) → No strong trend / transition zone
This makes the indicator especially useful as a trend bias filter for systematic swing and position trading.
Development and calibration notes:
This indicator was developed and calibrated on the 1D CRYPTO:SOLUSD chart.
Default parameters are optimized for SOL’s volatility structure and daily trend behavior.
You must tweak the settings to fit your asset, timeframe, and trading style.
If you do not read this description or do not understand what the indicator is designed to do, do not use it.
Indicators amplify both discipline and mistakes.
Important reminder: No single indicator is sufficient on its own.
This tool is a trend regime filter, not a complete trading system.
BULLRIDER INDICATORSENGLISH:
This is a compilation of indicators used by BULLRIDER (Yusuf Benli), combined with the time periods he uses. It's designed to allow users to easily enable and disable indicators with a single click, eliminating the need to deal with multiple indicators individually. Hopefully, it will be useful...
Predictive Moving Average Convergence Divergence - RyderPredictive MACD that uses EMA math to forecast 1-3 bars ahead, assuming price remains constant. Shows current MACD (5/34/5 default) plus three forward-projected values. Useful for seeing momentum trends and potential early crossover signals, but predictions assume zero price change so they're best used as directional indicators rather than precise forecasts.
Ehlers Adaptive Trend FilterEHLERS ADAPTIVE TREND FILTER | Lag-Compensated SuperSmoother
Based on John Ehlers' "Smoothing The Data" (2014), this indicator extends
the SuperSmoother with hybrid Butterworth filters and dynamic lag compensation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
KEY FEATURES:
✓ 3 FILTER MODES (lag-measured empirically)
• 2p+2p (Fast): 62 bars lag — responsive, great for scalping
• 3p+2p (Hybrid): 70 bars lag — RECOMMENDED, best risk/reward
• 3p+3p (Smooth): 88 bars lag — ultra-smooth for macro trends
✓ LAG-COMPENSATED MOMENTUM
Automatically extends momentum lookback to account for filter delay.
Keeps momentum signals responsive despite heavy smoothing.
✓ CONFIRMATION-BASED REVERSALS
Requires 2+ bars confirmation before signaling reversals.
~60% fewer false signals than single-bar detection.
Reduces whipsaws on volatile assets.
✓ VOLATILITY-ADAPTIVE THRESHOLDS
Automatically scales all deviation levels based on asset volatility.
Works seamlessly across:
- Crypto (20%+ volatility)
- Equities (10-15% volatility)
- Forex (2-5% volatility)
- Bonds (<2% volatility)
✓ MULTI-TIMEFRAME AUTO-CALIBRATION
Automatically optimizes filter periods for your trading style:
- Scalping (<1H): 2p+2p (Fast)
- Swing Trading (1D): 3p+2p (Hybrid) ← Default
- Position Trading (1W+): 3p+3p (Smooth)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT YOU GET IN THE DASHBOARD:
• TREND STATUS: Good/Bad (signal above/below baseline)
• MOMENTUM: Strong/Steady/Weak/Opposing (lag-compensated)
• MOMENTUM TREND: Increasing/Decreasing/Stable
• SUPPORT BASELINE: Bull Reversal/Bear Reversal/Aligned
• SUPPORT SLOPE: Positive/Negative/Neutral (with %)
• SAFETY MARGIN: % distance from baseline
• PRICE DEVIATION: Extended/Expanding/On Course/Lagging
• TECHNICAL RATING: Perfect/Transition/Dangerous/Critical
• VOLATILITY: Live % + historical baseline
• FILTER CONFIG: Active mode + exact lag metric
• THRESHOLD LEVELS: Adaptive or Fixed mode
• ANALYSIS MODE: Auto-calibrated or Manual
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PERFORMANCE (Backtested 2020-2024):
ES 1D (3p+2p Hybrid):
✓ 68% Win Rate | 2.2:1 Profit Factor
✓ 12% Max Drawdown | Avg Trade: +45 points
BTC 4H (3p+2p Hybrid):
✓ 62% Win Rate | 1.9:1 Profit Factor
✓ 18% Max Drawdown | Avg Trade: +$280
EURUSD 1H (2p+2p Fast):
✓ 55% Win Rate | 1.7:1 Profit Factor
✓ 8% Max Drawdown | Avg Trade: +45 pips
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE:
1. Add indicator to chart (any asset, any timeframe)
2. Select Filter Configuration:
→ 3p+2p (Hybrid) recommended for most traders
3. Read the dashboard (bottom-right table)
4. Trade signals:
→ ENTER: Trend Status = "Good" + Momentum = "Strong"
→ EXIT: Trend Status = "Bad" OR background highlight appears
5. Combine with your own trade plan (entries, sizing, risk management)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY THIS INDICATOR?
Most traders face a painful choice:
→ Fast MA (like EMA20): Responsive but too many false signals
→ Slow MA (like EMA100): Smooth but miss 20% of moves
Ehlers SuperSmoother solves this using 40+ years of digital signal
processing research. Butterworth filters preserve trend direction while
removing high-frequency noise more efficiently than moving averages.
The innovation: LAG COMPENSATION
By measuring the exact delay of each filter and dynamically adjusting
momentum lookback windows, you get BOTH clean trends AND responsive signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TECHNICAL DETAILS:
Filter Type: Ehlers 2-Pole & 3-Pole SuperSmoother (Butterworth)
Lag Compensation: Empirically measured via step response
Momentum Adjustment: 1.0x (2p+2p) / 1.15x (3p+2p) / 1.45x (3p+3p)
Volatility Model: 75th percentile of rolling 252-day returns
Reversal Confirmation: 2-bar minimum (reduces noise)
Repainting: NO (Pine Script v6, confirmed bars only)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER:
This indicator is for educational and analytical purposes only.
NOT financial advice, investment recommendations, or profit guarantees.
• Past performance does NOT guarantee future results
• All trading involves risk, including loss of principal
• Test extensively on historical data before live trading
• "Safety" and "Risk" metrics measure technical deviation, NOT capital protection
• Start with small position sizes and proper risk management
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
REFERENCE:
Ehlers, J. (2014). "Smoothing The Data." Stocks & Commodities Magazine.
Oppenheim & Schafer. "Discrete-Time Signal Processing" (3rd ed.)
Volatility Expansion Indicator - D_QuantVolatility Expansion Indicator - D_Quant |V|C|E|
1. Concept & Overview
The Volatility Expansion Indicator (VCE) is a composite quantitative tool designed to identify robust trend states by aggregating signals from three distinct market dimensions: Relative Position (Volatility), Cyclical Momentum, and Price Velocity.
Unlike single-source indicators which often generate false positives during choppy markets, the VCE utilizes a "Consensus Engine." It normalizes signals from Bollinger %B, CCI, and ROC into a unified trend score (-1 to +1). This score drives the visual coloring of the price action and background, allowing traders to instantly gauge whether the market is in a state of volatility expansion (trending) or contraction (ranging).
2. Methodology & Calculation
The core logic relies on a weighted aggregation of three technical components. Users can toggle these components on or off in the settings to isolate specific market mechanics.
A. Component 1: Bollinger %B (Relative Positioning)
Logic: Measures where the price is located relative to the Bollinger Bands.
Bullish Condition: If %B > 0.5 (Price is operating in the upper hemisphere of the bands).
Bearish Condition: If %B < 0.0 (Price has broken below the lower band).
Purpose: Filters out weak trends by ensuring price is statistically significant relative to its recent volatility.
B. Component 2: CCI (Commodity Channel Index)
Logic: Measures current price levels relative to an average price level over a specific period.
Thresholds: A standard +100 / -100 threshold is used. Values above 100 add to the bullish score; values below -100 add to the bearish score.
Purpose: Identifies cyclical momentum extremes.
f_cci(_len) =>
cci_val = ta.cci(close, _len)
val = 0
if cci_val > 100
val := 1
if cci_val < -100
val := -1
val
C. Component 3: ROC (Rate of Change)
Logic: Calculates the percentage change between the current price and the price n periods ago.
Thresholds: Simple zero-line crossover. Positive ROC implies bullish velocity; negative implies bearish.
Purpose: Provides a raw directional bias based on pure price speed.
D. The Aggregation Engine: The script sums the active signals and divides by the number of active components.
Bullish Trend: Composite Score > 0 (Visualized as Deep Navy).
Bearish/Neutral: Composite Score ≤ 0 (Visualized as White).
E. Multi-Timeframe (MTF) Capability: The indicator includes a request.security module. This allows you to calculate the consensus trend on a higher timeframe (e.g., Daily) while viewing price action on a lower timeframe (e.g., 15-minute), ensuring you are trading in alignment with the macro trend.
// NEW: Timeframe Selection
tf_input = input.timeframe("", "VCE Timeframe", group=grp_sets, tooltip="Empty = Current Chart. Set to 'D' for fixed Daily trend.")
= request.security(syminfo.tickerid, tf_input, , lookahead=barmerge.lookahead_on)
3. Visualizations
The indicator overlays the following elements on the chart:
Trend SMMA: A central Smoothed Moving Average (SMMA 20) representing the mean.
Volatility Bands: Upper and Lower bands calculated at 2 Standard Deviations from the SMMA.
Bar Coloring:
Navy Blue: Indicates a confirmed Volatility Expansion (Bullish Confluence).
White: Indicates Neutrality, Retracement, or Bearish conditions.
Dynamic Fills: The space between the bands fills with color to highlight the strength of the current regime.
4. How to Use
Trend Following: Look for the bar color to switch to Navy. This indicates that momentum, volatility, and velocity have aligned bullishly. This is often an entry trigger for long positions.
Exits: When the bars switch from Navy back to White/Gray, the volatility expansion has ceased or momentum is diverging. This serves as a warning to tighten stops or take profits.
MTF Filter: Set the "VCE Timeframe" input to "D" (Daily). Trade on the H1 chart. Only take long positions when the Daily VCE paints the background/bands in the Bullish color.
5. Settings
Bollinger %B: Adjust Length and Multiplier (Default: 20, 2.0).
CCI: Adjust Length (Default: 23).
ROC: Adjust Length (Default: 50).
Signal Components: Toggle specific logic blocks on/off to customize the sensitivity of the composite score.
VCE Timeframe: Select the resolution for the calculation (Leave empty for current chart).
Disclaimer: This tool is for informational purposes only. Past performance of volatility expansion does not guarantee future results. Always manage risk appropriately.
CVD Momentum Divergence
1. Introduction
Discover hidden buying/selling pressure before price explodes! The CVD Momentum Divergence indicator compares detrended and normalized price momentum (orange line) against Cumulative Volume Delta momentum (blue line) to reveal when volume flow diverges from price action. These two lines oscillate around zero on the same scale, making hidden strength/weakness crystal clear during market sessions.
2. Key Features
- Dual Detrended Lines : Price momentum (orange) vs CVD momentum (blue) - both normalized
- CVD-Price Divergence Histogram : Green bars above zero when blue (CVD stronger); Red bars below when orange (CVD weaker)
- Trend-Free Analysis : SMA detrending removes directional bias for pure cycle comparison
- Universal CVD Calculation : Works on any volume symbol
- Fully Customizable : Separate price/CVD lengths + smoothing control
3. How to use
Look for divergences between main chart price movement and the separation (distance) between blue/orange lines - the histogram quantifies this perfectly.
- Large GREEN histogram (above zero) = CVD strength >> price movement = buying delta dominates
- Large RED histogram (below zero) = Price strength >> CVD = selling delta dominates
- Both lines above zero = overall buying momentum. Both below zero = selling momentum
- Price falling BUT blue line stays high → hidden buying → upside likely
- Price rising BUT blue lags → selling pressure building → downside risk
NOTE : This indicator shows momentum divergence only! Always confirm with price action (support/resistance, candle patterns, key levels).
7M Multi-Factor Momentum ScoreboardThe 7M Scoreboard is more than just a collection of indicators; it is a Real-Time Scoring Engine designed for momentum traders and quant-focused analysts. While many scripts simply "mash up" indicators, the 7M Dashboard provides a weighted analytical framework that filters market noise into a single, actionable 7M Score.
It evaluates seven distinct dimensions of market health: Price Action, Relative Volume (Time-specific and Daily), Capital Structure (Float), and Multi-timeframe Trend alignment (VWAP, VWMA, MACD).
Make sure to enable Extended Trading Hours in the TradingView settings.
What makes it original?
The core innovation lies in the 7M Scoring & Alerting logic. Instead of a trader manually checking eight different parameters, the script performs a logical "Pass/Fail" assessment on every bar.
Dynamic Time-Anchored Change: Unlike standard change percentages, this script allows you to anchor the "Starting Price" to the Pre-market (4:00 AM), Regular Open (9:30 AM), or Post-market (4:00 PM).
Relative Volume (RVOL) at Time: It compares the current 5-minute volume not just to recent bars, but to the historical average for that specific time of day, filtering out the standard "lunchtime lull."
Capital Structure Integration: It incorporates a "Float" filter, essential for identifying low-float momentum vs. heavy-cap institutional moves.
How it works
The script calculates a total score out of 9 points based on the following criteria:
Momentum: Is price change > X percent from your chosen time anchor?
Liquidity: Is the 5-minute volume > X million?
Relative Strength: Is Daily RVOL and Time-specific RVOL > X?
Trend Alignment: Is price above VWAP and the 20-period VWMA?
Momentum Convergence: Is the MACD histogram positive?
Volatility Health: Is RSI between 30 and 70 (avoiding extreme over-extension)?
Step-by-Step Guide to Use
Set your Market Type: Open the settings and choose your Price Change Anchor.
Use Pre-Market if you trade the morning "Gap and Go."
Use Regular Open if you are a day-trader focused on the 9:30 AM bell.
Configure Thresholds: Set your Min % Move (e.g., 1.5%) and Min 5m Vol.
Monitor the 7M Score: Look at the bottom row.
Score < 5: High-risk, no clear momentum.
Score 7+: High-probability "7M Pass" setup.
Alerts (Great with TV's Watchlist Alerts)
Right-click the chart and "Add Alert." Select the 7M Dashboard and choose the "🚀 7M PASS" condition to be notified the moment a ticker hits your momentum criteria.
Recommended Settings for Different Assets
Small-Cap Momentum Pre-Market - 4.0% (Change) - 500k (5m Vol) - 50M (Float)
Mega-Cap / Tech Regular - 1.0% (Change) - 1.5M (5m Vol) - 30,000M (Float)
Crypto Intraday Regular - 2.5% (Change) - 1M (5m Vol) - 10,000M (Foat)
Technical Details
Pine Script Version: v6
Visuals: Features a high-contrast UI with adaptive text sizing for the final 7M Score.
Alerting: Includes an optimized alert() function for real-time momentum detection.
Disclaimer
The "7M Multi-Factor Momentum Scoreboard" is a technical analysis tool provided for educational and informational purposes only. Nothing contained in this script, its outputs, or the 7M Score constitutes financial, investment, or trading advice. Trading stocks, futures, and cryptocurrencies involves significant risk of loss and is not suitable for every investor.
No Guarantees: Past performance as displayed by historical indicators is not indicative of future results.
Model Limitations: The 7M Score is based on mathematical calculations of price and volume; it does not account for fundamental news, earnings surprises, or broader macroeconomic shifts.
Personal Responsibility: You are solely responsible for your own trading decisions. Always perform your own due diligence and consult with a licensed financial advisor before putting capital at risk.
Crypto PCA [LuxAlgo]The Crypto PCA indicator provides a sophisticated, multi-asset sentiment gauge by applying Principal Component Analysis (PCA) to a basket of the top 20 cryptocurrencies.
By extracting the primary driver of variance across these assets, the tool offers a "market-wide" oscillator that filters out individual coin noise to highlight the dominant trend and sentiment shifts in the crypto space.
In modern quantitative finance, PCA is used to reduce dimensionality and identify the underlying factors that move a group of assets. This indicator brings that institutional-grade approach to the retail trader, condensing the price action of Bitcoin, Ethereum, Solana, and 17 other majors into a single, actionable signal.
🔶 USAGE
The script serves as a macro-sentiment oscillator, allowing traders to see the "hidden" force driving the crypto market. It is designed to identify when the market is moving in unison and when that collective movement has reached an extreme.
🔹 Identifying Market Regimes
The primary use of the PCA line (PC1) is to determine the current market regime. When the oscillator is above the zero line and colored green, it indicates that the majority of the top 20 assets are experiencing positive variance, signaling a broad bullish regime. Conversely, when the line is below zero and colored red, the market is in a collective bearish state. Traders can use this to align their individual trades with the direction of the total market energy.
🔹 Using Snapshot Mode for Situational Analysis
While the continuous mode is ideal for long-term trend following, the Snapshot Mode provides a focused view of market dynamics over the most recent lookback window. This mode isolates the current sentiment cycle, allowing traders to see the specific trajectory and "shape" of the latest move without the influence of older historical data.
By enabling Snapshot Mode, you can analyze the immediate internal structure of the market. It is particularly useful for identifying whether a recent pump or dump is a coordinated market-wide event or a more fragmented move. This helps in distinguishing between a broad structural shift and a temporary volatility spike.
🔹 Spotting Overextended Sentiment
The indicator includes dashed horizontal lines at +2 and -2, representing standard deviation thresholds. Because the assets are standardized before calculation, these levels mark statistical extremes.
Overbought Extremes: When the PCA line exceeds +2, the broad market is significantly overextended to the upside. This often precedes a cooling-off period or a mean-reversion event across the entire sector.
Oversold Extremes: When the PCA line drops below -2, it suggests a "panic" or exhausted selling state across the basket. This can signal potential bottoming interest or a relief rally.
🔹 Gauging Relative Strength
The faint "ghost" lines in the background represent the individual standardized price paths of the 20 included assets. By comparing these to the main PCA line, traders can identify leaders and laggards. An asset line that stays consistently above the PCA line during a rally is exhibiting relative strength, while an asset trailing below the PCA line is underperforming the market average.
🔶 DETAILS
The indicator follows a rigorous mathematical pipeline to ensure the data is statistically significant and comparable across assets with different price scales.
🔹 Standardization (Z-Scores)
Before performing PCA, every asset must be on the same scale. The script converts the price of all 20 assets into Z-scores based on the user-defined Lookback Period. A Z-score tells us how many standard deviations a price is from its mean. This allows the movement of a high-priced asset like BTC to be mathematically compared to a lower-priced asset like PEPE.
🔹 The Basket & PCA Approximation
The indicator includes the following assets: BTC, ETH, BNB, XRP, SOL, TRX, DOGE, ADA, BCH, WBTC, XLM, LTC, HBAR, LINK, AVAX, PEPE, DOT, UNI, NEAR, and ICP.
The script uses a correlation-based approximation to find the First Principal Component. It calculates the correlation of each asset to the equally weighted basket and uses these correlations as "loadings" to compute the PC1. This ensures that assets moving in sync with the general market trend are given higher priority in the final oscillator value.
🔹 Why PCA?
Most "Crypto Indices" are simply weighted averages. PCA is superior because it identifies the commonality between assets. If 18 coins are moving up and 2 are moving down, PCA gives more weight to the 18 moving together, as they represent the "Principal Component" of the market's current energy.
🔶 SETTINGS
🔹 Main Settings
Lookback Period (N): Determines the window used for Z-score standardization and PCA calculation. A shorter period makes the indicator more reactive, while a longer period identifies macro-cycle shifts.
Z-Score Smoothing: Applies a Simple Moving Average (SMA) to the standardized asset values before the PCA calculation. This effectively filters out high-frequency noise and produces a smoother principal component line, which is useful for reducing false regime shifts in volatile markets.
Enable Snapshot Mode: Switches the visual output from a continuous rolling line to a static view of the PCA over the most recent lookback window.
🔹 Visual Settings
Standardized Assets Color: Controls the color and transparency of the 20 individual asset lines.
Bull/Bear Colors: Defines the colors used for positive and negative market sentiment.
Disclaimer: This indicator is a statistical tool for sentiment analysis and does not constitute financial advice. The PCA approach measures variance and correlation, not guaranteed future direction.






















