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.
Oszillatoren
Relative Valuation Oscillator [QuantAlgo]🟢 Overview
The Relative Valuation Oscillator identifies statistical price deviations from fair value using logarithmic price analysis and standard deviation bands. It calculates how far current price has deviated from its mean on a logarithmic scale, normalized by volatility, to generate a centered oscillator that highlights periods when price is statistically stretched above or below its historical average, helping traders identify potential mean reversion opportunities and extreme valuation conditions across different timeframes and markets.
🟢 How It Works
The indicator's core methodology lies in its statistical approach to price valuation, where deviations are measured using logarithmic returns and normalized by standard deviation:
log_price = math.log(close)
mean_log_price = ta.sma(log_price, lookback_period)
standard_deviation = ta.stdev(log_price, lookback_period)
valuation_score = (log_price - mean_log_price) / standard_deviation
First, the script converts price to logarithmic form to account for percentage-based price movements rather than absolute dollar changes, ensuring the indicator works consistently across different price levels and asset classes.
Then, it calculates the mean log price over the specified lookback period to establish a baseline fair value reference:
mean_log_price = ta.sma(log_price, lookback_period)
Next, standard deviation measurement quantifies the typical volatility of log price around this mean, providing a statistical framework for defining normal versus extreme price behavior:
standard_deviation = ta.stdev(log_price, lookback_period)
The valuation score is then derived by measuring how many standard deviations the current log price sits from its mean, creating a normalized oscillator that fluctuates around zero:
valuation_score = (log_price - mean_log_price) / standard_deviation
Finally, threshold-based signal detection identifies extreme conditions when the valuation score exceeds user-defined standard deviation multiples:
is_overvalued = valuation_score > threshold_mult
is_undervalued = valuation_score < -threshold_mult
This creates a statistical mean reversion system that identifies when price has deviated significantly from its historical average on a volatility-adjusted basis, providing traders with objective measurements of relative over or undervaluation.
🟢 Signal Interpretation
▶ Undervalued Zone (Below Negative Threshold): Oscillator falling below the negative threshold line indicates price has deviated significantly below its statistical mean = Potential long/buy opportunities for mean reversion strategies
▶ Overvalued Zone (Above Positive Threshold): Oscillator rising above the positive threshold line indicates price has deviated significantly above its statistical mean = Potential short/sell or profit-taking opportunities
▶ Fair Value Range (Between Thresholds): Oscillator remaining between positive and negative threshold lines indicates price is trading within normal statistical bounds. Within this range, the zero line acts as a directional filter: oscillator above zero but below the upper threshold suggests bullish trend/momentum with price trading above its statistical mean = Trend-following long positions can be maintained; oscillator below zero but above the lower threshold suggests bearish trend/momentum with price trading below its statistical mean = Trend-following short positions can be maintained. The oscillator can remain in these directional zones during sustained trends until mean reversion occurs, signaled by crosses back toward zero or transitions to the opposite extreme threshold.
▶ Zero Line Crosses: Oscillator crossing above zero indicates transition from below-average to above-average valuation, confirming shift to bullish momentum = Potential trend-following long entry; crossing below zero indicates transition from above-average to below-average valuation, confirming shift to bearish momentum = Potential trend-following short entry or long exit. These crosses can signal both the start of directional trends and early mean reversion from extreme conditions.
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets for different trading approaches and timeframes. "Default" provides balanced sensitivity for swing trading on 4-hour and daily charts, generating signals at statistically significant deviations. "Fast Response" delivers more frequent signals for intraday trading on 5-minute to 1-hour charts, reacting quickly to short-term deviations with increased signal frequency. "Smooth Trend" focuses on major extremes for position trading on daily to weekly timeframes, filtering noise to identify only the most significant statistical outliers.
▶ Built-in Alerts: Five alert conditions enable automated monitoring of valuation extremes and transitions. "Overvalued Threshold Crossed" triggers when the oscillator crosses above the positive threshold, signaling potential overvaluation. "Undervalued Threshold Crossed" activates when the oscillator crosses below the negative threshold, signaling potential undervaluation. "Crossed Above Fair Value (0)" and "Crossed Below Fair Value (0)" provide alerts for zero line transitions, indicating shifts between above-average and below-average valuation. "Any Extreme Valuation" offers a combined alert for any threshold breach regardless of direction, allowing traders to monitor both extremes with a single alert setup.
▶ Color Customization: Six visual themes (Classic, Aqua, Cosmic, Cyber, Neon, plus Custom) accommodate different chart backgrounds and visual preferences, with distinct colors for overvalued, undervalued, and fair value conditions. Optional background highlighting with adjustable transparency (0-100%) tints the main chart background during extreme valuation periods, providing immediate visual context without requiring continuous oscillator monitoring. Optional overlay signals display small circle markers directly on the price chart above bars during overvaluation and below bars during undervaluation, allowing correlation of statistical extremes with specific price levels and candlestick patterns.
Scalp Master EliteWe present Scalp Master Elite 👑
This is an advanced trading indicator designed to identify high-probability reversal and take-profit zones 📍.
It combines a dynamic EMA + ATR channel 📊 with multiple confirmation indicators (RSI, Stochastic, CCI, Supertrend, Price Action and more) to reduce noise and false signals 🚫📉.
Thanks to its volatility-adaptive logic 🌊, the indicator works perfectly for scalping and intraday trading ⚡, while also adapting smoothly to higher timeframes and long-term trades 📈⏳.
Inverted bullish / bearish triangle signals 🔺🔻 are followed by one confirmed target per setup 🎯, helping traders manage exits with clarity and discipline.
Optional targets 🎯, smart alerts 🔔, ATR-based filters 📐 and a real-time win-rate table 🏆 provide full trade context with clean and intuitive visuals 🧠✨.
Adaptive Buy Sell Signal [AvantCoin]
A comprehensive customized indicator for different markets
🔴Before you start🔴:
Please note that this tool is designed to assist you in analyzing the market, and NOT to make buy/sell decisions for you. You should combine its data with your own strategies and indicators before making any trading choices
====================
Market-Specific Optimizations
Auto-Detection (or Manual Selection)
It automatically detects which market you're trading:
Forex (EUR/USD, GBP/USD, etc.)
Stocks (AAPL, TSLA, etc.)
Indices (NAS100, SPX, etc.)
Commodities (Gold, Silver, Oil)
Crypto (BTC, ETH, etc.)
avantcoin.com
Forex-Specific Features:
✅ Session Filters: Avoids low-liquidity Asian session
✅ Session backgrounds: Green for London/NY overlap (best trading time)
✅ Tighter ADX threshold (20) - good for Forex trends
✅ Lower volatility filter - skips dead zones
⚙️ Min Confluence: 5 (balanced)
⚙️ Cooldown: 5 bars
⚙️ Volume threshold: 1.3x (Forex has consistent volume)
avantcoin.com
Stocks-Specific Features:
✅ Market hours filter: Only signals during NYSE hours.
✅ Gap detection: Avoids trading immediately after large gaps up/down
✅ Higher ADX threshold (22) - Stocks trend differently
✅ Stricter volume requirement (1.5x) - Stocks vary more
⚙️ Min Confluence: 6 (higher quality)
⚙️ Cooldown: 3 bars (stocks move faster)
Indices (Nasdaq, S&P; 500):
✅ Similar to stocks but slightly more lenient
✅ Lower ADX (18) - Indices are smoother
⚙️ Min Confluence: 5
⚙️ Cooldown: 4 bars
Commodities (Gold, Silver, Oil):
✅ Highest ADX requirement (23) - Only trade strong trends
✅ Higher volatility filter (1.6x) - Commodities can be wild
⚙️ Min Confluence: 6
⚙️ Cooldown: 6 bars (avoid whipsaws)
Crypto:
✅ 24/7 trading (no session restrictions)
✅ Lower ADX (15) - Crypto is always volatile
✅ Much higher volume threshold (2.0x) - Crypto volume spikes
⚙️ Min Confluence: 4 (crypto moves fast)
⚙️ Cooldown: 3 bars
📊 Visual Enhancements:
Market Type Badge at top of table (Forex, Stocks, etc.)
Session Status:
Forex: Shows 🟢 LDN/NY, 🔵 London, 🟠 NY, 🔴 Asian
Stocks: Shows 🟢 Open or 🔴 Closed
Session Background Colors on chart (optional)
Current Settings Display: Shows your Min score, ADX threshold, Cooldown
⚙️ How to Use:
For Forex:
Enable "Avoid Asian Session"
Best signals during London/NY overlap
For Stocks:
Enable "Trade Stock Hours Only"
Watch for gap warnings
avantcoin.com
GCM Volume-Price EssenceTITLE: GCM Volume-Price Essence
DESCRIPTION:
“Stop trading fake moves. Start seeing the Essence of the market.”
Most indicators fail because they only look at Price. They are blind to the "Fuel" behind the move.
The GCM Volume-Price Essence (GCM VPE) is a next-generation market structure tool that mathematically fuses Price Action with Volume Impact. It filters out low-volume "noise" and highlights high-volume "true moves."
HOW IT WORKS (The Math Behind the Magic)
Unlike standard oscillators (RSI/MACD), the GCM VPE uses a proprietary Volume Impact Engine:
Momentum = PriceChange X Log(1 + VolumeRatio)
• Scenario A: Price moves up 5%, but Volume is low → The indicator ignores it (Fakeout).
• Scenario B: Price moves up 2%, but Volume is massive → The indicator spikes (True Breakout).
KEY FEATURES
1. The Quantum Flow Index (QFI)
The main line that oscillates with the market. It uses an Waves Gradient System:
• Green Waves: Strong Bullish Volume Flow.
• Red Waves: Strong Bearish Volume Flow.
• Gradient Fills: Show the strength of the trend visually.
2. The Quantum Base Line (Dynamic Center)
The "Gravity Center" of the market.
• Blue Line: The trend is Bullish (Look for Buys).
• Orange Line: The trend is Bearish (Look for Sells).
• Strategy: Trade in the direction of the Base Line.
3. Triple Candle Divergence (The "Sniper" Feature) ⚡
A specialized algorithm that detects Instant Momentum Shifts.
• Bullish Div (⚡): Price makes 3 Lower Lows, but Flow turns UP.
• Bearish Div (⚡): Price makes 3 Higher Highs, but Flow turns DOWN.
• Use Case: Excellent for catching tops and bottoms in ranging markets.
4. Signal Symbols
• ◆ (Diamond): Anticipation Signal. The Flow is preparing to cross (Early Warning).
• ⚡ (Lightning): Divergence Signal. Price and Momentum disagree (Reversal Likely).
• ▲ / ▼ (Triangle): Continuation Signal. Strong Volume confirms the trend is continuing.
5. Dynamic Zones (Non-Repainting)
The gray/colored bands represent the "Elastic Limits" of price.
• When the QFI enters the Upper Zone, the market is Overextended (Potential Reversal).
• When the QFI enters the Lower Zone, the market is Undervalued (Potential Bounce).
HOW TO TRADE
🟢 THE BUY SETUP (Long)
1. Trend Check: Ensure the Quantum Base Line is Blue.
2. The Trigger: Wait for the QFI line to cross UP through the Base Line (Look for the ◆ Diamond).
3. The Sniper Entry (Optional): If you see a ⚡ (Lightning) symbol at the bottom of a pullback, this is a high-probability reversal entry.
4. Exit: Close the trade when the QFI hits the top Red Zone (Overbought).
🔴 THE SELL SETUP (Short)
1. Trend Check: Ensure the Quantum Base Line is Orange.
2. The Trigger: Wait for the QFI line to cross DOWN through the Base Line (Look for the ◆ Diamond).
3. The Sniper Entry (Optional): If you see a ⚡ (Lightning) symbol at the top of a rally, this is a high-probability reversal entry.
4. Exit: Close the trade when the QFI hits the bottom Green Zone (Oversold).
IMPORTANT: TRADING OPTIONS? READ THIS CAREFULLY
Option volume is often "fragmented" across hundreds of different strike prices, which can give false signals on individual contracts.
• The Strategy: Apply this indicator to the Spot or Futures chart of the underlying asset (e.g., SPY, NIFTY, BTC).
• The Execution: When the indicator generates a Signal (⚡/◆) on the main chart, then execute your trade on the Option Contract.
• IMPORTANT CAUTION: Do not use this tool directly on an illiquid Option Strike.
SETTINGS & CUSTOMIZATION
• Volume Impact Factor: Adjust how sensitive the tool is to volume spikes (Default: 1.5).
• Divergence Lookback: Choose how many candles to analyze for reversals (Default: 3).
• Full Color Control: Customize every wave, line, and signal color to fit your chart theme.
DISCLAIMER: This tool is for educational and analytical purposes only. Volume analysis works best on assets with real volume data (Stocks, Crypto, Futures). For option contract, read Important Note sited above Do not use this tool directly on an illiquid Option Strike
NQ 1M Direction Strength Meter (Bull + Bear) [v6]NQ 1M Direction Strength Meter (Bull + Bear)
By: StanTheTradingMan
License: Mozilla Public License 2.0 (MPL-2.0)
Overview
NQ 1M Direction Strength Meter is a compact, real-time bull vs bear strength engine designed to answer one question clearly:
“Who is in control right now — buyers or sellers — and how strong is that control?”
Instead of printing noisy buy/sell spam, this tool continuously scores Bull Strength and Bear Strength on a 0–100 scale , then displays a Net (Bull − Bear) histogram for quick bias confirmation. It’s tuned for NQ 1-minute action but works on any symbol/timeframe.
What You Get
✅ Bull Strength (0–100) line
✅ Bear Strength (0–100) line
✅ Net histogram = Bull − Bear (dominance / bias)
✅ Optional background tint when bull/bear becomes “strong”
✅ Flip triangles + alerts when strength crosses the “Strong” threshold
✅ Optional RTH-only scoring (0930–1600) to reduce overnight noise
How the Score Works (Simple + Transparent)
Each side (bull/bear) is built from five components, blended into a single 0–100 score:
Directional Slope (ATR-normalized)
Uses EMA slope strength and maps it smoothly (no harsh jumps).
Bull score rises when slope is positive; Bear score rises when slope is negative.
Level / Trend Alignment
Bull points for: above VWAP (optional), above EMA mid, bullish EMA stack (fast ≥ mid ≥ slow)
Bear points for: below VWAP (optional), below EMA mid, bearish EMA stack (fast ≤ mid ≤ slow)
Volume Participation (shared)
Scores higher when current volume meaningfully exceeds its moving average.
Helps avoid “weak moves” that drift without participation.
Pullback Quality (directional)
Bull prefers shallow pullbacks from recent highs.
Bear prefers shallow bounces from recent lows.
Uses ATR to standardize “how bad” a counter-move is.
Momentum (RSI fast)
Bull benefits from higher RSI, Bear benefits from lower RSI (fast reaction).
Default weighting (blended):
Slope 32% • Volume 26% • Pullback Quality 18% • Level/Stack 16% • RSI 8%
How to Use It (Practical Read)
Think of it like a “directional engine gauge,” not a stand-alone entry system.
Bull-favoring conditions:
Bull Strength climbs and holds above 50
Bull Strength pushes above 70 (Strong)
Bear Strength stays suppressed (often below 50 )
Net histogram positive and expanding
Bear-favoring conditions:
Bear Strength climbs and holds above 50
Bear Strength pushes above 70 (Strong)
Bull Strength stays suppressed
Net histogram negative and expanding
Chop / no-trade warning:
Bull and Bear both hovering near mid-range (around 40–60)
Net histogram flipping frequently
Strong threshold rarely holds after being crossed
Signals & Alerts
This script includes two clean “state change” triggers:
Bull turns STRONG when Bull Strength crosses above the Strong Threshold (default 70)
Bear turns STRONG when Bear Strength crosses above the Strong Threshold (default 70)
You can create TradingView alerts using:
“BULL STRONG”
“BEAR STRONG”
These are intended as momentum/confirmation notifications , not guaranteed entries.
Recommended Settings (for NQ 1M)
Defaults are already tuned for fast index futures behavior:
EMA Fast/Mid/Slow: 8 / 21 / 50
RSI Length: 7 (fast)
ATR: 14
Volume MA: 20
Lookback (pullback quality): 60
Smoothing: 5
Strong Threshold: 70
Weak Threshold: 50
VWAP scoring: ON (recommended intraday)
RTH filter: ON if you want cleaner signal integrity (less overnight noise)
Notes / Limitations
This is a strength meter, not a full strategy. Use it alongside structure (levels, VWAP, OR, liquidity, etc.).
Volume behavior varies by market/session; RTH filtering can dramatically improve signal quality for index futures.
Like any oscillator-style tool, it can lag slightly due to smoothing—this is intentional to reduce flicker and false flips.
Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice. Trading involves substantial risk, and you are responsible for your own decisions, risk management, and execution.
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.
Swing Trade StrategySwing Trade Strategy
📊 Overview
Multi-indicator trend-following system for cryptocurrency swing trading. Combines 10 technical indicators with weighted voting to identify high-probability trend reversals.
🎯 Key Features
10 indicators with weighted consensus voting (max 13 points Bull/Bear)
Trend confirmation system reduces false signals
Visual signals: Green/red trend line, buy/sell arrows, position backgrounds
Real-time dashboard: Shows Bull/Bear scores and trend strength
Long-only positions with automatic exits during bear markets
📈 How It Works
Entry: When Bull score exceeds Bear score by +2 (WEAK BULL) or +5 (STRONG BULL), confirmed over 2 bars
Exit: When Bear score exceeds Bull score by -2, confirmed over 2 bars
Indicators: RMI, ALMA, CTI, EMA crossovers, DEMA DMI, Stochastic, Trend Oscillators, and more
📊 Performance Characteristics
Trades: 4-5 per year (swing trading approach)
Win Rate: 39% (fewer wins but larger gains)
Profit Factor: 2.4+ (winners are 2.4x larger than losers)
Max Drawdown: -42%
⚙️ Settings
Timeframe: Daily (1D) recommended
Position Size: 95% of equity
Commission: 0.1% per trade
Asset: Optimized for BTC/crypto
💡 Usage
Apply to BTC Daily chart
Green arrow = BUY, Red arrow = SELL
Monitor dashboard for trend strength
Hold positions until opposite signal
⚠️ Risk Warning
Max 42% drawdown - high risk tolerance required
Long-only strategy - no shorting
Optimized for crypto markets
Past performance ≠ future results
Version: 1.0 | Pine Script: v6 | Style: Trend Following
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.
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.
Mizan Trinity OscillatorTitle: Mizan Trinity Oscillator
Description:
Introduction: The Truth Behind Price Price action can be deceptive. A rising candle does not always mean a rising trend. In the philosophy of Mizan, a price movement is an "Ontological Illusion" unless it is supported by three fundamental forces: Velocity, Money, and Mass.
The Mizan Trinity Oscillator (MTO) is designed to synthesize these three forces into a single, highly responsive frequency line. It acts as the "Engine Gauge" for your chart, telling you if the trend has fuel or if it's running on fumes.
The Trinity Synthesis (The Formula) Unlike standard oscillators (RSI, Stochastic) that only look at price, MTO combines three distinct data sets using a weighted "L-Score" algorithm:
Velocity (CCI): Represents the speed and momentum of the move. (Default Weight: 35%)
Money Flow (CMF): Represents the fuel injected into the market. (Default Weight: 45%)
Mass (OBV): Represents the volume weight behind the move. (Default Weight: 20%)
Unique Innovation: "Silence Mode" The most critical feature of MTO is its ability to stop talking.
The Gray Thin Line: When the market enters a "Choppy/Turbulent" phase or when volume drops significantly, the oscillator turns GRAY and becomes THIN.
Meaning: This is "Noise". The system is telling you that the data is unreliable. Do not trade when the line is gray.
How to Use:
Trend Following:
Thick Turquoise Line: Positive Flow (Valid Buying Pressure).
Thick Orange Line: Negative Flow (Valid Selling Pressure).
The "Ontological Divergence":
If Price is making a New High, but MTO is dropping (Orange) or turning Gray, this is a major warning. It means the "Smart Money" has stopped buying, and the price is rising only due to retail inertia. This is often a Bull Trap.
The Sniper Entry:
Wait for the line to switch from Gray (Silence) to a thick colored line. This indicates that clarity has returned to the market.
Dashboard: The panel on the top right shows the current Trinity Score (0-100) and the market Mode (Positive, Negative, or Silent).
Author's Note: This tool is created to help traders filter out the noise. If the oscillator is Gray, sit on your hands. If it's diverging, protect your capital. Trade the truth, not the illusion.
Intraday Cumulative Volume RatioThis indicator is designed to reveal the true order flow dominance from the start of the trading session. Unlike standard oscillators, it calculates the exact ratio between cumulative buying and selling volume using high-precision intrabar data.
It answers a simple question: "How many times stronger is the buying pressure compared to selling pressure (or vice versa) since the market opened?"
Key Features:
Zero-Based Ratio:
0.0 = Perfectly balanced market (1:1).
+1.0 = Buyers have 2x more volume than sellers.
+2.0 = Buyers have 3x more volume than sellers.
Negative values indicate seller dominance.
Intrabar Precision: Uses lower timeframe data (e.g., 1-minute) to look inside higher timeframe candles for accurate volume classification.
"Market Fuel" Filter: Helps identify stocks with sufficient momentum at the open. If the ratio stays low (near 0), the stock lacks the "fuel" for a sustained move.
Clamp Function: Includes a built-in limiter (default 3.0) to prevent chart distortion caused by extreme volume anomalies at the market open.
How to use:
Identify Trend Strength: Look for values above +2.0 (or below -2.0) to confirm strong directional conviction.
Filter Weak Stocks: If the indicator hovers around 0, avoid trading as there is no clear order flow advantage.
Spot Divergences: If price makes a new high but the Ratio makes a lower high, the buying pressure is fading relative to selling pressure.
Settings:
Reset Period: Default is Daily (D).
Analytical Timeframe: Set to 1 (minute) for best accuracy.
Clamp Limit: Default is 3.0 to keep the chart readable.
Average Sentiment Oscillator (ASO lead)This is a mix of the classic ASO and and implied lead that can be turn off and on respectively.
If you turn on lead, make sure that the lead is 5 for detecting bottoms, and 10 for detecting tops.
Make sure to follow me on X: @thebitcoinfrontierX
Fast Cross (9/20) + EMA 50// @version=5
indicator("Engineer's System: Fast Cross (9/20) + EMA 50", overlay=true)
// ==========================================
// 1. SETTINGS
// ==========================================
group_ma = "Moving Averages"
maLength = input.int(20, title="Main MA (EMA 20)", group=group_ma)
ema9Length = input.int(9, title="Signal MA (EMA 9)", group=group_ma)
ema50Length = input.int(50, title="Trend MA (EMA 50)", group=group_ma)
ema200Length = input.int(200, title="Filter MA (EMA 200)", group=group_ma)
group_macd = "MACD Logic"
fastLen = input.int(12, title="MACD Fast", group=group_macd)
slowLen = input.int(26, title="MACD Slow", group=group_macd)
sigLen = input.int(9, title="MACD Signal", group=group_macd)
group_ut = "UT Bot Settings"
ut_key = input.float(1.0, title="Key Value", step=0.1, group=group_ut)
ut_period = input.int(10, title="ATR Period", group=group_ut)
ut_showLine = input.bool(false, title="Show Trailing Line?", group=group_ut)
// ==========================================
// 2. CALCULATIONS
// ==========================================
maVal = ta.ema(close, maLength) // EMA 20
ema9Val = ta.ema(close, ema9Length) // EMA 9
ema50Val = ta.ema(close, ema50Length) // EMA 50
ema200Val = ta.ema(close, ema200Length) // EMA 200
// MACD for Colors
= ta.macd(close, fastLen, slowLen, sigLen)
bool isGreenZone = macdLine > signalLine
// UT Bot Logic
xATR = ta.atr(ut_period)
nLoss = ut_key * xATR
src = close
xATRTrailingStop = 0.0
xATRTrailingStop := if src > nz(xATRTrailingStop , 0) and src > nz(xATRTrailingStop , 0)
math.max(nz(xATRTrailingStop ), src - nLoss)
else if src < nz(xATRTrailingStop , 0) and src < nz(xATRTrailingStop , 0)
math.min(nz(xATRTrailingStop ), src + nLoss)
else if src > nz(xATRTrailingStop , 0)
src - nLoss
else
src + nLoss
pos = 0
pos := if src < nz(xATRTrailingStop , 0) and src > nz(xATRTrailingStop , 0)
1
else if src > nz(xATRTrailingStop , 0) and src < nz(xATRTrailingStop , 0)
-1
else
nz(pos , 0)
utBuy = (pos == 1) and (pos == -1)
utSell = (pos == -1) and (pos == 1)
// ==========================================
// 3. PLOTTING
// ==========================================
// Plot Lines
plot(ema200Val, title="EMA 200", color=color.white, linewidth=2)
plot(ema50Val, title="EMA 50", color=color.blue, linewidth=2)
// EMA 9 & 20 with Cloud
color mainColor = isGreenZone ? color.lime : color.red
color ema9Color = ema9Val >= maVal ? color.aqua : color.purple
p_ema20 = plot(maVal, title="EMA 20", color=mainColor, linewidth=3)
p_ema9 = plot(ema9Val, title="EMA 9", color=ema9Color, linewidth=2)
fillColor = ema9Val >= maVal ? color.new(color.aqua, 85) : color.new(color.purple, 85)
fill(p_ema9, p_ema20, color=fillColor, title="Cloud EMA 9-20")
// ==========================================
// 4. SIGNALS (UPDATED)
// ==========================================
// --- สัญญาณหลัก (Fast Cross) ---
// แสดงทันทีที่ 9 ตัด 20 (ไม่ต้องสนเส้น 50)
fastBuy = ta.crossover(ema9Val, maVal)
fastSell = ta.crossunder(ema9Val, maVal)
plotshape(fastBuy, title="Fast Buy", style=shape.labelup, location=location.belowbar, color=color.lime, text="BUY", textcolor=color.white, size=size.tiny)
plotshape(fastSell, title="Fast Sell", style=shape.labeldown, location=location.abovebar, color=color.red, text="SELL", textcolor=color.white, size=size.tiny)
// --- UT Bot Signals (Dots) ---
// ยังคงกรองด้วย EMA 200 เพื่อความปลอดภัย
validBuy = utBuy and (close > ema200Val)
validSell = utSell and (close < ema200Val)
plotshape(validBuy, title="Trend Buy Dot", style=shape.circle, location=location.belowbar, color=color.lime, size=size.tiny)
plotshape(validSell, title="Trend Sell Dot", style=shape.circle, location=location.abovebar, color=color.red, size=size.tiny)
// ==========================================
// 5. ALERTS
// ==========================================
alertcondition(fastBuy, title="Buy Signal", message="Engineer System: BUY (9 Cross 20) 🚀")
alertcondition(fastSell, title="Sell Signal", message="Engineer System: SELL (9 Cross 20) 🔻")
alertcondition(validBuy, title="Trend Buy Dot", message="Trend System: UT Bot BUY (Above EMA 200) 🟢")
alertcondition(validSell, title="Trend Sell Dot", message="Trend System: UT Bot SELL (Below EMA 200) 🔴")
Coinview30 LIQThis indicator is generated by analysis of crypto market liquidity, and it shows how market makers set their make and take price and it guides trade options, stop loss and profit taking level settings.
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! 🎯
Combined Trend Indicator - OPTIMIZED Combined Trend Indicator - 10 in 1 (Optimized)
This powerful trend-following indicator combines 10 proven technical indicators into one unified signal system with weighted scoring.
Included Indicators:
RMI Trend Sniper
TS ALMA Smooth
CTI (Correlation Trend Indicator)
Sebastine Trend Catcher
TS Gunxo Trend Sniper
DEMA DMI ViResearch
MM For Loop (Misinkomaster)
DMI For Loop
Trend Oscillator
Stochastic For Loop
How It Works:
Calculates bullish/bearish signals from all 10 indicators
Applies weighted scoring (trend indicators get 2x weight)
Anti-whipsaw filter requires 2-bar confirmation
Displays color-coded trend line below price
Signal Levels:
🟢 Strong Bull (Dark Green) - Difference > 4 → BUY/HOLD
🟢 Weak Bull (Light Green) - Difference 1-4 → CAUTION
🔴 Weak Bear (Light Red) - Difference -1 to -4 → REDUCE
🔴 Strong Bear (Dark Red) - Difference < -4 → SELL/EXIT
Features:
✓ Real-time score display (Bull/Bear out of 13 points)
✓ Automated alerts for trend changes
✓ Optimized parameters for crypto/Bitcoin
✓ Minimal false signals through confirmation filter
Best Used For:
Daily (1D) timeframe, Bitcoin and major cryptocurrencies. Can be adapted for other timeframes and assets.
MAD RSIMAD RSI ~ by GForge
An adaptive trend-following indicator that combines RSI momentum with Median Absolute Deviation (MAD) volatility bands to identify trend direction, gauge regime strength, and generate entry/exit signals.
Core Concept
Most band-based indicators use Standard Deviation to measure volatility. The problem is that StdDev is highly sensitive to outlier candles — a single spike from news, earnings, or liquidation cascades can blow out the bands and distort signals. This indicator replaces StdDev with Median Absolute Deviation (MAD), a statistically robust volatility measure that resists outliers while still tracking genuine changes in market volatility. The result is more stable bands that better represent the true trading range.
RSI-Adaptive Mechanism
A smoothed RSI is calculated and used to dynamically scale the band width. The logic works as follows: when RSI is near 50 (neutral/indecisive), the bands stay at their base width. As RSI moves further from 50 in either direction — indicating stronger bullish or bearish momentum — the bands widen proportionally. This creates a self-adjusting system: during strong trends the bands expand to avoid premature exits, and during choppy consolidation they contract to keep signals responsive.
The RSI smoothing parameter applies an EMA on top of the raw RSI to control how quickly the adaptive multiplier responds. A low smoothing value makes the bands react quickly to momentum shifts. A higher value smooths out the adaptation, which can reduce whipsaws in noisy conditions.
Oscillator & Signal Logic
The indicator computes a Basis line (Simple Moving Average) and places the adaptive MAD bands above and below it. Price position within these bands is then normalized into an oscillator ranging from 0 to 100, where 0 means price is at the lower band, 50 means price is at the basis, and 100 means price is at the upper band.
Signals are generated when this oscillator crosses key thresholds:
A long signal fires when the oscillator crosses above the Long Threshold, indicating price has moved convincingly into the upper portion of the adaptive channel.
A short/exit signal fires when the oscillator crosses below the Short Threshold, indicating momentum has weakened and price is falling back within the channel.
The thresholds are independently configurable. For example, setting a Long Threshold of 80 means you require price to push well above the midpoint before entering, while a Short Threshold of 30 means you exit relatively early before price reaches neutral. This asymmetry can be tuned for different risk appetites — tighter thresholds produce more signals with smaller moves, wider thresholds produce fewer signals but filter out more noise.
Key Parameters
Source — the price input for all calculations. Close is standard, but hl2, hlc3, or ohlc4 can provide smoother behavior on volatile instruments.
RSI Length — controls the RSI lookback period. Longer values produce a smoother RSI that changes the adaptive multiplier gradually. Shorter values make it more reactive.
RSI Smoothing — additional EMA smoothing applied to the RSI before it feeds into the adaptive multiplier. Set to 1 for no extra smoothing.
Basis Length — the SMA period for the center line of the channel. This is the trend anchor. Longer values track slower trends, shorter values hug price more closely.
MAD Length — lookback for the Median Absolute Deviation calculation. Controls how many bars contribute to the volatility estimate. Longer values produce more stable bands, shorter values adapt faster.
Volatility Multiplier — the base scaling factor for band width before RSI adaptation is applied. Higher values widen the bands and reduce signal frequency. Lower values tighten them and increase signal frequency.
Visuals
A gradient cloud beneath price provides an at-a-glance read of trend regime and strength. Bar colors reflect the oscillator position. Signal markers appear as diamonds above and below bars.
Usage Notes
This is a tool to assist your analysis, not a standalone trading system. Always apply your own risk management and confirm signals with additional context.
Past performance does not guarantee future results.
Default settings are a starting point — optimize for your specific instrument, timeframe, and trading style.
The MAD calculation is particularly well-suited for instruments prone to sudden spikes or gap moves where Standard Deviation-based indicators tend to produce erratic signals.
Developed by GForge
BULL-BEAR-WALLDEMPurpose and Overview
Designed for minimalistic charting, this indicator computes RSI (default 14-period on close) but hides all visuals—plots, bands, fills, and smoothing—to focus solely on divergence signals. With overlay=true, it integrates labels onto the main price chart, eliminating separate panes and scale issues. Divergences highlight momentum-price mismatches: bullish for potential upturns (e.g., weakening downtrends), bearish for downturns (e.g., fading rallies). The calculateDivergence input (default false) gates the logic, optimizing for user control and performance.
Technical Implementation
RSI Core: Employs ta.change(), ta.rma() for up/down averages, yielding rsi = 100 - (100 / (1 + up / down)).
Divergence Module: Uses ta.pivotlow()/ta.pivothigh() with fixed lookbacks (left/right: 5) and range filter (5-60 bars). Conditions: Bullish (rsiHL && priceLL), Bearish (rsiLH && priceHH), evaluated conditionally.
Rendering: plotshape() for labels (" Bull "/ " Bear ") at bar extremes (location.belowbar/abovebar), offset by -lookbackRight. Colors: green bull, red bear.
Hiding: color=na for plots/hlines; transparent color.new(..., 100) for fills. Smoothing via switch (SMA/EMA/etc.) but invisible.
Alerts: alertcondition() with pivot context messages.
The structure prioritizes readability: grouped inputs, modular functions, and no unnecessary visuals.
Usage Scenarios and Tips
Apply to trending markets—e.g., 4H BTCUSD for crypto reversals or daily TSLA for stock pullbacks. Enable divergence in settings; labels offset to pivots aid quick scans. Pair with volume or trends for confirmation; alerts enable real-time monitoring. For backtesting, adapt to strategy() using conditions as entry signals.
Customization Options
Inputs: RSI length (min 1), source, divergence toggle (hidden display).
Smoothing: Hidden group with MA types, lengths, BB multipliers.
Extensions: Expose lookbacks as input.int(); add hidden divergences or MTF via request.security().
Limitations and Considerations
Signals rely on data: No divergences mean no labels; adjust parameters for sensitivity.
Repainting possible on live bars; best on closed data.
Not standalone: Divergences (55-65% historical accuracy per studies) need context to avoid false positives in strong trends.
v6-dependent; compatible but feature-limited in v5.
DX with Price-Aligned Color✅ Buy CE ONLY when:
DX > 25
DX is GREEN
Price above VWAP / structure support
❌ Avoid CE when:
DX is RED (even if rising)
✅ PE Logic (optional):
DX rising
Price falling
DX RED + below VWAP
Pro Grid: Dual-Asset Momentum VisualizerPro Grid: Dual-Asset Momentum & Volatility Visualizer
Unlock the "Hidden Dimension" of Price Action.
Most traders only look at Price vs. Time. The Pro Grid Visualizer maps price action into a 2D coordinate system of Momentum (RSI) and Volatility (ATR). This reveals the "speed" and "energy" of the market instantly, allowing you to spot squeezes, expansions, and relative strength against a benchmark (like BTC or SPY) at a glance.
🎯 How It Works
The indicator projects the current market state onto a grid drawn directly on your chart:
• X-Axis (Momentum): Based on RSI.
• Left (<50): Bearish Momentum.
• Right (>50): Bullish Momentum.
• Y-Axis (Volatility): Based on Normalized ATR.
• Bottom (0-30%): Low Volatility (Squeeze/Consolidation).
• Top (70-100%): High Volatility (Expansion/Breakout).
🚀 Key Features
1. Dual-Asset Comparison (Alpha Hunter)
Stop guessing if your asset is outperforming the market. The grid overlays a Benchmark Trail (default: BTC/SPY) alongside your main symbol.
• Cyan Dot (Main): Your current chart.
• Magenta Dot (Benchmark): The market leader.
• The Alpha Signal: If the Cyan dot is to the right of the Magenta dot, your asset has stronger relative momentum than the market.
2. Motion Trails ("Snail Trail")
Static numbers don't tell the whole story. The indicator draws the last N bars as a fading trail, showing you the trajectory.
• Is momentum accelerating? (Trail spacing gets wider).
• Is the move exhausted? (Trail starts curling back).
3. Instant-Start Technology
Unlike standard indicators that wait 200 bars to load, this script uses custom dynamic math functions to approximate data from Bar 1, ensuring the grid appears immediately on any timeframe or new listing.
🧠 How to Read the Quadrants
1. Top Right (High RSI + High Vol): Explosive Bull Run. The asset is moving up fast with high energy.
2. Bottom Right (High RSI + Low Vol): Quiet Uptrend. A steady grind upwards. Often a safe entry zone.
3. Bottom Left (Low RSI + Low Vol): The Squeeze. Price is dead, and volatility is compressed. Watch for a breakout.
4. Top Left (Low RSI + High Vol): Panic/Crash. Price is dropping violently.
⚙️ Settings
• RSI Length: Standard momentum lookback (Default: 14).
• ATR Length: Volatility smoothing period (Default: 14).
• Benchmark Symbol: Choose what to compare against (e.g., BTCUSDT, SPY, ETHUSD).
• Visuals: Toggle the benchmark on/off, adjust grid width, or switch between Neon, Dark, and Light themes.
⚠️ Disclaimer
This tool is for visualization and informational purposes only. It maps past price data and does not predict future movements. Always use proper risk management.
Market Structure Context Engine (SCE)Market Structure Context Engine (SCE) is a price-geometry based contextual analysis tool designed to help traders understand where price is operating within the broader market structure.
Unlike traditional indicators that focus on entries or direction, SCE provides a structural map of the market, highlighting balance, expansion, and key reaction zones that influence how price is likely to behave.
🔹 What This Indicator Shows
SCE organizes market structure into three clear dimensions:
Structure (Market Frame)
Identifies whether the market is operating in a balanced (rotational) environment or a directional (accepting) environment. This helps traders understand whether continuation or mean-reversion behavior is more likely.
Regime (Internal Behavior)
Distinguishes between rotational and expanding price behavior using swing geometry, offering insight into how price is progressing within the current structure.
Location (Context Zones)
Highlights structural extreme zones using envelope bands near the upper and lower boundaries of the active range. These zones represent areas of higher sensitivity where reactions, pauses, or failures are more likely.
🎯 How to Use SCE
Use SCE as a context overlay, not a signal generator
Combine it with momentum, volume, or volatility tools to improve decision quality
Expect different behavior near:
Structural extremes
Balanced vs directional environments
Use it to filter trades, manage expectations, and understand risk
SCE does not provide buy or sell signals and does not imply bullish or bearish direction.
✅ Key Characteristics
Pure market structure and geometry logic
Non-directional, context-only design
Clean and minimal chart visuals
Stable across timeframes
Designed to reduce false expectations and improve trade context
⚠️ Disclaimer
This indicator is provided for educational and analytical purposes only. It does not constitute financial advice. Trading involves risk, and users are responsible for their own trading decisions.
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?






















