Trend Gauge [BullByte]Trend Gauge
Summary
A multi-factor trend detection indicator that aggregates EMA alignment, VWMA momentum scaling, volume spikes, ATR breakout strength, higher-timeframe confirmation, ADX-based regime filtering, and RSI pivot-divergence penalty into one normalized trend score. It also provides a confidence meter, a Δ Score momentum histogram, divergence highlights, and a compact, scalable dashboard for at-a-glance status.
________________________________________
## 1. Purpose of the Indicator
Why this was built
Traders often monitor several indicators in parallel - EMAs, volume signals, volatility breakouts, higher-timeframe trends, ADX readings, divergence alerts, etc., which can be cumbersome and sometimes contradictory. The “Trend Gauge” indicator was created to consolidate these complementary checks into a single, normalized score that reflects the prevailing market bias (bullish, bearish, or neutral) and its strength. By combining multiple inputs with an adaptive regime filter, scaling contributions by magnitude, and penalizing weakening signals (divergence), this tool aims to reduce noise, highlight genuine trend opportunities, and warn when momentum fades.
Key Design Goals
Signal Aggregation
Merged trend-following signals (EMA crossover, ATR breakout, higher-timeframe confirmation) and momentum signals (VWMA thrust, volume spikes) into a unified score that reflects directional bias more holistically.
Market Regime Awareness
Implemented an ADX-style filter to distinguish between trending and ranging markets, reducing the influence of trend signals during sideways phases to avoid false breakouts.
Magnitude-Based Scaling
Replaced binary contributions with scaled inputs: VWMA thrust and ATR breakout are weighted relative to recent averages, allowing for more nuanced score adjustments based on signal strength.
Momentum Divergence Penalty
Integrated pivot-based RSI divergence detection to slightly reduce the overall score when early signs of momentum weakening are detected, improving risk-awareness in entries.
Confidence Transparency
Added a live confidence metric that shows what percentage of enabled sub-indicators currently agree with the overall bias, making the scoring system more interpretable.
Momentum Acceleration Visualization
Plotted the change in score (Δ Score) as a histogram bar-to-bar, highlighting whether momentum is increasing, flattening, or reversing, aiding in more timely decision-making.
Compact Informational Dashboard
Presented a clean, scalable dashboard that displays each component’s status, the final score, confidence %, detected regime (Trending/Ranging), and a labeled strength gauge for quick visual assessment.
________________________________________
## 2. Why a Trader Should Use It
Main benefits and use cases
1. Unified View: Rather than juggling multiple windows or panels, this indicator delivers a single score synthesizing diverse signals.
2. Regime Filtering: In ranging markets, trend signals often generate false entries. The ADX-based regime filter automatically down-weights trend-following components, helping you avoid chasing false breakouts.
3. Nuanced Momentum & Volatility: VWMA and ATR breakout contributions are normalized by recent averages, so strong moves register strongly while smaller fluctuations are de-emphasized.
4. Early Warning of Weakening: Pivot-based RSI divergence is detected and used to slightly reduce the score when price/momentum diverges, giving a cautionary signal before a full reversal.
5. Confidence Meter: See at a glance how many sub-indicators align with the aggregated bias (e.g., “80% confidence” means 4 out of 5 components agree ). This transparency avoids black-box decisions.
6. Trend Acceleration/Deceleration View: The Δ Score histogram visualizes whether the aggregated score is rising (accelerating trend) or falling (momentum fading), supplementing the main oscillator.
7. Compact Dashboard: A corner table lists each check’s status (“Bull”, “Bear”, “Flat” or “Disabled”), plus overall Score, Confidence %, Regime, Trend Strength label, and a gauge bar. Users can scale text size (Normal, Small, Tiny) without removing elements, so the full picture remains visible even in compact layouts.
8. Customizable & Transparent: All components can be enabled/disabled and parameterized (lengths, thresholds, weights). The full Pine code is open and well-commented, letting users inspect or adapt the logic.
9. Alert-ready: Built-in alert conditions fire when the score crosses weak thresholds to bullish/bearish or returns to neutral, enabling timely notifications.
________________________________________
## 3. Component Rationale (“Why These Specific Indicators?”)
Each sub-component was chosen because it adds complementary information about trend or momentum:
1. EMA Cross
o Basic trend measure: compares a faster EMA vs. a slower EMA. Quickly reflects trend shifts but by itself can whipsaw in sideways markets.
2. VWMA Momentum
o Volume-weighted moving average change indicates momentum with volume context. By normalizing (dividing by a recent average absolute change), we capture the strength of momentum relative to recent history. This scaling prevents tiny moves from dominating and highlights genuinely strong momentum.
3. Volume Spikes
o Sudden jumps in volume combined with price movement often accompany stronger moves or reversals. A binary detection (+1 for bullish spike, -1 for bearish spike) flags high-conviction bars.
4. ATR Breakout
o Detects price breaking beyond recent highs/lows by a multiple of ATR. Measures breakout strength by how far beyond the threshold price moves relative to ATR, capped to avoid extreme outliers. This gives a volatility-contextual trend signal.
5. Higher-Timeframe EMA Alignment
o Confirms whether the shorter-term trend aligns with a higher timeframe trend. Uses request.security with lookahead_off to avoid future data. When multiple timeframes agree, confidence in direction increases.
6. ADX Regime Filter (Manual Calculation)
o Computes directional movement (+DM/–DM), smoothes via RMA, computes DI+ and DI–, then a DX and ADX-like value. If ADX ≥ threshold, market is “Trending” and trend components carry full weight; if ADX < threshold, “Ranging” mode applies a configurable weight multiplier (e.g., 0.5) to trend-based contributions, reducing false signals in sideways conditions. Volume spikes remain binary (optional behavior; can be adjusted if desired).
7. RSI Pivot-Divergence Penalty
o Uses ta.pivothigh / ta.pivotlow with a lookback to detect pivot highs/lows on price and corresponding RSI values. When price makes a higher high but RSI makes a lower high (bearish divergence), or price makes a lower low but RSI makes a higher low (bullish divergence), a divergence signal is set. Rather than flipping the trend outright, the indicator subtracts (or adds) a small penalty (configurable) from the aggregated score if it would weaken the current bias. This subtle adjustment warns of weakening momentum without overreacting to noise.
8. Confidence Meter
o Counts how many enabled components currently agree in direction with the aggregated score (i.e., component sign × score sign > 0). Displays this as a percentage. A high percentage indicates strong corroboration; a low percentage warns of mixed signals.
9. Δ Score Momentum View
o Plots the bar-to-bar change in the aggregated score (delta_score = score - score ) as a histogram. When positive, bars are drawn in green above zero; when negative, bars are drawn in red below zero. This reveals acceleration (rising Δ) or deceleration (falling Δ), supplementing the main oscillator.
10. Dashboard
• A table in the indicator pane’s top-right with 11 rows:
1. EMA Cross status
2. VWMA Momentum status
3. Volume Spike status
4. ATR Breakout status
5. Higher-Timeframe Trend status
6. Score (numeric)
7. Confidence %
8. Regime (“Trending” or “Ranging”)
9. Trend Strength label (e.g., “Weak Bullish Trend”, “Strong Bearish Trend”)
10. Gauge bar visually representing score magnitude
• All rows always present; size_opt (Normal, Small, Tiny) only changes text size via text_size, not which elements appear. This ensures full transparency.
________________________________________
## 4. What Makes This Indicator Stand Out
• Regime-Weighted Multi-Factor Score: Trend and momentum signals are adaptively weighted by market regime (trending vs. ranging) , reducing false signals.
• Magnitude Scaling: VWMA and ATR breakout contributions are normalized by recent average momentum or ATR, giving finer gradation compared to simple ±1.
• Integrated Divergence Penalty: Divergence directly adjusts the aggregated score rather than appearing as a separate subplot; this influences alerts and trend labeling in real time.
• Confidence Meter: Shows the percentage of sub-signals in agreement, providing transparency and preventing blind trust in a single metric.
• Δ Score Histogram Momentum View: A histogram highlights acceleration or deceleration of the aggregated trend score, helping detect shifts early.
• Flexible Dashboard: Always-visible component statuses and summary metrics in one place; text size scaling keeps the full picture available in cramped layouts.
• Lookahead-Safe HTF Confirmation: Uses lookahead_off so no future data is accessed from higher timeframes, avoiding repaint bias.
• Repaint Transparency: Divergence detection uses pivot functions that inherently confirm only after lookback bars; description documents this lag so users understand how and when divergence labels appear.
• Open-Source & Educational: Full, well-commented Pine v6 code is provided; users can learn from its structure: manual ADX computation, conditional plotting with series = show ? value : na, efficient use of table.new in barstate.islast, and grouped inputs with tooltips.
• Compliance-Conscious: All plots have descriptive titles; inputs use clear names; no unnamed generic “Plot” entries; manual ADX uses RMA; all request.security calls use lookahead_off. Code comments mention repaint behavior and limitations.
________________________________________
## 5. Recommended Timeframes & Tuning
• Any Timeframe: The indicator works on small (e.g., 1m) to large (daily, weekly) timeframes. However:
o On very low timeframes (<1m or tick charts), noise may produce frequent whipsaws. Consider increasing smoothing lengths, disabling certain components (e.g., volume spike if volume data noisy), or using a larger pivot lookback for divergence.
o On higher timeframes (daily, weekly), consider longer lookbacks for ATR breakout or divergence, and set Higher-Timeframe trend appropriately (e.g., 4H HTF when on 5 Min chart).
• Defaults & Experimentation: Default input values are chosen to be balanced for many liquid markets. Users should test with replay or historical analysis on their symbol/timeframe and adjust:
o ADX threshold (e.g., 20–30) based on instrument volatility.
o VWMA and ATR scaling lengths to match average volatility cycles.
o Pivot lookback for divergence: shorter for faster markets, longer for slower ones.
• Combining with Other Analysis: Use in conjunction with price action, support/resistance, candlestick patterns, order flow, or other tools as desired. The aggregated score and alerts can guide attention but should not be the sole decision-factor.
________________________________________
## 6. How Scoring and Logic Works (Step-by-Step)
1. Compute Sub-Scores
o EMA Cross: Evaluate fast EMA > slow EMA ? +1 : fast EMA < slow EMA ? -1 : 0.
o VWMA Momentum: Calculate vwma = ta.vwma(close, length), then vwma_mom = vwma - vwma . Normalize: divide by recent average absolute momentum (e.g., ta.sma(abs(vwma_mom), lookback)), clip to .
o Volume Spike: Compute vol_SMA = ta.sma(volume, len). If volume > vol_SMA * multiplier AND price moved up ≥ threshold%, assign +1; if moved down ≥ threshold%, assign -1; else 0.
o ATR Breakout: Determine recent high/low over lookback. If close > high + ATR*mult, compute distance = close - (high + ATR*mult), normalize by ATR, cap at a configured maximum. Assign positive contribution. Similarly for bearish breakout below low.
o Higher-Timeframe Trend: Use request.security(..., lookahead=barmerge.lookahead_off) to fetch HTF EMAs; assign +1 or -1 based on alignment.
2. ADX Regime Weighting
o Compute manual ADX: directional movements (+DM, –DM), smoothed via RMA, DI+ and DI–, then DX and ADX via RMA. If ADX ≥ threshold, market is considered “Trending”; otherwise “Ranging.”
o If trending, trend-based contributions (EMA, VWMA, ATR, HTF) use full weight = 1.0. If ranging, use weight = ranging_weight (e.g., 0.5) to down-weight them. Volume spike stays binary ±1 (optional to change if desired).
3. Aggregate Raw Score
o Sum weighted contributions of all enabled components. Count the number of enabled components; if zero, default count = 1 to avoid division by zero.
4. Divergence Penalty
o Detect pivot highs/lows on price and corresponding RSI values, using a lookback. When price and RSI diverge (bearish or bullish divergence), check if current raw score is in the opposing direction:
If bearish divergence (price higher high, RSI lower high) and raw score currently positive, subtract a penalty (e.g., 0.5).
If bullish divergence (price lower low, RSI higher low) and raw score currently negative, add a penalty.
o This reduces score magnitude to reflect weakening momentum, without flipping the trend outright.
5. Normalize and Smooth
o Normalized score = (raw_score / number_of_enabled_components) * 100. This yields a roughly range.
o Optional EMA smoothing of this normalized score to reduce noise.
6. Interpretation
o Sign: >0 = net bullish bias; <0 = net bearish bias; near zero = neutral.
o Magnitude Zones: Compare |score| to thresholds (Weak, Medium, Strong) to label trend strength (e.g., “Weak Bullish Trend”, “Medium Bearish Trend”, “Strong Bullish Trend”).
o Δ Score Histogram: The histogram bars from zero show change from previous bar’s score; positive bars indicate acceleration, negative bars indicate deceleration.
o Confidence: Percentage of sub-indicators aligned with the score’s sign.
o Regime: Indicates whether trend-based signals are fully weighted or down-weighted.
________________________________________
## 7. Oscillator Plot & Visualization: How to Read It
Main Score Line & Area
The oscillator plots the aggregated score as a line, with colored fill: green above zero for bullish area, red below zero for bearish area. Horizontal reference lines at ±Weak, ±Medium, and ±Strong thresholds mark zones: crossing above +Weak suggests beginning of bullish bias, above +Medium for moderate strength, above +Strong for strong trend; similarly for bearish below negative thresholds.
Δ Score Histogram
If enabled, a histogram shows score - score . When positive, bars appear in green above zero, indicating accelerating bullish momentum; when negative, bars appear in red below zero, indicating decelerating or reversing momentum. The height of each bar reflects the magnitude of change in the aggregated score from the prior bar.
Divergence Highlight Fill
If enabled, when a pivot-based divergence is confirmed:
• Bullish Divergence : fill the area below zero down to –Weak threshold in green, signaling potential reversal from bearish to bullish.
• Bearish Divergence : fill the area above zero up to +Weak threshold in red, signaling potential reversal from bullish to bearish.
These fills appear with a lag equal to pivot lookback (the number of bars needed to confirm the pivot). They do not repaint after confirmation, but users must understand this lag.
Trend Direction Label
When score crosses above or below the Weak threshold, a small label appears near the score line reading “Bullish” or “Bearish.” If the score returns within ±Weak, the label “Neutral” appears. This helps quickly identify shifts at the moment they occur.
Dashboard Panel
In the indicator pane’s top-right, a table shows:
1. EMA Cross status: “Bull”, “Bear”, “Flat”, or “Disabled”
2. VWMA Momentum status: similarly
3. Volume Spike status: “Bull”, “Bear”, “No”, or “Disabled”
4. ATR Breakout status: “Bull”, “Bear”, “No”, or “Disabled”
5. Higher-Timeframe Trend status: “Bull”, “Bear”, “Flat”, or “Disabled”
6. Score: numeric value (rounded)
7. Confidence: e.g., “80%” (colored: green for high, amber for medium, red for low)
8. Regime: “Trending” or “Ranging” (colored accordingly)
9. Trend Strength: textual label based on magnitude (e.g., “Medium Bullish Trend”)
10. Gauge: a bar of blocks representing |score|/100
All rows remain visible at all times; changing Dashboard Size only scales text size (Normal, Small, Tiny).
________________________________________
## 8. Example Usage (Illustrative Scenario)
Example: BTCUSD 5 Min
1. Setup: Add “Trend Gauge ” to your BTCUSD 5 Min chart. Defaults: EMAs (8/21), VWMA 14 with lookback 3, volume spike settings, ATR breakout 14/5, HTF = 5m (or adjust to 4H if preferred), ADX threshold 25, ranging weight 0.5, divergence RSI length 14 pivot lookback 5, penalty 0.5, smoothing length 3, thresholds Weak=20, Medium=50, Strong=80. Dashboard Size = Small.
2. Trend Onset: At some point, price breaks above recent high by ATR multiple, volume spikes upward, faster EMA crosses above slower EMA, HTF EMA also bullish, and ADX (manual) ≥ threshold → aggregated score rises above +20 (Weak threshold) into +Medium zone. Dashboard shows “Bull” for EMA, VWMA, Vol Spike, ATR, HTF; Score ~+60–+70; Confidence ~100%; Regime “Trending”; Trend Strength “Medium Bullish Trend”; Gauge ~6–7 blocks. Δ Score histogram bars are green and rising, indicating accelerating bullish momentum. Trader notes the alignment.
3. Divergence Warning: Later, price makes a slightly higher high but RSI fails to confirm (lower RSI high). Pivot lookback completes; the indicator highlights a bearish divergence fill above zero and subtracts a small penalty from the score, causing score to stall or retrace slightly. Dashboard still bullish but score dips toward +Weak. This warns the trader to tighten stops or take partial profits.
4. Trend Weakens: Score eventually crosses below +Weak back into neutral; a “Neutral” label appears, and a “Neutral Trend” alert fires if enabled. Trader exits or avoids new long entries. If score subsequently crosses below –Weak, a “Bearish” label and alert occur.
5. Customization: If the trader finds VWMA noise too frequent on this instrument, they may disable VWMA or increase lookback. If ATR breakouts are too rare, adjust ATR length or multiplier. If ADX threshold seems off, tune threshold. All these adjustments are explained in Inputs section.
6. Visualization: The screenshot shows the main score oscillator with colored areas, reference lines at ±20/50/80, Δ Score histogram bars below/above zero, divergence fill highlighting potential reversal, and the dashboard table in the top-right.
________________________________________
## 9. Inputs Explanation
A concise yet clear summary of inputs helps users understand and adjust:
1. General Settings
• Theme (Dark/Light): Choose background-appropriate colors for the indicator pane.
• Dashboard Size (Normal/Small/Tiny): Scales text size only; all dashboard elements remain visible.
2. Indicator Settings
• Enable EMA Cross: Toggle on/off basic EMA alignment check.
o Fast EMA Length and Slow EMA Length: Periods for EMAs.
• Enable VWMA Momentum: Toggle VWMA momentum check.
o VWMA Length: Period for VWMA.
o VWMA Momentum Lookback: Bars to compare VWMA to measure momentum.
• Enable Volume Spike: Toggle volume spike detection.
o Volume SMA Length: Period to compute average volume.
o Volume Spike Multiplier: How many times above average volume qualifies as spike.
o Min Price Move (%): Minimum percent change in price during spike to qualify as bullish or bearish.
• Enable ATR Breakout: Toggle ATR breakout detection.
o ATR Length: Period for ATR.
o Breakout Lookback: Bars to look back for recent highs/lows.
o ATR Multiplier: Multiplier for breakout threshold.
• Enable Higher Timeframe Trend: Toggle HTF EMA alignment.
o Higher Timeframe: E.g., “5” for 5-minute when on 1-minute chart, or “60” for 5 Min when on 15m, etc. Uses lookahead_off.
• Enable ADX Regime Filter: Toggles regime-based weighting.
o ADX Length: Period for manual ADX calculation.
o ADX Threshold: Value above which market considered trending.
o Ranging Weight Multiplier: Weight applied to trend components when ADX < threshold (e.g., 0.5).
• Scale VWMA Momentum: Toggle normalization of VWMA momentum magnitude.
o VWMA Mom Scale Lookback: Period for average absolute VWMA momentum.
• Scale ATR Breakout Strength: Toggle normalization of breakout distance by ATR.
o ATR Scale Cap: Maximum multiple of ATR used for breakout strength.
• Enable Price-RSI Divergence: Toggle divergence detection.
o RSI Length for Divergence: Period for RSI.
o Pivot Lookback for Divergence: Bars on each side to identify pivot high/low.
o Divergence Penalty: Amount to subtract/add to score when divergence detected (e.g., 0.5).
3. Score Settings
• Smooth Score: Toggle EMA smoothing of normalized score.
• Score Smoothing Length: Period for smoothing EMA.
• Weak Threshold: Absolute score value under which trend is considered weak or neutral.
• Medium Threshold: Score above Weak but below Medium is moderate.
• Strong Threshold: Score above this indicates strong trend.
4. Visualization Settings
• Show Δ Score Histogram: Toggle display of the bar-to-bar change in score as a histogram. Default true.
• Show Divergence Fill: Toggle background fill highlighting confirmed divergences. Default true.
Each input has a tooltip in the code.
________________________________________
## 10. Limitations, Repaint Notes, and Disclaimers
10.1. Repaint & Lag Considerations
• Pivot-Based Divergence Lag: The divergence detection uses ta.pivothigh / ta.pivotlow with a specified lookback. By design, a pivot is only confirmed after the lookback number of bars. As a result:
o Divergence labels or fills appear with a delay equal to the pivot lookback.
o Once the pivot is confirmed and the divergence is detected, the fill/label does not repaint thereafter, but you must understand and accept this lag.
o Users should not treat divergence highlights as predictive signals without additional confirmation, because they appear after the pivot has fully formed.
• Higher-Timeframe EMA Alignment: Uses request.security(..., lookahead=barmerge.lookahead_off), so no future data from the higher timeframe is used. This avoids lookahead bias and ensures signals are based only on completed higher-timeframe bars.
• No Future Data: All calculations are designed to avoid using future information. For example, manual ADX uses RMA on past data; security calls use lookahead_off.
10.2. Market & Noise Considerations
• In very choppy or low-liquidity markets, some components (e.g., volume spikes or VWMA momentum) may be noisy. Users can disable or adjust those components’ parameters.
• On extremely low timeframes, noise may dominate; consider smoothing lengths or disabling certain features.
• On very high timeframes, pivots and breakouts occur less frequently; adjust lookbacks accordingly to avoid sparse signals.
10.3. Not a Standalone Trading System
• This is an indicator, not a complete trading strategy. It provides signals and context but does not manage entries, exits, position sizing, or risk management.
• Users must combine it with their own analysis, money management, and confirmations (e.g., price patterns, support/resistance, fundamental context).
• No guarantees: past behavior does not guarantee future performance.
10.4. Disclaimers
• Educational Purposes Only: The script is provided as-is for educational and informational purposes. It does not constitute financial, investment, or trading advice.
• Use at Your Own Risk: Trading involves risk of loss. Users should thoroughly test and use proper risk management.
• No Guarantees: The author is not responsible for trading outcomes based on this indicator.
• License: Published under Mozilla Public License 2.0; code is open for viewing and modification under MPL terms.
________________________________________
## 11. Alerts
• The indicator defines three alert conditions:
1. Bullish Trend: when the aggregated score crosses above the Weak threshold.
2. Bearish Trend: when the score crosses below the negative Weak threshold.
3. Neutral Trend: when the score returns within ±Weak after being outside.
Good luck
– BullByte
Oscillators
Gorgo's Hybrid Oscillator STrategy**Indicator Name:** Gorgo's Hybrid Oscillator STrategy (G.H.O.S.T.)
**Purpose:**
The Gorgo's Hybrid Oscillator STrategy (G.H.O.S.T.) is a multi-component technical analysis tool designed to identify overbought and oversold market conditions, assess trend strength, and signal potential buy and sell opportunities. By combining elements from RSI, Ultimate Oscillator, Stochastic CCI, and ADX, this custom indicator provides a comprehensive view of momentum, trend intensity, and volume context to enhance decision-making.
---
**Components and Logic:**
1. **RSI (Relative Strength Index):**
* Calculated using a customizable period (default: 14) and based on the hlc3 price source.
* Measures recent price changes to evaluate overbought/oversold conditions.
* Incorporated in the final oscillator average.
2. **Ultimate Oscillator:**
* Combines three timeframes (7, 14, 28 by default) to smooth out price movements.
* Uses true range and buying pressure for multi-frame momentum analysis.
* Averaged together with RSI to create the main oscillator signal.
3. **Stochastic CCI:**
* Applies a stochastic process to the Commodity Channel Index (CCI).
* Smooths the %K and %D lines (default: 3 each) to detect subtle reversals.
* Generates oversold (<35) and overbought (>69) signals, plotted as yellow circles.
4. **ADX + DI (Average Directional Index):**
* Determines trend strength using ADX and directional movement indicators (DI).
* ADX threshold is set at 24 by default to filter weak trends.
* Colored histogram columns:
* Green: Strong bullish trend.
* Red: Strong bearish trend.
* Gray: Weak/no trend.
5. **Volume Analysis:**
* Calculates a 9-period SMA of volume.
* Detects significant volume spikes (2.7× the average by default) to validate breakouts or fakeouts.
6. **Oscillator Output ("osc") and Levels:**
* The main plotted oscillator line is the average of the RSI and Ultimate Oscillator.
* Important horizontal lines:
* Overbought (69.0)
* Oversold (35.0)
* Midline (52.0): Neutral reference point.
* ADX threshold line (24.0)
---
**Signals:**
1. **Buy Signal Conditions:**
* Close is less than or equal to open (candle is red).
* Oscillator is decreasing and below oversold level.
* Stochastic CCI is below midline.
* Volume is above average, or excessive volume with oscillator falling below 40.
* ADX confirms trend presence (either above 15 or meeting threshold).
2. **Sell Signal Conditions:**
* ADX increasing and confirming trend.
* Oscillator is increasing and above overbought level.
* Stochastic CCI is above midline.
* Volume is above average, or very high with oscillator above 60.
3. **Visual Feedback:**
* Yellow dots highlight oversold/overbought Stochastic CCI.
* Oscillator line in cyan.
* Background colors:
* Light red for buy signals.
* White for sell signals.
4. **Alerts:**
* Built-in `alertcondition()` calls allow automated alerts for buy and sell events.
---
**Usage Guide:**
* **Best Use Cases:** Trend-following and reversal strategies on any timeframe.
* **Avoid Using Alone:** Use G.H.O.S.T. in conjunction with price action, support/resistance, and other confluence tools.
* **Customization:** All thresholds, periods, and volumes are user-editable from the settings panel.
---
**Interpretation Summary:**
G.H.O.S.T. excels at filtering out noise by combining different oscillators and volume signals to offer contextually valid entries and exits. A bullish (buy) signal typically suggests a market under pressure but potentially bottoming out, while a bearish (sell) signal highlights likely exhaustion after a strong upward push.
This hybrid approach makes the G.H.O.S.T. a reliable ally in volatile or choppy conditions where single-indicator strategies might fail.
MM + MACD [RSI Filter]MM + MACD Trend Follower with RSI Filter
Pedro Canto - Portfolio Manager | CGA/CGE
OVERVIEW
The MM + MACD Trend Follower with RSI Filter is a multi-layered trend-following indicator designed to help traders identify high-probability trend continuation setups while avoiding low-quality entries caused by overbought or oversold market conditions.
This tool combines the power of Moving Averages (MA), the MACD Histogram, and a visual RSI-based filter to validate both trend direction and timing for entries. Its goal is simple: filter out noise and highlight only the most technically relevant buy and sell signals based on objective momentum and trend criteria.
USE CASES
- Identifying trend continuation setups
- Filtering false signals during consolidation phases
- Avoiding trades in overbought or oversold zones
- Enhancing entry timing for both swing and intraday strategies
- Providing visual confirmation of trend strength and momentum alignment
KEY FEATURES
1. Dual Moving Average Setup
The indicator allows full customization of two moving averages (MA1 and MA2), supporting both EMA and SMA types. The slope of the longer MA (MA2) acts as an essential trend filter, ensuring signals are only generated when the market shows clear directional bias.
2. MACD Histogram Trend Confirmation
A classic MACD Histogram calculation is used to validate the momentum of the prevailing trend.
- Bullish Trend: Histogram > 0
- Bearish Trend: Histogram < 0
This step filters out counter-trend signals and ensures trades are aligned with momentum.
3. Intrabar Price Trigger
Unlike standard crossover systems, this indicator waits for intrabar price action to trigger entries:
- Buy Signal: Price crosses below one of the MAs during an uptrend (dip-buy logic)
- Sell Signal: Price crosses above one of the MAs during a downtrend (rally-sell logic)
This intrabar trigger improves entry timing and helps capture retracement-based opportunities.
4. RSI Visual Filter
A short-term RSI is plotted and color-coded to visually highlight overbought and oversold conditions, acting as a discretionary filter for users to avoid low-probability trades during exhaustion points.
5. Dynamic Coloring System
Bar Colors:
- Blue: Bullish trend
- Red: Bearish trend
- Orange: RSI Overbought/Oversold zones
MA Colors:
- Blue for bullish conditions
- Red for bearish conditions
- Gray for neutral/no-trend phases
6. Signal Markers and Alerts
Clear visual buy and sell markers are plotted directly on the chart.
Additionally, the indicator includes real-time alerts for both Buy and Sell signals, helping traders stay informed even when away from the screen.
INPUTS AND CUSTOMIZATION OPTIONS
- Moving Average Types: EMA or SMA for both MA1 and MA2.
- MACD Settings: Customizable fast, slow, and signal periods.
- RSI Settings: Source, length, and overbought/oversold levels fully adjustable.
- Color Customization: Adjust RSI zone colors to suit your chart theme.
---
DISCLAIMER
This indicator is a technical analysis tool designed for educational and informational purposes only. It should not be used as a standalone trading system. Always combine it with sound risk management, price action analysis, and, where applicable, fundamental context.
Past performance does not guarantee future results.
Ultimate Williams %RUltimate Williams %R
The most advanced Williams %R indicator available - featuring multi-timeframe analysis, zero-lag processing, volatility adaptivity, and intelligent extreme zone detection.
Key Improvements Over Standard Williams %R
Multi-Timeframe: Combines short, medium, and long-term Williams %R calculations with Ultimate Oscillator-style weighting for superior signal quality
Zero-Lag Implementation: Utilizes Ehler's Zero-Lag EMA with error correction, eliminating traditional oscillator lag while maintaining smoothness
Volatility Adaptive: Automatically adjusts periods based on ATR volatility analysis for optimal performance in all market conditions
Z-Score Normalization: Provides consistent, statistically-based extreme level detection across different market environments
Perfect For
Overbought/Oversold Identification: Instantly spot extreme market conditions with visual intensity that scales with signal strength
Divergence Analysis: Enhanced responsiveness and smooth operation make divergence patterns clearer and more reliable
Multi-Timeframe Confirmation: Built-in timeframe combination eliminates the need for multiple Williams %R indicators
Entry/Exit Timing: Zero-lag processing provides earlier signals without sacrificing accuracy
Customizable Settings
Timeframe Periods: Adjustable short (7), medium (14), and long (28) periods
Volatility Adaptation: Configurable ATR-based period adjustment
Zero-Lag Processing: Toggle and fine-tune the smoothing system
Z-Score Normalization: Adjustable lookback period for statistical analysis
Extreme Levels: Customizable threshold for extreme signal detection
Rolling Z-Score Trend [QuantAlgo]🟢 Overview
The Rolling Z-Score Trend measures how far the current price deviates from its rolling mean in terms of standard deviations. It transforms price data into standardized scores to identify overbought and oversold conditions while tracking momentum shifts.
The indicator displays a Z-Score line showing price deviation from statistical norms, with background momentum columns showing the rate of change in these deviations. This helps traders and investors identify mean reversion opportunities and momentum shifts across different asset classes and timeframes.
🟢 How It Works
The indicator uses the Z-Score formula: Z = (X - μ) / σ, where X is the current closing price, μ is the rolling mean, and σ is the rolling standard deviation over a user-defined lookback period. This creates a dynamic baseline that adapts to changing market conditions and standardizes price movements for interpretation across different assets and volatility conditions. The raw Z-Score undergoes 3-period EMA smoothing to reduce noise while maintaining responsiveness to market signals.
Beyond the basic Z-Score calculation, the indicator measures the rate of change in Z-Score values between successive bars, displayed as background momentum columns. This momentum component shows acceleration and deceleration of statistical deviations. All calculations are processed through confirmation filters, displaying signals only on confirmed bars to reduce premature signals based on incomplete price action.
🟢 How to Use
1. Z-Score Interpretation and Threshold Zones
Positive Values (Above Zero) : Price trading above statistical mean, suggesting bullish momentum or potential overbought conditions
Negative Values (Below Zero) : Price trading below statistical mean, suggesting bearish momentum or potential oversold conditions
Zero Line Crosses : Signal transitions between statistical regimes and potential trend changes
Upper Threshold Zone : Area above entry threshold (default 1.5) indicating potential overbought conditions
Lower Threshold Zone : Area below negative entry threshold (default -1.5) indicating potential oversold conditions
Extreme Values (±2.0 or higher) : Statistically significant deviations that may indicate reversal opportunities
2. Momentum Background Analysis and Info Table
Green Columns : Accelerating positive momentum in Z-Score values
Red Columns : Accelerating negative momentum in Z-Score values
Column Height : Magnitude of momentum change between bars
Momentum Divergence : When columns contradict primary Z-Score direction, often signals impending reversals
Info Table : Displays real-time numerical values for both Z-Score and momentum, including trend direction indicators and bar-to-bar change calculations for position management
3. Preconfigured Settings
Default : Balanced performance across multiple timeframes and asset classes for general trading and medium-term position management.
Scalping : Responsive setup for ultra-short-term trading on 1-15 minute charts with frequent signals and increased sensitivity to quick price movements.
Swing Trading : Optimized for multi-day positions with noise filtering, focusing on larger price swings. Most effective on 1-4 hour and daily timeframes.
Trend Following : Maximum smoothing that prioritizes established trends over short-term volatility. Generates fewer signals for daily and weekly charts.
Donchian + EMA + T3 (RR 1:2) with 1H EMA FilterFinalized Trend Catcher Ema and T3 confirmation with 1h content table
Smarter Money Flow Divergence Detector [PhenLabs]📊 Smarter Money Flow Divergence Detector
Version: PineScript™ v6
📌 Description
SMFD was developed to help give you guys a better ability to “read” what is going on behind the scenes without directly having access to that level of data. SMFD is an enhanced divergence detection indicator that identifies money flow patterns from advanced volume analysis and price action correspondence. The detection portion of this indicator combines intelligent money flow calculations with multi timeframe volume analysis to help you see hidden accumulation and distribution phases before major price movements occur.
The indicator measures institutional trading activity by looking at volume surges, price volume dynamics, and the factors of momentum to construct an overall picture of market sentiment. It’s built to assist traders in identifying high probability entries by identifying if smart money is positioning against price action.
🚀 Points of Innovation
● Advanced Smart Money Flow algorithm with volume spike detection and large trade weighting
● Multi timeframe volume analysis for enhanced institutional activity detection
● Dynamic overbought/oversold zones that adapt to current market conditions
● Enhanced divergence detection with pivot confirmation and strength validation
● Color themes with customizable visual styling options
● Real time institutional bias tracking through accumulation/distribution analysis
🔧 Core Components
● Smart Money Flow Calculation: Combines price momentum, volume expansion, and VWAP analysis
● Institutional Bias Oscillator: Tracks accumulation/distribution patterns with volume pressure analysis
● Enhanced Divergence Engine: Detects bullish/bearish divergences with multiple confirmation factors
● Dynamic Zone Detection: Automatically adjusts overbought/oversold levels based on market volatility
● Volume Pressure Analysis: Measures buying vs selling pressure over configurable periods
● Multi factor Signal System: Generates entries with trend alignment and strength validation
🔥 Key Features
● Smart Money Flow Period: Configurable calculation period for institutional activity detection
● Volume Spike Threshold: Adjustable multiplier for detecting unusual institutional volume
● Large Trade Weight: Emphasis factor for high volume periods in flow calculations
● Pivot Detection: Customizable lookback period for accurate divergence identification
● Signal Sensitivity: Three tier system (Conservative/Medium/Aggressive) for signal generation
● Themes: Four color schemes optimized for different chart backgrounds
🎨 Visualization
● Main Oscillator: Line, Area, or Histogram display styles with dynamic color coding
● Institutional Bias Line: Real time tracking of accumulation/distribution phases
● Dynamic Zones: Adaptive overbought/oversold boundaries with gradient fills
● Divergence Lines: Automatic drawing of bullish/bearish divergence connections
● Entry Signals: Clear BUY/SELL labels with signal strength indicators
● Information Panel: Real time statistics and status updates in customizable positions
📖 Usage Guidelines
Algorithm Settings
● Smart Money Flow Period
○ Default: 20
○ Range: 5-100
○ Description: Controls the calculation period for institutional flow analysis.
Higher values provide smoother signals but reduce responsiveness to recent activity
● Volume Spike Threshold
○ Default: 1.8
○ Range: 1.0-5.0
○ Description: Multiplier for detecting unusual volume activity indicating institutional participation. Higher values require more extreme volume for detection
● Large Trade Weight
○ Default: 2.5
○ Range: 1.5-5.0
○ Description: Weight applied to high volume periods in smart money calculations. Increases emphasis on institutional sized transactions
Divergence Detection
● Pivot Detection Period
○ Default: 12
○ Range: 5-50
○ Description: Bars to analyze for pivot high/low identification.
Affects divergence accuracy and signal frequency
● Minimum Divergence Strength
○ Default: 0.25
○ Range: 0.1-1.0
○ Description: Required price change percentage for valid divergence patterns.
Higher values filter out weaker signals
✅ Best Use Cases
● Trading with intraday to daily timeframes for institutional position identification
● Confirming trend reversals when divergences align with support/resistance levels
● Entry timing in trending markets when institutional bias supports the direction
● Risk management by avoiding trades against strong institutional positioning
● Multi timeframe analysis combining short term signals with longer term bias
⚠️ Limitations
● Requires sufficient volume for accurate institutional detection in low volume markets
● Divergence signals may have false positives during highly volatile news events
● Best performance on liquid markets with consistent institutional participation
● Lagging nature of volume based calculations may delay signal generation
● Effectiveness reduced during low participation holiday periods
💡 What Makes This Unique
● Multi Factor Analysis: Combines volume, price, and momentum for comprehensive institutional detection
● Adaptive Zones: Dynamic overbought/oversold levels that adjust to market conditions
● Volume Intelligence: Advanced algorithms identify institutional sized transactions
● Professional Visualization: Multiple display styles with customizable themes
● Confirmation System: Multiple validation layers reduce false signal generation
🔬 How It Works
1. Volume Analysis Phase:
● Analyzes current volume against historical averages to identify institutional activity
● Applies multi timeframe analysis for enhanced detection accuracy
● Calculates volume pressure through buying vs selling momentum
2. Smart Money Flow Calculation:
● Combines typical price with volume weighted analysis
● Applies institutional trade weighting for high volume periods
● Generates directional flow based on price momentum and volume expansion
3. Divergence Detection Process:
● Identifies pivot highs/lows in both price and indicator values
● Validates divergence strength against minimum threshold requirements
● Confirms signals through multiple technical factors before generation
💡 Note: This indicator works best when combined with proper risk management and position sizing. The institutional bias component helps identify market sentiment shifts, while divergence signals provide specific entry opportunities. For optimal results, use on liquid markets with consistent institutional participation and combine with additional technical analysis methods.
RSI+MFI+RVI+stoch+BBAn indicator that displays five technical indicators in one code.
The technical indicators are:
RSI, MFI, RVI, Stoch, and BB.
Stochastic Momentum TrackerStochastic momentum Oscillator with accurate settings to show overbought and oversold regions of price action, with a conditionally colored background that shows overbought(RED) and oversold(green).
Stochastic Momentum TrackerStochastic Momentum Indicator with colored background highlighting overbought (red) and Oversold (green) with the conditionally colored background. Great for gauging Momentum pivots for price action.
RedAndBlue Indicator LightsRedAndBlue Indicator Lights — RSI, MFI, and Bollinger Band Sentiment Table
This indicator provides a multi-timeframe sentiment dashboard using RSI , MFI , and Bollinger Bands , visualized in a compact color-coded table.
What it does:
Evaluates RSI and MFI values across multiple timeframes: 5m, 15m, 30m, 1h, 2h, 4h, and 1D
Analyzes Bollinger Bands in two ways:
BB = compares candle body position relative to Bollinger Bands
BBw = checks whether candle wicks pierce above or below the bands
Each cell displays the indicator value or a symbolic label (↓↓, ↓, –, ↑, ↑↑)
Color-coded backgrounds reflect overbought/oversold zones
All thresholds and colors are fully customizable in the input settings
Color meanings:
Green : Strong oversold (value < low1)
Light blue : Slightly oversold (value < low2)
White : Neutral zone (between low2 and high2)
Yellow : Slightly overbought (value > high2)
Red : Strong overbought (value > high1)
BB and BBw label meanings:
↓↓ = Price (or wick) pierced below the lower Bollinger Band
↓ = Candle body is between lower band and midline
– = Candle body crosses the midline (neutral)
↑ = Candle body is between midline and upper band
↑↑ = Price (or wick) pierced above the upper Bollinger Band
How to use it effectively:
If RSI, MFI, BB, and BBw all show oversold signals (green or light blue) across multiple timeframes, especially on 1h, 4h, or 1D, it may signal a good buying opportunity
If the indicators all show overbought signals (red or yellow), it may indicate a potential exit or short zone
BBw shows wick-based signals and can act as an early warning; BB confirms with the candle body
Use this table to spot sentiment confluence across timeframes before entering a trade
If most cells are white, the market is likely in a sideways or neutral state
This indicator helps you quickly identify multi-timeframe sentiment shifts and potential reversal points through a clean, structured visual layout.
Volumetric Expansion/Contraction### Indicator Title: Volumetric Expansion/Contraction
### Summary
The Volumetric Expansion/Contraction (PCC) indicator is a comprehensive momentum oscillator designed to identify high-conviction price moves. Unlike traditional oscillators that only look at price, the PCC integrates four critical dimensions of market activity: **Price Change**, **Relative Volume (RVOL)**, **Cumulative Volume Delta (CVD)**, and **Average True Range (ATR)**.
Its primary purpose is to help traders distinguish between meaningful, volume-backed market expansions and noisy, unsustainable price action. It gives more weight to moves that occur in a controlled, low-volatility environment, highlighting potential starts of new trends or significant shifts in market sentiment.
### Key Concepts & Purpose
The indicator's unique formula synthesizes the following concepts:
1. **Price Change:** Measures the magnitude and direction of the primary move.
2. **Relative Volume (RVOL):** Confirms that the move is backed by significant volume compared to its recent average, indicating institutional participation.
3. **Cumulative Volume Delta (CVD):** Measures the underlying buying and selling pressure, confirming that the price move is aligned with the net flow of market orders.
4. **Inverse Volatility (ATR):** This is the indicator's unique twist. It normalizes the signal by the inverse of the Average True Range. This means the indicator's value is **amplified** when volatility (ATR) is low (signifying a controlled, confident expansion) and **dampened** when volatility is high (filtering out chaotic, less predictable moves).
The goal is to provide a single, easy-to-read oscillator that signals when price, volume, and order flow are all in alignment, especially during a breakout from a period of contraction.
### Features
* **Main Oscillator Line:** A single line plotted in a separate pane that represents the calculated strength of the volumetric expansion or contraction.
* **Zero Line:** A dotted reference line to easily distinguish between bullish (above zero) and bearish (below zero) regimes.
* **Visual Threshold Zones:** The background automatically changes color to highlight periods of significant strength:
* **Bright Green:** Indicates a "Strong Up Move" when the oscillator crosses above the user-defined upper threshold.
* **Bright Fuchsia:** Indicates a "Strong Down Move" when the oscillator crosses below the user-defined lower threshold.
### Configurable Settings & Filters
The indicator is fully customizable to allow for extensive testing and adaptation to different assets and timeframes.
#### Main Calculation Inputs
* **Price Change Lookback:** Sets the period for calculating the primary price change.
* **CVD Normalization Length:** The lookback period for normalizing the Cumulative Volume Delta.
* **RVOL Avg Volume Length:** The lookback for the simple moving average of volume, used to calculate RVOL.
* **RVOL Normalization Length:** The lookback period for normalizing the RVOL score.
* **ATR Length & Normalization Length:** Sets the periods for calculating the ATR and its longer-term average for normalization.
#### Weights
* Fine-tune the impact of each core component on the final calculation, allowing you to emphasize what matters most to your strategy (e.g., give more weight to CVD or RVOL).
#### External Market Filter (Powerful Feature)
* **Enable SPY/QQQ Filter for Up Moves?:** A checkbox to activate a powerful regime filter.
* **Symbol:** A dropdown to choose whether to filter signals based on the trend of **SPY** or **QQQ**.
* **SMA Period:** Sets the lookback period for the Simple Moving Average (default is 50).
* **How it works:** When enabled, this filter will **only allow "Strong Up Move" signals to appear if the chosen symbol (SPY or QQQ) is currently trading above its specified SMA**. This is an excellent tool for aligning your signals with the broader market trend and avoiding bullish entries in a bearish market.
#### Visuals
* **Upper/Lower Threshold:** Allows you to define what level the oscillator must cross to trigger the colored background zones, letting you customize the indicator's sensitivity.
***
**Disclaimer:** This tool is designed for market analysis and confluence. It is not a standalone trading system. Always use this indicator in conjunction with your own trading strategy, risk management, and other forms of analysis.
True High/Low RSI for DivergenceThis Pine Script creates a highly specialized RSI (Relative Strength Index) indicator designed to provide a more accurate signal for divergence trading. Its official title is "True High/Low RSI for Divergence."
Here is a breakdown of its core features:
1. Dual RSI Calculation based on Highs and Lows:
Unlike a standard RSI that typically uses the closing price of a candle, this indicator calculates two separate RSI lines:
A "High RSI" : This line calculates the RSI based on the high price of each candle. It is intended to track momentum peaks more accurately.
A "Low RSI" : This line calculates the RSI based on the low price of each candle. It is designed to track momentum troughs more accurately.
The main purpose of this separation is to avoid the potential errors that can occur when using an average price (like the close or hl2) during periods of high volatility. By using the true extremes of the price candles, the indicator aims to show a more "true" representation of momentum for identifying divergences between price and the indicator.
2. Dynamic Transparency:
This is a key visual feature. The RSI lines are not always fully visible. They dynamically fade into view as they enter significant overbought or oversold zones:
The Low RSI line (red by default) is invisible when above a value of 50. As it drops from 49 towards 30, it becomes progressively more opaque (more visible). It reaches full opacity at an RSI value of 30, visually alerting the user to strengthening oversold conditions.
The High RSI line (blue by default) is invisible when below a value of 50. As it rises from 51 towards 70, it also becomes progressively more opaque. It is fully opaque at an RSI value of 70, highlighting strengthening overbought conditions.
3. User Customization:
The script allows for user flexibility. You can change:
The colors for both the High and Low RSI lines.
The RSI calculation length (default is 14).
The price source for each RSI line (though they are specifically designed to use high and low).
In summary, this indicator is a purpose-built tool for traders who rely on divergence. It provides a more precise and visually intuitive way to track momentum at its true peaks and troughs, helping to make more informed trading decisions.
RSI Rangebound AreaRSI Rangebound Area is a Pine Script v6 indicator that automatically detects consolidation zones where both price and RSI stay within user-defined thresholds. During a rangebound period it:
Shades the background to highlight consolidation
Places “Range Start” and “Range End” labels at the beginning and end
Displays an info table (RSI value, price range %, RSI range, current state: Rangebound/Trending)
Key Inputs
RSI Length
Overbought / Oversold Levels
Range Detection Period
Max Price Range (%)
Max RSI Range
Toggle for “Please add RSI(14) indicator” reminder
Ideal for spotting flat markets and refining breakout or mean-reversion entries. Free and open-source—feel free to customize and contribute!
1M/2M Scalping BUY/SELL IndicatorScript Name: CHN BUY SELL v5 — Multi-Timeframe EMA + RSI + Candlestick Patterns
This script is a powerful multi-signal trading tool designed for scalping and trend-based strategies, combining multi-timeframe EMA, RSI-based conditions, and classic candlestick patterns to generate buy/sell signals.
🔧 Key Features:
Multi-Timeframe EMA 200:
Plots the EMA 200 from multiple timeframes (2m, 5m, 10m, 15m) to visualize higher timeframe trends on the current chart.
RSI Analysis:
Calculates RSI using configurable length.
Highlights Overbought and Oversold zones.
Custom bar coloring based on RSI level (e.g., orange when overbought, purple when oversold).
Candlestick Pattern Detection:
Bullish/Bearish Engulfing
Hammer & Shooting Star
Two Consecutive Green or Red Bars
Buy/Sell Signal Logic:
Generates buy/sell labels when RSI aligns with engulfing candle patterns or other configurations.
Optional pattern detection can be enabled/disabled via settings (e.g., hammer signals or two-bar confirmations).
Visuals:
Clear labels and shapes on chart for each signal type.
Multiple EMA lines help identify trend direction across timeframes.
Alerts:
Built-in alert conditions for:
General RSI signal
Buy/Sell signals
Hammer or Shooting Star detections
🧠 How to Use:
Apply this script to a low timeframe chart (e.g., 1m, 2m).
Example : Trade 2M chart - Use EMA 200 at 10M timeframes.
Use the higher timeframe EMA to trade in the direction of the major trend.
Watch for RSI + pattern confluence signals for higher probability entries.
Let me know if you'd like a shorter version or one tailored for publishing to the TradingView public library.
Bitcoin Macro Oscillator | [DeV]The Bitcoin Macro Oscillator (BMO) is a sophisticated fundamental indicator designed to provide a comprehensive view of Bitcoin’s market conditions by combining four key on-chain metrics: the Market Value to Realized Value (MVRV) Ratio, Volume-Weighted Average Price (VWAP) Ratio, Cumulative Value-Days Destroyed (CVDD) Ratio, and Sharpe Ratio. These metrics are individually z-scored and weighted according to user-defined preferences, then averaged to produce a single oscillating value, the BMO Z-score. This helps users identify whether Bitcoin is in a bullish (above zero) or bearish (below zero) phase, offering insights into potential market tops, bottoms, and overall trend strength. Inspired and reverse engineered from the BMO of Woonomics, this indicator is enhanced with a customizable moving average.
Market Value to Realized Value (MVRV) Ratio
The MVRV Ratio compares Bitcoin’s current market capitalization (price multiplied by circulating supply) to its realized capitalization (the value of all coins at the price they were last moved on the blockchain). Calculated as MVRV = Market Cap / Realized Cap, it is then z-scored over a user-defined lookback period (default 120 days). This metric tracks whether Bitcoin is overvalued (high MVRV, suggesting a market top) or undervalued (low MVRV, indicating a potential bottom), providing a gauge of investor profitability and market sentiment.
Volume-Weighted Average Price (VWAP) Ratio
The VWAP Ratio measures Bitcoin’s current price against its volume-weighted average price, which is computed by summing the product of price and volume over a lookback period (default 120 days) and dividing by total volume, with a fallback to the current price if volume is zero. The ratio is z-scored to standardize it. This tracks the relationship between price and the average price paid with volume consideration, helping identify overbought or oversold conditions—high values may signal tops, while low values suggest bottoms.
Cumulative Value-Days Destroyed (CVDD) Ratio
The CVDD Ratio is based on the CVDD metric, which estimates the total value of Bitcoin that has been “destroyed” (spent at a loss) over time, approximated here using a longer-term simple moving average (SMA) of the price over twice the lookback period. The ratio is calculated as the current price divided by this CVDD price, then z-scored. It tracks the accumulation of value destruction, with low values indicating bearish exhaustion and high values suggesting bullish momentum.
Sharpe Ratio
The Sharpe Ratio assesses Bitcoin’s risk-adjusted return by comparing the average return (calculated as the natural log of the price change) to its volatility (standard deviation of returns) over a user-defined Sharpe lookback period (default 180 days). If volatility is zero, it defaults to zero to avoid errors. This z-scored value tracks whether Bitcoin’s price movements offer a favorable return for the risk taken—positive values indicate good risk-adjusted performance, while negative values suggest caution.
Together, the MVRV, VWAP, CVDD, and Sharpe Ratio metrics provide a multi-faceted view of Bitcoin’s market health, with each contributing unique insights into valuation, volume, value destruction, and risk-adjusted performance. Their weighted combination into the BMO Z-score balances these inputs to offer a unified signal, enhanced by a customizable moving average (default 90-period EMA) that smooths the Z-score for trend confirmation—rising when bullish, falling when bearish. Credit to Woonomics for inspiring this robust framework, which adapts their BMO concept into a flexible, user-tailored tool.
Killzone - StradercommunityKillzone indicator - Stradercommunity V 0.1
New York (Blue)
London (Red)
Japan (Yellow)
MA Cloud with Custom MAs, RSI, Trendlines and S&R [deepakks444]Overview
This indicator combines an EMA-based cloud, customizable moving averages, RSI with divergence detection, trendlines, and support/resistance levels to provide a comprehensive tool for identifying buy and sell opportunities. Designed for trend-following and momentum-based strategies, it generates clear entry/exit signals, visualizes key market levels, and tracks performance statistics, making it suitable for stocks, forex, cryptocurrencies, and other markets.
Originality and Component Integration
The indicator’s originality lies in its synergistic integration of multiple technical analysis tools to create a robust, multi-faceted system. Unlike single-indicator tools, it combines:
EMA Cloud: Captures short-term momentum for immediate trend insights.
Moving Averages: Confirm broader trend direction with customizable periods.
RSI with Divergence: Detects momentum shifts and potential reversals.
Trendlines: Highlights dynamic support/resistance for breakout signals.
Support/Resistance: Marks static price zones for context.
These components were merged to:
Enhance Reliability: Requiring confluence (e.g., green cloud, MA crossover, and volume surge) reduces false signals.
Adapt to Market Conditions: The mix of trend-following (MAs, trendlines) and momentum (cloud, RSI) tools ensures versatility across trending or ranging markets.
Improve Visualization: Colored clouds, trendlines, and labeled zones simplify complex market dynamics.
Support Decision-Making: Performance metrics and alerts enable data-driven trading.
This unique combination offers traders a holistic view of price action, momentum, and key levels, distinguishing it from standard indicators like basic RSI or MA crossovers.
Usage
Apply the indicator to a chart and adjust settings to match your trading style. Signals are marked with "L" (buy) or "S" (sell) labels. Use the EMA Cloud’s color, MA alignment, and trendline/support-resistance breakouts to confirm trades. Set alerts for RSI, breakouts, or signals to stay informed.
Features
EMA Cloud: Plots a green (bullish), red (bearish), or yellow (neutral) band based on price versus short-term EMAs.
Moving Averages: Short (20-period), medium (50-period), and long-term (200-period) MAs with customizable types and crossover signals.
RSI Panel: Displays RSI with smoothing, Bollinger Bands, and divergence labels for overbought/oversold conditions.
Trendlines: Draws short-, medium-, and long-term lines connecting pivot highs/lows, with breakout alerts.
Support/Resistance: Visualizes key price zones as boxes, with breakout/retest labels.
Performance Table: Shows total trades and win rate for strategy evaluation.
Alerts: Notifies for RSI thresholds, breakouts, retests, divergences, and signals.
Settings
EMA Cloud: Adjust EMA length (default: 9) and volume MA period (default: 20).
Moving Averages: Set periods (20, 50, 200) and types (SMA, EMA, WMA).
RSI: Configure period (default: 14), bands (40/60), and smoothing.
Trendlines: Modify pivot lookback and minimum touches (default: 3).
Support/Resistance: Adjust lookback period for pivot detection.
Signal Logic
Buy Signal: Triggered when at least one condition is met:
Green EMA Cloud.
Short-term MA crosses above medium-term MA or is above it.
Price breaks above medium/long-term resistance trendline.
Confirmed by price above 9-period EMA and volume above 20-period MA.
Sell Signal: Triggered when:
Red EMA Cloud.
Short-term MA crosses below medium-term MA or is below it.
Price breaks below medium/long-term support trendline.
Confirmed by price below 9-period EMA and volume above 20-period MA.
Exits: Close buy when price falls below 9-period EMA; close sell when price rises above it.
Notes
Best used on higher timeframes (e.g., 4H, daily) for reliable signals.
Test thoroughly before live trading, as signals are for reference only.
Credits: Open-source code/libraries were used.
Limitations: May produce fewer signals in choppy markets; adjust settings for sensitivity.
Disclaimer
Signals are not guaranteed to be profitable. Backtest and validate before use in live trading.
Nikko Vortex StrategyWelcome to My Vortex Strategy for Pine Script v6
Results may vary depending on the timeframe, asset, and configuration.
📘 Strategy Overview
This strategy is powered by the Vortex Indicator (VI) — a tool developed by Etienne Botes and Douglas Siepman, introduced in Technical Analysis of Stocks & Commodities in 2010.
The VI is designed to identify trend initiations and confirm ongoing trends, making it ideal for momentum-based strategies.
⚙️ Strategy Characteristics
This system is best suited for moderately volatile coins, where it helps smooth out gains while maintaining steady growth.
🛠️ Key Parameters
Bar Multiple:
Controls how frequently new positions are opened/closed in an uptrend/downtrend.
Close All When Bearish:
When enabled, this forces the strategy to close all open positions as soon as the trend turns bearish. When disabled, it allows for pyramiding in both directions, depending on your risk tolerance.
Disclaimer:
This strategy is provided for educational and informational purposes only. Trading involves risk, and results may vary depending on configuration and market conditions. Always backtest thoroughly over a significant number of trades and monitor live performance carefully before considering any real trading. I am not offering financial advice.
Cumulative Volume Delta Line Indicator (CVD Line Indicator)v2.0
This is a free simple line indicator that represents CVD. The script has been tuned specifically to most popular timeframes to be more accurate of the timeframe of the chart. This may make the line appear less smooth than other indicators, but should be more accurate to the current timeframe of the chart.
This indicator was created to be used along with the following to be a poor man's Exocharts:
Select Volume Footprint instead of Candles on the TradingView chart
Row Size - Auto (ATR)
ATR Length - 9
Display - Cluster
Type - Delta
Open Interest Suite - By Leviathan indicator
📊 Trend Table (EMA20/50) PRO📊 Trend Table (EMA20/50) PRO
This script displays a color-coded trend dashboard based on the relationship between the EMA 20 and EMA 50 moving averages across multiple timeframes:
🕐 1m, 5m, 15m, 1h, 4h.
📌 Features:
✅ Green = Bullish Trend (EMA20 > EMA50)
✅ Red = Bearish Trend (EMA20 < EMA50)
🎨 Fully customizable text and background color
📍 Selectable table position (left / center / right, top / bottom)
🔁 Auto-refreshes every few bars for real-time accuracy
Perfect as a multi-timeframe trend dashboard for scalpers and swing traders – ideal for XAUUSD, US30, NAS100 and more. Helps you instantly assess trend alignment across key timeframes.
Configurable Stock vs QQQ Strength MatrixSolves Key Intraday Trading Challenges
Real-Time Relative Strength Analysis: Traditional watchlists only show price movements, but traders need to understand how individual stocks perform relative to their benchmark (QQQ) to identify true outperformers and underperformers during intraday sessions.
Multiple Timeframe Support: The script addresses the need for consistent analysis across different intraday timeframes (1, 3, 5, 15 minutes), allowing traders to adapt their analysis to various trading styles from scalping to swing trading.
Comprehensive Multi-Metric View: Instead of switching between multiple indicators, this single script provides four different relative strength perspectives in one compact display, saving screen real estate and analysis time.
Customizable Stock Selection: Unlike fixed watchlists, this tool allows traders to monitor any combination of stocks, making it adaptable for sector rotation, earnings plays, or custom stock baskets.
Target Use Cases
Intraday Momentum Trading: Quickly identify which stocks are gaining or losing momentum relative to the market during active trading sessions.
Sector Analysis: Compare stocks within specific sectors (tech, banking, energy) against QQQ to find relative strength leaders.
Risk Management: Monitor portfolio holdings to see which positions are outperforming or underperforming the broader tech-heavy market represented by QQQ.
How the Four Metrics Work
1. MFI Comparison (Money Flow Index)
Purpose: Measures buying and selling pressure by combining price movement with trading volume.
Calculation:
Compares each stock's 14-period MFI with QQQ's MFI
MFI ranges from 0-100, incorporating both price changes and volume
Higher MFI indicates stronger buying pressure
Interpretation:
▲ (Green): Stock has stronger money flow than QQQ - institutional buying interest
▼ (Red): Stock has weaker money flow than QQQ - potential selling pressure
- (Yellow): Neutral or insufficient data
2. RS Ratio (Relative Strength Ratio)
Purpose: Direct price performance comparison between stock and benchmark.
Calculation:
Simple ratio: Stock Price ÷ QQQ Price
Values above 1.0 indicate outperformance
Values below 1.0 indicate underperformance
Interpretation:
▲ (Green): Stock price relatively stronger than QQQ
▼ (Red): Stock price relatively weaker than QQQ
- (Yellow): Equal performance or data issues
3. RSI Comparison (Relative Strength Index)
Purpose: Compares momentum oscillators to identify relative overbought/oversold conditions.
Calculation:
Compares 14-period RSI of stock vs QQQ's RSI
RSI measures rate of price change momentum
Difference indicates relative momentum strength
Interpretation:
▲ (Green): Stock has higher momentum than QQQ - potential continued strength
▼ (Red): Stock has lower momentum than QQQ - potential weakness
- (Yellow): Similar momentum levels
4. VWRS (Volume-Weighted Relative Strength)
Purpose: Incorporates trading volume to weight the relative strength calculation.
Calculation:
Formula: (Stock Price × Stock Volume) ÷ (QQQ Price × QQQ Volume)
Accounts for liquidity and institutional participation
Higher values indicate volume-supported strength
Interpretation:
▲ (Green): Volume-weighted strength exceeds QQQ - strong institutional interest
▼ (Red): Volume-weighted weakness vs QQQ - potential distribution
- (Yellow): Balanced volume-weighted performance