CTR Weekly MA + 1D MA (v1)I built this simple pine script to help me trade on the lower timeframe (1d) while still showing my key weekly moving averages to help me trade with the macro trend.
Rules for trading...
Steps for taking a Short position:
1. Wait for all 3 weekly moving averages to be in alignment (8EMA<21SMA<50SMA). When these aligned the candles will change to bright red, meaning bearish.
2. Wait for a pullback to the 1 Day 21SMA. When a candle touches the 21SMA, that candle will change color to white. This will be your alert to get ready to enter into a short.
3. On the next candle you can then take a short position as long as that candle is below the 21SMA, if not, wait for the net daily candle to close. If that is below the 21SMA you can then enter into a short on the opening of the next daily candle.
I built this to trade the Bear Market but this same method can also work in a Bull Market but just do the opposite.
Wskaźniki i strategie
M5_Bull/Bear BBOM5_ Bull/Bear BBO is a derivative oscillator built from LuxAlgo’s original Bollinger Bands Breakout Oscillator (BBO).
This version restructures the original breakout logic into a bull / bear adaptive oscillator, introduces inverted symmetry, and expands the visual system with dynamic level states and conditional color logic. The goal is to provide contextual momentum awareness rather than discrete trade signals.
A key design focus is the interaction between dominant pressure and the absence of opposing pressure. Buying and selling pressure may coexist, but moments where opposing pressure fully dissipates are treated as structurally significant — a “door opening” condition where price is no longer constrained by counter-pressure and is free to expand.
Pressure is explicitly mirrored from the opposite side, creating a symmetrical framework where each side’s expansion is reflected against the other. These mirrored structures are allowed to cross, not as directional signals, but as markers of peak intensity or exhaustion within an expanding pressure phase.
Transitional regimes — where one pressure fades before the other fully emerges — are intentionally left visible rather than smoothed away. These areas often produce late confirmation or no follow-through at all, and are presented as a challenging but informative market state rather than a condition to be optimized away.
The script is intended for visual analysis and context alignment, not as a standalone entry/exit system.
Credits & Licensing
Original concept and base implementation: LuxAlgo
Modifications, restructuring, and visual system: Metaltek5
License: Creative Commons Attribution–NonCommercial–ShareAlike 4.0 (CC BY-NC-SA 4.0)
This script is published as open source under the same license as the original work.
Non-commercial use only. Attribution and share-alike required.
Annotated example illustrating dominant pressure, mirrored behavior, and door opening conditions
Relative Strength Leadership Engine v2.0Relative Strength Leadership Engine v2.0OverviewThe Relative Strength Leadership Engine v2.0 is a context-first diagnostic tool designed to identify true market leadership. Instead of simple ratio lines, this script employs a multi-layered scoring model to determine if a symbol is truly outperforming its benchmark (e.g., SPY) or simply riding market beta.The Problem It SolvesMany relative strength indicators fail to distinguish between idiosyncratic leadership and market correlation. A stock might look strong simply because it is a high-beta names moving in lockstep with a rising index. This engine uses Pearson Correlation Filtering and Volatility Normalization to decouple these factors.How It Works (The Math)To ensure full transparency for the TradingView community, the "Leadership Score" (0–100) is calculated based on four proprietary technical pillars:Baseline Alignment (30 pts): Measures if the $Price / Benchmark$ ratio is above its 21-period EMA.Volatility-Normalized Momentum (25 pts): We calculate a Z-score of the RS slope and divide it by the asset's ATR % of price. This ensures momentum is measured by "clean" price action rather than high-beta volatility spikes.Beta-Decoupling (20 pts): Using ta.correlation, the script penalizes "Market Huggers." Points are awarded when a stock shows strength independent of the benchmark's immediate fluctuations.Freshness & Highs (25 pts): Points are awarded for proximity to 252-day relative strength highs, identifying stocks entering a "Power Zone" of leadership.Interpreting the StatesThe dashboard in the bottom-right identifies three distinct permission states:ENGAGE (Score 80+): Full leadership permission. The asset is outperforming with idiosyncratic strength and clean momentum (See FDX example in the gallery).OBSERVE (Score 50–79): Leadership is present but aging or overly correlated to the market (See MU example in the gallery).STAND DOWN (Score <50): Leadership is broken; the asset is a relative laggard (See CBLL example in the gallery).Technical FeaturesMulti-Timeframe Validation: Optional Weekly/Monthly RS confirmation to filter out "noise."Benchmark Timing Filter: A built-in gate that checks if the broader market (Benchmark) is in a "Risk-Off" regime.Non-Repainting: All security calls use lookahead=barmerge.lookahead_off to ensure historical accuracy.Customizable UI: Toggle the dashboard on/off via the "Style" menu for a cleaner workspace.DisclaimerThis script is an informational diagnostic tool and does not generate trade signals, entries, or exits. Educational use only.
Market Intent Flow (MIF)🟡 Market Intent Flow (MIF) – Gold Trader’s Perspective
Market Intent Flow (MIF) is a price-action-based indicator designed to reveal real market participation behind Gold (XAUUSD) moves.
Instead of flooding the chart with signals, MIF highlights only moments when the market clearly shows intent — whether buyers or sellers are in control.
Gold is a liquidity-driven instrument. MIF is built to respect that nature, not fight it.
🏆 Why Gold Traders Like This Indicator
Gold traders prefer clarity over noise, and that’s exactly what MIF delivers:
🧲 Gold respects structure & momentum
🔊 Big moves happen with volume expansion
🧠 Smart money shows intent before continuation
⏳ Fewer signals = higher quality setups
🎯 Works well on H1, H4, and M15
This makes MIF ideal for intraday, swing, and positional Gold traders.
🧠 Detection Logic
Simple • Effective • Battle-Tested
MIF does not rely on lagging indicators.
It confirms intent using three proven market elements:
📈 Structure Shift – Price must break recent highs or lows
🕯 Candle Strength – Strong body dominance, not weak wicks
🔊 Volume Expansion – Participation confirms conviction
Only when all conditions align, a signal is printed.
💥 Displacement Filter
Power Move Confirmation
Gold often creates fake breakouts.
MIF avoids them using a displacement filter:
🚀 Signals appear only during impulsive candles
❌ Weak, slow, or choppy candles are ignored
📊 Confirms real institutional movement
🔥 Ideal for catching continuation after liquidity events
This keeps the indicator clean, disciplined, and professional.
📌 How to Use It Best
🟢 Green Signal → Bullish intent confirmed
🔴 Red Signal → Bearish intent confirmed
🔵 EMA Line → Market bias & trend filter
⚠️ Important Note
This indicator is a confirmation tool, not a prediction engine.
It is designed to help traders trade with the market, not against it.
Trade ChecklistICT trading checklist. This checklist helps you mark out confluences so you can rate the trade you're about to take and be able to decide if its a good trade or you should skip it. Enjoy
EMA Slope Filter (ATR Threshold) + Supertrend WindowEMA Slope Filter (ATR Threshold) + Supertrend Window
This indicator highlights “trade-allowed” segments based on a mechanical EMA slope condition. It compares the current EMA value (user-defined length) to the EMA value N bars ago (user-defined lookback). A direction is allowed only if the EMA change exceeds an ATR-based threshold: ATR multiplier × ATR(length).
What it shows on the price chart
Green segments (background / EMA color / optional dots): long bias allowed.
Red segments: short bias allowed.
Neutral (gray/no background): filter not satisfied.
Start markers
L / S labels appear at the start of a new allowed segment.
Optional Supertrend delay: start labels can be delayed by X bars after a Supertrend direction switch (Supertrend ATR length and factor are configurable inside the script).
“STOP” wave marker
Define a Supertrend-based search window (e.g., bars 3…20 after a switch).
If the EMA slope filter never aligns with the Supertrend direction within that window, the script prints a STOP label on bar (max+1) to indicate the current wave is considered non-tradable (do not search for entries until the next Supertrend switch).
Extras
Key values (EMA diff, ATR, threshold, diff/ATR, bars since ST switch) are available in the Data Window for quick inspection.
Core IC 2.0
## 📌 NIFTY Weekly Option Seller — Core Regime & Risk Framework
This indicator is designed for **systematic weekly option selling on NIFTY**, focused on **Iron Condors (IC), Put Credit Spreads (PCS), and Call Credit Spreads (CCS)**.
It is **not a scalping tool** and **not a signal generator**.
Instead, it provides a **structured decision framework** to help option sellers decide:
* *What structure to deploy* (IC / PCS / CCS)
* *How aggressive to be* (position size & distance)
* *When to adjust* (defend / harvest / regime change)
---
## 🔍 What the Indicator Does
### 1️⃣ Market Regime Detection
The script continuously evaluates the market and classifies it into one of three regimes:
* **IC (Range / Mixed)** – neutral, mean-reverting conditions
* **PCS (Trend Up)** – bullish trend continuation
* **CCS (Trend Down)** – bearish trend continuation
Regime selection is based on:
* EMA structure
* ADX (trend strength)
* VWAP positioning
* Higher timeframe (daily) trend alignment
---
### 2️⃣ Independent Conviction Scores
The indicator computes **three independent scores (0–5)**:
```
IC / PCS / CCS
```
These scores represent **conviction strength**, not trade signals.
* Higher score = stronger suitability for that structure
* All three scores are always visible for transparency
Only **one active score** (based on the current regime) is used for:
* Position sizing
* Strike distance suggestions
* Risk management logic
---
### 3️⃣ Risk-First Position Guidance
Based on the active score, the indicator suggests:
* **Position Size** (100% / 50% / 25%)
* **Short strike distance** (ATR-based, dynamic)
* **Defend / Harvest conditions**
* **Regime change alerts**
This helps traders remain **consistent and disciplined**, especially during volatile weeks.
---
### 4️⃣ Visual Decision Panel
A compact panel displays all key information at a glance:
* Regime (IC / PCS / CCS)
* ATR & ADX
* Suggested size
* Suggested short distance
* IC / PCS / CCS scores
* Key reference levels (H3 / L3, VWAP)
No guesswork, no over-trading.
---
## 🕒 Recommended Usage
* **Best timeframe:** 1H or 4H
* **Ideal style:** End-of-day or limited-check traders
* **Designed for:** Weekly option sellers (not intraday scalpers)
Adjustments are intended to be made **at fixed checkpoints**, not every candle.
---
## ⚠️ Important Notes
* This is **not financial advice**
* The indicator does **not place trades**
* Works best when combined with:
* Defined stop-loss rules
* Fixed risk-reward discipline
* Proper position sizing
---
## 🎯 Who This Is For
✔ Rule-based option sellers
✔ Traders focused on consistency over excitement
✔ Professionals who value structure and risk control
❌ Not for discretionary scalpers
❌ Not for beginners without options knowledge
BTC - Sentiment (Posts weighted) LSMABTC - Sentiment (Posts Weighted) LSMA | RM
Concept
In the current 2026 market regime, Bitcoin has transitioned into a mature institutional asset. However, retail "Social Liquidity" remains the primary driver of local volatility and blow-off tops. This script serves as a deterministic proxy for crowd conviction, utilizing the LUNARCRUSH:BTC_SENTIMENT feed to identify when social hype has decoupled from fundamental value.
Data Source: LunarCrush Integration
This model utilizes the native LunarCrush data prefix. Unlike simple "mention counts," the BTC_SENTIMENT metric is a percentage-based value (0-100%) representing the "Sentiment of positive posts weighted by interactions."
• Interactions vs. Volume: By weighting sentiment by interactions (likes, shares, comments), the data filters out bot-driven "spam" and focuses on what real participants are actually engaging with.
• Meaning of the Value: 100% indicates that every single interaction-weighted post is positive; 0% indicates total negativity. Historically, BTC sentiment rarely drops below 60% or stays above 90% for long, creating a predictable mean-reverting corridor.
Technical Architecture
• The LSMA Denoising Engine Raw social data is inherently "jittery." To extract a tradable signal, we apply a Least Squares Moving Average (LSMA) with a 28-day lookback.
• Mathematical Advantage: Unlike a Simple Moving Average (SMA), the LSMA calculates a linear regression line for each period to find the "best fit." This allows the indicator to track the velocity of sentiment shifts with significantly less lag, which is critical for identifying "Social Exhaustion" before a price reversal occurs.
• The Social Heat Index (SHI) Calculation: To align this data with the broader Rob Maths ecosystem, we normalize the LSMA output into a standardized 0–10 score using a Linear Feature Scaling (Min-Max) formula: SHI = ((Current LSMA - 65) / 25) * 10 ; This formula treats 65% as the "Floor" (Apathy) and 90% as the "Ceiling" (Hysteria). This 0–10 scale allows for immediate comparison against other institutional risk metrics.
Regime Audits & Usage
• Accumulation (Blue Zone / <72.5%): Social Despair. Retail interest is at a mathematical minimum. Historically, these periods of "Social Apathy" coincide with major local bottoms as institutional "Smart Money" absorbs the lack of retail demand.
• Neutral Zone (Grey): Sustainable growth. Sentiment is within the normal distribution.
• Distribution (Red Zone / >82.5%): Overheated. The crowd is in a state of maximum FOMO. When the SHI exceeds 8.5/10, the risk of a "Liquidity Flush" increases significantly.
Visual Scaling
To ensure the curve is readable, the indicator pane is hard-locked to a 65–90 scale. This prevents the "flat line" effect often seen in 0-100 oscillators and highlights the subtle divergences that occur at cycle peaks.
Disclaimer
Past performance does not guarantee future results. Social metrics are alternative data points and should be used in conjunction with price action and risk management. This is a mathematical model, not financial advice.
Tags
Rob Maths, Rob_Maths, robmaths, Bitcoin, Sentiment, LunarCrush, Quant, LSMA, OnChain, Social Liquidity
CTR Weekly MA TradingI built this simple pine script to help me trade on the lower timeframe (1d) while still showing my key weekly moving averages to help me trade with the macro trend.
Rules for trading...
Steps for taking a Short position:
1. Wait for all 3 weekly moving averages to be in alignment (8EMA<21SMA<50SMA). When these aligned the candles will change to bright red, meaning bearish.
2. Wait for a pullback to the 1 Day 21SMA. When a candle touches the 21SMA, that candle will change color to white. This will be your alert to get ready to enter into a short.
3. On the next candle you can then take a short position as long as that candle is below the 21SMA, if not, wait for the net daily candle to close. If that is below the 21SMA you can then enter into a short on the opening of the next daily candle.
I built this to trade the Bear Market but this same method can also work in a Bull Market but just do the opposite.
UM Multi MA type, Directional Colors + Flip LabelsSummary
UM Multi MA is a multi–moving average trend overlay supporting SMA, EMA, WMA, HMA, KAMA, DEMA, and TEMA. Each MA is colored by slope direction, displays clean right-side Flip prices, and optionally adds price↔MA fills, bar/candle coloring, and alerts for MA direction changes.
⸻
Description
This indicator plots up to five independently configurable moving averages directly on the price chart. Each MA is colored green when rising and red when falling, based on its current slope.
On the last bar only, an optional right-side label displays the MA’s projected Flip price calculation:
• If the MA is currently green (rising), the label is green and shows
“Flip red @ ”
• If the MA is currently red (falling), the label is red and shows
“Flip green @ ”
The script also supports optional price↔MA fills, optional bar/candle coloring driven by any selected MA, and alerts when MA slope direction changes.
⸻
Features
• Up to five moving averages (MA1–MA5), each with independent Enable, Length, and Type settings
• Supported MA types: SMA, EMA, WMA, HMA, DEMA, TEMA, KAMA
• Directional MA coloring (green rising / red falling)
• Right-side labels (last bar only), indicator at what price MA will flip color
MA# TYPE LEN Flip red/green @ target price
• Optional price↔MA fill (user-selectable MA)
• Green fill when price > selected MA and MA is rising
• Red fill when price < selected MA and MA is falling
• Optional bar/candle coloring driven by any selected MA
• Alerts:
• Dropdown alertconditions (visible in the TradingView alert menu)
• Optional dynamic alert() messages that include MA type and length
⸻
Default Values
• Source: Close
• MA1: Enabled, EMA 8, Right-side label ON
• MA2: Enabled, EMA 21, Right-side label OFF
• MA3: Enabled, EMA 50, Right-side label OFF
• MA4: Enabled, EMA 100, Right-side label OFF
• MA5: Enabled, EMA 200, Right-side label OFF
• Label offset: 10 bars
• Price↔MA fill: OFF
• Fill MA: MA1
• Fill transparency: 90
• Candle coloring: OFF
• Color bars using: MA1
• Bar transparency: 0
• Alerts:
• Dropdown alertconditions ON
• Dynamic alert() messages OFF
• MA1 Bull/Bear alerts enabled by default
• MA2–MA5 alerts disabled by default
⸻
Suggested Uses
• Trend Regime Filtering
Use MA200 or MA100 to define bull vs bear regimes, then MA8 or MA21 for trade timing.
• Flip Target Awareness
Use the right-side Flip label as a quick visual reference for where MA slope direction is projected to change.
• Alignment Confirmation
Enable fills and/or candle coloring using your “decision MA” (commonly MA21 or MA50) to maintain consistency.
• Alerting Workflow
Use dropdown alertconditions for standard alerts.
Enable dynamic alerts only if you want messages that include MA type and length (alert type: Any alert() function call).
• KAMA for Chop Reduction
Try KAMA on MA21 or MA50 to reduce noise while staying responsive in trends.
• Faster MA Options (DEMA / TEMA)
Use DEMA or TEMA on MA8 or MA21 for earlier flips, understanding they are more sensitive in sideways markets.
• Volatility Expansion Awareness
Watch for periods where multiple MAs compress tightly; these often precede volatility or price expansion.
• Trade Execution Ideas
Red → green transitions may be used for entries or add-ons.
Green → red transitions may be used for exits or risk reduction.
• Multi-Timeframe Analysis
The author commonly uses Daily and 6-Hour timeframes together.
• MA Stretching Across Timeframes
If you like an 8-period MA on the Daily, try its longer equivalent on lower timeframes (for example, ~55 on the Hourly).
• Indicator Stacking
Designed to pair well with momentum, volatility, and market-structure indicators.
GLD Overlay on GCPlots GLD levels on GC
Uses live GLD + live GC during GLD premarket→after-hours (04:00–20:00 NY, Mon–Fri)
Outside that window, it holds the last ratio from the prior daily close
Updates lines after "min_move"
Draws a grid of GLD $1 levels (±N) mapped into GC space
SLV Overlay on SIDraws SLV overlay on Silver Futures (SI)
Default overlay symbol: AMEX:SLV
Live session window: 04:00–20:00 NY, Mon–Fri
Outside the live session window, it holds the last ratio from the prior daily close
Updates lines after "min_move"
Draws $1 SLV levels (±N) projected into SI price space
ES SPX Pullback Engine (v1)this script is intended to provide clear long or short pullback entries, while /ES is leading the index
Weekly MAs + 1d 21 SMAThis indicator watches for weekly bullish and bearish alignment on your daily chart. It also triggers a long or short when price touches the 1 Day 21 SMA. It helps ensures a high quality trade setup by trading in a lower timeframe (the 1 Day) while working off stronger signals on the 1 Week timeframe, which are the 3 key moving averages (1W 8 EMA, 1W 21SMA, 1W 50SMA).
The trading rule is as followed:
Short Position:
1. Wait for the 1 week moving averages to align bearish (8 EMA < 21 SMA < 50 SMA). All daily candles will then turn bright red.
2. Wait for a pullback to the 1 Day 21 SMA. Once the wick or body touches this SMA, that candle will turn white. This is the signal that will alert you to be ready to enter into a short position.
3.a. If the candle that changed to white is below the 1 Day 21 SMA, you can enter a short position on the opening of the next daily candle.
3.b. If the candle that changed to white is above the 1Day 21 SMA, wait for the close of the next daily candle. If that candle is below the 21 SMA, enter into your short position at the opening of the next daily candle.
For long positions, you do the same as above but in opposite order.
Peak Rejection LevelsPeak Rejection Levels is a price-action–based indicator designed to automatically identify strong rejection levels at swing highs and swing lows.
It highlights areas where price attempted to move further but was firmly rejected, often acting as key support or resistance zones.
The indicator is especially useful for :
Intraday and swing trading
Identifying high-probability rejection zones
Support/resistance mapping based on pure price action
Confluence with trend, structure, or indicator-based strategies
📈 What Is a “Peak Rejection”?
A peak rejection is defined using strict price-action rules:
🔺 Swing High Rejection (Resistance)
A swing high is marked as a rejection when:
The candle is a confirmed swing high
The candle has an upper wick
The upper wick is larger than the candle body
The wick represents the highest price of the swing
This indicates strong selling pressure and rejection from higher prices
🔻 Swing Low Rejection (Support)
A swing low is marked as a rejection when:
The candle is a confirmed swing low
The candle has a lower wick
The lower wick is larger than the candle body
The wick represents the lowest price of the swing
This indicates strong buying pressure and rejection from lower prices
When these conditions are met, the indicator draws a horizontal level at the rejection wick.
🧠 Key Features
✅ Works on any timeframe
✅ Non-repainting (uses confirmed swings)
✅ Automatically removes broken levels
✅ Automatically removes old levels based on time
✅ Clean and uncluttered chart output
✅ Pure price-action logic (no indicators, no lag)
Retail Forex Sentiment Fear/Greed CurrencyPairsRetail Forex Sentiment Fear/Greed CurrencyPairs
Overview
The Retail Forex Sentiment Indicator provides sentiment data for major and cross currency pairs. This indicator displays retail trader positioning using retail brokers data, showing what percentage of retail traders are long or short on each forex pair.
Important: Indicator Split Notice
---------------------------------
Due to TradingView's limitation of 40 data requests per indicator, the original Retail Sentiment Indicator has been split into TWO separate indicators you will find on TradingView:
1. This indicator - Specialized for Forex currency pairs (30+ pairs)
[2. Retail Sentiment Indicator - Multi-Asset CFD & Fear/Greed Index - For indices, commodities, cryptocurrencies, and Fear/Greed indices
Please look at both indicators to access all available sentiment data.
Methodology and Scale Calculation
---------------------------------
This indicator operates on a **-50 to +50 scale** with zero representing perfect market equilibrium.
Scale Interpretation:
- **Zero (0)**: Market balance - exactly 50% of traders long, 50% short
- **Positive values**: Majority long (buying) pressure
- Example: If 63% of traders are long, the indicator shows +13 (63 - 50 = +13)
- **Negative values**: Majority short (selling) pressure
- Example: If 92% of traders are short, the indicator shows -42 (50 - 92 = -42)
Features
--------
- **Auto-Detection**: Automatically loads sentiment data based on the current chart symbol
- **Manual Selection**: Choose from 30+ supported currency pairs when auto-detection is unavailable
- **Visual Zones**: Clear greed/fear zones with color-coded backgrounds (green for fear zone, red for greed zone - contrarian colors)
- **Daily Updates**: Live sentiment data from retail CFD providers
Supported Currency Pairs
========================
Major Pairs
-----------
- EURUSD (most traded pair globally)
- GBPUSD (Cable)
USD Pairs
---------
- USDJPY, USDCHF, USDCAD
- USDPLN
PLN (Polish Zloty) Pairs
------------------------
- USDPLN, EURPLN, GBPPLN, CHFPLN
EUR Cross Pairs
---------------
- EURJPY, EURCHF, EURCAD, EURAUD, EURNZD, EURGBP
GBP Cross Pairs
---------------
- GBPJPY, GBPCHF, GBPCAD, GBPAUD, GBPNZD
AUD (Australian Dollar) Pairs
-----------------------------
- AUDUSD, AUDJPY, AUDCHF, AUDNZD, AUDCAD
NZD (New Zealand Dollar) Pairs
------------------------------
- NZDUSD, NZDJPY, NZDCHF, NZDCAD
CAD Cross Pairs
---------------
- CADJPY, CADCHF
CHF Cross Pairs
---------------
- CHFJPY
How to Use
----------
1. **Auto Mode** (Default): Enable "Auto-load Sentiment Data" checkbox to automatically display sentiment for the current chart's currency pair
2. **Manual Mode**: Disable auto-load and select from the dropdown menu for specific currency pairs
3. **Interpretation**:
- Values above 0 (green line) indicate retail traders are net long (greed/bullish sentiment)
- Values below 0 (red line) indicate retail traders are net short (fear/bearish sentiment)
- Extreme zones (+35 to +50 and -35 to -50) indicate strong positioning
Trading Strategy & Market Philosophy
====================================
Contrarian Trading Approach
---------------------------
The primary purpose of this indicator is based on the fundamental market principle that **the majority of retail forex traders are wrong most of the time**, and currency pairs typically move opposite to the positions held by the majority of retail participants.
Key Strategy Guidelines:
- **Contrarian Signal**: When the majority of retail traders are positioned on one side, consider opportunities in the opposite direction
- **Trend Exhaustion Signal**: When retail traders finally flip to trade WITH an established trend after being wrong for extended period, this often signals trend exhaustion
Interpretation Examples:
- High greed readings (majority long) -> Consider short opportunities
- High fear readings (majority short) -> Consider long opportunities
- Sudden sentiment flip during established trends -> Potential trend reversal signal
Forex-Specific Notes
====================
Currency Correlations
---------------------
When analyzing forex sentiment, consider that:
- USD pairs often move together (if retail is long EURUSD, they're often short USDJPY)
- Cross pairs can provide confirmation signals
- Comparing sentiment across related pairs can reveal broader positioning
Auto-Detection Support
----------------------
The indicator supports automatic detection of various broker ticker formats including:
- Standard pairs (EURUSD, GBPUSD, etc.)
- CME Futures symbols (6E, 6B, JY, etc.)
- Micro futures (M6E, M6B, MJY, etc.)
This functionality is powered by regex pattern matching. However, for some CME futures pairs—particularly those involving JPY, CAD, and CHF—auto-detection may not work properly. In such cases, disable the auto-load checkbox and manually select the ticker from the dropdown menu.
Technical Notes
---------------
- Built with PineScript v6
- Dynamic symbol detection with fallback options
- Optimized for performance with minimal resource usage
- Color-coded visualization with customizable zones
Data Sources
------------
This indicator uses curated sentiment data from retail CFD providers. Data is updated regularly and sourced from reputable financial data providers.
Data Infrastructure Status
--------------------------
Current Data Upload Process:
Please note that sentiment data uploads may occasionally experience minor interruptions. However, this should not pose significant issues as sentiment data typically changes gradually rather than rapidly.
Acknowledgments
---------------
We extend our gratitude to **TradingView** for enabling the use of custom data feeds based on GitHub repositories, making this comprehensive forex sentiment analysis possible.
Disclaimer
----------
This indicator is for educational and informational purposes only. Sentiment data should be used as part of a comprehensive trading strategy and not as the sole basis for trading decisions. Past performance does not guarantee future results. The contrarian approach described is a market theory and may not always produce profitable results. Forex trading involves significant risk of loss.
Regular & Dollar Volume (+ projected volume, HVE, bar coloring)Regular & Dollar Volume shows standard or dollar-weighted volume with fast and slow volume averages, projected volume for the live bar, and optional high-volume and percentile spike cues. An optional bar coloring feature reflects direction and volume strength so high-participation moves stand out without clutter.
Main features
- Dollar volume option with selectable price source (Close, Open, High, Low, HL2, HLC3, OHLC4).
- Fast and slow volume averages (SMA or EMA) for quick context.
- The fast average reacts quickly to recent volume, while the slow average represents the broader baseline.
- Bars are classified based on whether volume is above both averages, below both, or between them. This gives a simple three-state read: unusually strong volume (above both), weak volume (below both), or normal (in between).
- Using two averages avoids overreacting to a single spike while still highlighting real regime shifts in participation.
- Projected volume on the active bar to estimate end-of-bar volume.
- High Volume Ever (HVE) labeling and optional HVE bar coloring .
- Optional percentile spike detection with markers, threshold line, and bar highlighting.
- Optional candle recoloring to match volume bar colors .
- Bar colors reflect both direction (up vs down) and volume strength relative to the two averages.
- This helps you spot high-participation moves at a glance and distinguish strong pushes from low-energy drift.
Participation Regime (Volume Context)Most failed trades aren’t caused by bad entries.
They’re taken in environments where participation is weak.
Price can move without participation.
Trends usually don’t survive it.
This indicator focuses on how much participation is present, not on predicting direction or generating trades.
What it looks at:
The tool compares a fast and a slow volume EMA to see whether activity is expanding or fading relative to its own recent history.
Based on that, the environment is classified into:
LOW participation
NORMAL participation
HIGH participation
This is meant to describe the quality of the environment, not the quality of a setup.
How it’s meant to be used
Use it as a context and risk filter on top of an existing system.
Examples:
Reduce size or expectations when participation is weak
Allow normal or full risk when participation is strong
Be more selective in low-quality environments
It does not tell you when to enter or exit.
It does not predict price.
It does not replace a strategy.
What this is not:
Not a buy/sell indicator
Not a confirmation signal
Not a volume spike alert
Not designed for scalping or mean-reversion
Examples
Example 1 — High participation environment
Participation expands and trend continuation behaves as expected.
Example 2 — Low participation environment
Weak participation environments tend to produce noise and false moves.
Closing thought
Structure decides entries.
Participation influences outcomes.
This tool exists to help judge when trend continuation is statistically more or less favorable, so risk and expectations can be adjusted accordingly.
Notes:
Works on any market and timeframe
Best used as a higher-timeframe context layer
Built for trend-following and swing-based approaches
If you read this and think “this tells me when to buy”, this tool is not for you.
If you read this and think “this helps me understand when to push risk and when not to”, then it’s doing its job.
Volume Weighted LR Z ScoreThis indicator calculates the Volume Weighted Linear Regression
Z-Score (VWLRZS). Unlike a standard Z-Score which measures
deviation from a static mean, this oscillator measures the
statistical distance of price from a dynamic Volume-Weighted
Linear Regression Line (Analysis of Residuals).
Key Features:
1. **Volatility Decomposition:** The indicator separates volatility
based on the 'Estimate Bar Statistics' option.
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
standard Regression Residuals using the selected `Source`
for both the regression line (baseline) and the signal.
- **Decomposition Mode (`Estimate Bar Statistics` = ON):**
Uses a hybrid statistical approach:
a) **The Model (Baseline):** Uses an estimator to calculate
the 'within-bar' mean and fits the Linear Regression
through these statistical centers. This creates a
stable, trend-following expectation model.
b) **The Signal (Observation):** Compares the actual `Source`
(e.g., Close) against this regression line.
(Result: A Z-Score that measures deviations from the current
trend slope rather than a flat average).
2. **Visual Decomposition Logic:** Total Standard Deviation (of
Residuals) is the primary metric displayed. Since Standard
Deviations are not linearly additive (sqrt(a+b) != sqrt(a)+sqrt(b)),
this indicator calculates the *exact* Total Z-Score and partitions
the area underneath based on the Variance Ratio. This ensures the
displayed total volatility remains mathematically accurate while
showing relative composition.
3. **Normalization (Exponential Regression):** Includes an optional
'Normalize' mode. When enabled, the indicator calculates the
Linear Regression on logarithmic data. Mathematically, this
transforms the baseline into an **Exponential Regression Curve**,
making it ideal for analyzing assets with compounding growth
characteristics (constant percentage trend).
4. **Full Divergence Suite (Class A, B, C):** The indicator's
primary feature is its integrated divergence engine. It
automatically detects and plots all three major divergence
classes between price and the Z-Score:
- Regular (A): Signals potential trend exhaustion and reversals.
- Hidden (B): Signals potential trend continuations during pullbacks.
- Exaggerated (C): Signals weakness at double tops/bottoms.
5. **Divergence Filtering and Visualization:**
- **Price Tolerance Filter:** Divergence detection is enhanced
with a percentage-based price tolerance (`pivPrcTol`) to
filter out insignificant market noise, leading to more
robust signals.
- **Persistent Visualization:** Divergence markers are plotted
for the entire duration of the signal and are visually
anchored to the oscillator level of the confirming pivot.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library
6. **Note on Confirmation (Lag):** Divergence signals rely on a
pivot confirmation method to ensure they do not repaint.
- The **Start** of a divergence is only detected *after* the
confirming pivot is fully formed (a delay based on
`Pivot Right Bars`).
- The **End** of a divergence is detected either instantly
(if the signal is invalidated by price action) or with
a delay (when a new, non-divergent pivot is confirmed).
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Calculation:** The Z-Score line *itself* can be calculated on a
higher timeframe, with standard options to handle gaps
(`Fill Gaps`) and prevent repainting (`Wait for...`).
- **Limitation:** The Divergence detection engine (`pivDiv`)
is designed for the active timeframe. Using it in MTF mode
is not recommended as step-data can lead to inaccurate
pivot detection.
8. **Integrated Alerts:** Includes a comprehensive set of built-in
alerts for the Z-Score crossing the neutral line, the configured
Threshold levels, and the start/end of all divergence types.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Volume Weighted Z ScoreThis indicator calculates the Volume Weighted Z-Score (VWZS), a
statistical oscillator that measures the number of standard deviations
the price is removed from its mean. It combines robust volatility
decomposition with advanced divergence detection.
Key Features:
1. **Volatility Decomposition:** The indicator separates volatility
based on the 'Estimate Bar Statistics' option.
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
a simple (Volume-Weighted) Standard Deviation using the
selected `Source` for both the baseline and the signal.
- **Decomposition Mode (`Estimate Bar Statistics` = ON):**
Uses a hybrid statistical approach:
a) **The Model (Baseline):** Uses an estimator to calculate
the 'within-bar' mean and volatility. This creates a
stable, mathematically idealized expectation value (mu).
b) **The Signal (Observation):** Compares the actual `Source`
(e.g., Close) against this statistical baseline.
(Result: A Z-Score that combines a noise-filtered trend
baseline with a highly reactive price signal).
2. **Visual Decomposition Logic:** Total Standard Deviation is the
primary metric displayed. Since Standard Deviations are not
linearly additive (sqrt(a+b) != sqrt(a)+sqrt(b)), this indicator
plots the *exact* Total StdDev and partitions the area underneath
based on the Variance Ratio. This ensures the displayed total
volatility remains mathematically accurate while showing relative
composition.
3. **Normalization (Geometric Average):** Includes an optional
'Normalize' mode. When enabled, the indicator uses a
Geometric Moving Average (GMA) as its baseline and applies a
statistical correction for the log-normal distribution
ensuring symmetry between upside and downside movements.
4. **Full Divergence Suite (Class A, B, C):** The indicator's
primary feature is its integrated divergence engine. It
automatically detects and plots all three major divergence
classes between price and the Z-Score:
- Regular (A): Signals potential trend exhaustion and reversals.
- Hidden (B): Signals potential trend continuations during pullbacks.
- Exaggerated (C): Signals weakness at double tops/bottoms.
5. **Divergence Filtering and Visualization:**
- **Price Tolerance Filter:** Divergence detection is enhanced
with a percentage-based price tolerance (`pivPrcTol`) to
filter out insignificant market noise, leading to more
robust signals.
- **Persistent Visualization:** Divergence markers are plotted
for the entire duration of the signal and are visually
anchored to the oscillator level of the confirming pivot.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library
6. **Note on Confirmation (Lag):** Divergence signals rely on a
pivot confirmation method to ensure they do not repaint.
- The **Start** of a divergence is only detected *after* the
confirming pivot is fully formed (a delay based on
`Pivot Right Bars`).
- The **End** of a divergence is detected either instantly
(if the signal is invalidated by price action) or with
a delay (when a new, non-divergent pivot is confirmed).
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Calculation:** The Z-Score line *itself* can be calculated on a
higher timeframe, with standard options to handle gaps
(`Fill Gaps`) and prevent repainting (`Wait for...`).
- **Limitation:** The Divergence detection engine (`pivDiv`)
is designed for the active timeframe. Using it in MTF mode
is not recommended as step-data can lead to inaccurate
pivot detection.
8. **Integrated Alerts:** Includes a comprehensive set of built-in
alerts for the Z-Score crossing the neutral line, the configured
Threshold levels, and the start/end of all divergence types.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.






















