Bollinger Bottom + Middle Lines with Inline TextThis script visualizes key Bollinger Band levels based on two different SMAs (20 & 50 periods), with clear labeling and a smart price table.
🔸 Features:
Draws lower and middle Bollinger Band lines for both SMA(20) and SMA(50)
Inline text at the end of each line instead of default labels (cleaner view)
A dynamic table in the top-right corner, sorted from highest to lowest level
Color-coded rows:
▪️ Orange → BB20 Mid & BB20 Lower
▪️ Green → BB50 Mid & BB50 Lower
Auto-updates each bar without cluttering the chart
✅ Ideal for identifying technical accumulation zones
✅ Suitable for investors using scaling-in strategies or mean-reversion logic
Cerca negli script per "accumulation"
WVAD with Gap Compensation**Indicator Name:** WVAD with Gap Compensation  
**Purpose:** Enhances the classic Williams Vix Fix (WVAD) by incorporating the impact of price gaps (jump ups/downs) in its calculation.  
**Key Features:**  
1. **Gap Detection:** Automatically identifies significant gaps (default: >0.5% from prior bar's high/low).  
2. **Gap Compensation:** Adjusts the WVAD calculation by adding the gap size to the daily price change.  
3. **Dynamic Weighting:** Applies a multiplier (1.2x or 1.5x) to the WVAD value on days with medium/large gaps (based on ATR).  
4. **Visualization:**  
   - Plots the enhanced WVAD line (blue) and optionally the original WVAD (gray circles).  
   - Marks gap events with colored arrows (green ▲ for gap up, red ▼ for gap down) and connects the gap's impact with dashed lines.  
   - Includes a zero line for reference.  
**Use Cases:**  
- Gauges the true strength of money flow by accounting for gaps.  
- Identifies potential trend shifts around gap events.  
- Filters noise by focusing on significant gaps.  
**Parameters:**  
- `Accumulation Period`: Number of days to sum WVAD (default: 12).  
- `Gap Threshold (%)`: Minimum gap size to trigger compensation (default: 0.5%).  
- `Show Original WVAD`: Toggles display of the classic WVAD.  
**Version:** Pine Script® v6  
Simple DCA Strategy----
### 📌 **Simple DCA Strategy with Backtest Date Filter**
This strategy implements a **Dollar-Cost Averaging (DCA)** approach for long positions, including:
* ✅ **Base Order Entry:** Starts a position with a fixed dollar amount when no position is open.
* 🔁 **Safety Orders:** Buys additional positions when the price drops by a defined percentage, increasing position size with each new entry using a multiplier.
* 🎯 **Take Profit Exit:** Closes all positions when the price reaches a profit target (in % above average entry).
* 🗓️ **Backtest Date Range:** Allows users to specify a custom start and optional end date to run the strategy only within that time window.
* 📊 **Plots:** Visualizes average entry, take profit level, and safety order trigger line.
#### ⚙️ Customizable Inputs:
* Base Order Size (\$)
* Price Deviation for Safety Orders (%)
* Maximum Safety Orders
* Order Size Multiplier
* Take Profit Target (%)
* Start and End Dates for Backtesting
This is a **long-only strategy** and is best used for backtesting performance of DCA-style accumulation under different market conditions.
----
Volume Spike Analyzer(SMA10-Based)📊 **Volume Spike Analyzer (SMA10-Based)**
This indicator highlights abnormal volume activity by comparing current volume to the 10-period Simple Moving Average (SMA) of volume. It helps traders visually identify unusual activity that may precede breakouts, reversals, or news-driven moves.
---
🔧 **Features:**
• ✅ Colors volume bars:
  • Green = Volume > SMA(10)  
  • Red = Volume ≤ SMA(10)
• ✅ Detects and labels spike levels:
  • 🔶2x — Volume > 2x SMA(10)  
  • 🟢3x — Volume > 3x SMA(10)  
  • 🔴4x — Volume > 4x SMA(10)
• ✅ Built-in alerts for all 3 spike levels
---
📈 **Best Use Cases:**
• Confirm breakouts with strong volume  
• Detect accumulation/distribution  
• Filter low-volume setups  
• Combine with VWAP/EMA for directional confirmation
---
⏱️ **Recommended Timeframes:**
• Intraday: 5m, 15m, 1h  
• Also works on daily for swing trades
---
🧠 **Pro Tips:**
• Use with VWAP or EMA(20/50/200) for confluence  
• Add SMA(Volume, 10) to your price chart for quick correlation  
• Combine with candle pattern detection for signal validation
---
Asset Premium/Discount Monitor📊 Overview 
The Asset Premium/Discount Monitor is a tool for analyzing the relative value between two correlated assets. It measures when one asset is trading at a premium or discount compared to its historical relationship with another asset, helping traders identify potential mean reversion opportunities, or pairs trading opportunities. 
 🎯 Use Cases 
Perfect for analyzing:
 
 NASDAQ:MSTR  vs  CRYPTO:BTCUSD  - MicroStrategy's premium/discount to Bitcoin
 NASDAQ:COIN  vs  BITSTAMP:BTCUSD  - Coinbase's relative value to Bitcoin
 NASDAQ:TSLA  vs  NASDAQ:QQQ   - Tesla's premium to tech sector
 Regional banks  AMEX:KRE  vs  AMEX:XLF  - Individual bank stocks vs financial sector
 
Any two correlated assets where relative value matters
Example of a trade: MSTR vs BTC - When indicator shows MSTR at 95% percentile (extreme premium): Short MSTR, Buy BTC. Then exit when the spread reverts to the mean, say 40-60% percentile.
 🔧 How It Works 
Core Calculation
 
 Ratio Analysis: Calculates the price ratio between your asset and the correlated asset
 Historical Baseline: Establishes the "normal" relationship using a 252-day moving average. You can change this. 
 Premium Measurement: Measures current deviation from historical average as a percentage
 Statistical Context: Provides percentile rankings and standard deviation bands
 
 The Math 
Premium % = (Current Ratio / Historical Average Ratio - 1) × 100
 🎨 Customization Options 
Correlated Asset: Choose any symbol for comparison
Lookback Period: Adjust historical baseline (50-1000 days)
Smoothing: Reduce noise with moving average (1-50 days)
Visual Toggles: Show/hide bands and percentile lines
Color Themes: Customize premium/discount colors
 📊 Interpretation Guide 
Premium/Discount Reading
 
 Positive %: Asset trading above historical relationship (premium)
 Negative %: Asset trading below historical relationship (discount)
 Near 0%: Asset at fair value relative to correlation
 
Percentile Ranking
 
 90%+: Near recent highs - potential selling opportunity
 10% and below: Near recent lows - potential buying opportunity
 25-75%: Normal trading range
 
Signal Classifications
 
 🔴 SELL PREMIUM: Asset expensive relative to recent range
 🟡 Premium Rich: Moderately expensive, monitor for reversal
 ⚪ NEUTRAL: Fair value territory
 🟡 Discount Opportunity: Moderately cheap, potential accumulation zone
 🟢 BUY DISCOUNT: Asset cheap relative to recent range
 
🚨 Built-in Alerts
 
 Extreme Premium Alert: Triggers when percentile > 95%
 Extreme Discount Alert: Triggers when percentile < 5%
 
 ⚠️ Important Notes 
 
 Works best with highly correlated assets 
 Historical relationships can change - monitor correlation strength
 Not investment advice - use as one factor in your analysis
 Backtest thoroughly before implementing any strategy
 
 🔄 Updates & Future Features 
This indicator will be continuously improved based on user feedback. So... please give me your feedback! 
Chaikin Oscillator Enhanced📊 What Is the Chaikin Oscillator?
The Chaikin Oscillator is a momentum indicator that helps traders understand the strength of buying and selling pressure in the market, based on volume and price movement.
It is calculated as the difference between two moving averages (short-term and long-term) of the Accumulation/Distribution Line (A/D Line). This line combines price and volume to show whether money is flowing into or out of an asset.
________________________________________
🧠 Simple Concept
•	When big traders are buying, they usually do so with volume support—the Chaikin Oscillator picks this up.
•	When volume is rising but price is falling, or vice versa, it shows hidden strength or weakness.
So, this indicator helps you see what the smart money is doing, even if the price isn’t moving much.
________________________________________
🛠️ How It Works
•	Oscillator Value Above Zero → More buying pressure (bullish).
•	Oscillator Value Below Zero → More selling pressure (bearish).
•	Crossing above zero → A potential buy signal.
•	Crossing below zero → A potential sell signal.
The histogram (vertical bars) in the indicator changes color:
•	Green bars = Positive momentum.
•	Red bars = Negative momentum.
________________________________________
🎯 How Traders Use It for Entry and Exit
✅ For Entries:
•	Buy Entry: When the oscillator crosses above the zero line and the bars turn green, it means buyers are stepping in with volume.
•	For better confirmation, combine it with price breaking above a resistance level.
❌ For Exits or Shorts:
•	Sell Exit or Short Entry: When the oscillator crosses below the zero line and bars turn red, it suggests selling pressure is growing.
•	If the price is also below support, it’s a stronger signal.
________________________________________
🔍 Example Use Case:
1.	You’re watching a stock or crypto that's been going sideways.
2.	Suddenly, the Chaikin Oscillator crosses above zero, and green bars appear.
3.	That’s your early clue that big buyers might be entering.
4.	If price confirms this with a breakout, you can enter a long position.
________________________________________
🌐 Where Is It Useful?
The Chaikin Oscillator is great for:
•	Stocks (especially volume-heavy large caps)
•	ETFs
•	Cryptocurrency (on exchanges that provide volume data)
•	Forex – less reliable unless volume is proxy-based
⚠️ Important: It won’t work well on instruments where volume data is missing or unreliable (like some CFDs or synthetic assets).
________________________________________
🧭 Pro Tips for Using It:
•	Combine it with support/resistance, moving averages, or candlestick patterns.
•	Avoid trading only based on this indicator—use it as confirmation.
•	Use the alerts (added in the script) so you don’t miss key movements.
________________________________________
Delta Volume BubblesDelta Volume Bubbles 
  Overview 
The Delta Volume Bubbles indicator is an advanced order flow visualization tool that displays buying and selling pressure through dynamic bubble representations on your chart. Unlike traditional volume indicators that only show total volume, this indicator calculates the  net delta volume  (difference between buying and selling volume) and presents it as color-coded bubbles of varying sizes.
 How It Works 
 Core Calculation Method 
The indicator uses a sophisticated approach to estimate delta volume from standard OHLCV data:
1. Price Action Analysis: Analyzes the relationship between open, high, low, and close prices to determine market aggression
2. Body Ratio Calculation: body_ratio = |close - open| / (high - low)
3. Aggressive Factor: Applies multipliers based on price action:
   - Strong moves (body_ratio > 0.7): 1.5x multiplier
   - Moderate moves (body_ratio > 0.4): 1.2x multiplier  
   - Weak moves: 1.0x multiplier
4. Delta Volume Estimation:
   - Buy Volume: price_change > 0 ? volume × aggressive_factor : 0
   - Sell Volume: price_change < 0 ? volume × aggressive_factor : 0
   - Net Delta: buy_volume - sell_volume
5. Delta Strength Normalization: delta_strength = |net_delta| / sma(volume, 20)
  Percentile-Based Filtering 
The indicator uses  percentile filtering  instead of fixed thresholds, making it adaptive to market conditions:
- Bubble Filter: Only shows bubbles when volume exceeds the specified percentile (default: 60%)
- Label Filter: Only displays numbers when volume exceeds a higher percentile (default: 90%)
- Dynamic Adaptation: Automatically adjusts to changing market volatility
  Visual Elements 
Bubble Sizes
- Tiny: Delta strength < 0.3
- Small: Delta strength 0.3 - 0.7
- Normal: Delta strength 0.7 - 1.2
- Large: Delta strength 1.2 - 2.0
- Huge: Delta strength > 2.0
  Color Coding 
- Aggressive Buy (Bright Green): Strong buying pressure with high body ratio
- Aggressive Sell (Bright Red): Strong selling pressure with high body ratio
- Passive Buy (Light Green): Moderate buying pressure
- Passive Sell (Light Red): Moderate selling pressure
 Intensity Mode 
Alternative coloring based on delta strength rather than flow direction:
- Gray: Low intensity (< 0.5)
- Blue: Medium intensity (0.5 - 1.0)
- Orange: High intensity (1.0 - 2.0)
- Red: Extreme intensity (> 2.0)
 Parameters 
 Order Flow Settings 
- Show Bubbles: Toggle bubble display on/off
- Bubble Volume %ile: Percentile threshold for bubble display (0-100%)
- Intensity Mode: Switch between flow-based and intensity-based coloring
 Bubble Labels 
- Show Numbers in Bubbles: Toggle numerical labels on/off
- Label Volume %ile: Higher percentile threshold for label display (0-100%)
Numbers are displayed in K-notation (e.g., 25000 → 25K, 1500000 → 1.5M) for better readability.
 Ideal Usage Scenarios 
  Best Market Conditions 
- High volume sessions: More accurate delta calculations
- Trending markets: Clear directional flow identification
- Breakout scenarios: Spot aggressive buying/selling at key levels
- Support/resistance testing: Identify accumulation vs distribution
 Trading Applications 
1. Entry Timing: Look for aggressive flow in your trade direction
2. Exit Signals: Watch for opposing aggressive flow
3. Trend Confirmation: Consistent flow direction confirms trends
4. Volume Climax: Huge bubbles may indicate exhaustion points
 Optimization Tips 
 Parameter Adjustment 
- Lower percentiles (40-60%): More bubbles, good for active markets
- Higher percentiles (70-90%): Fewer bubbles, focus on significant events
- Label percentile: Set 20-30% higher than bubble percentile for clarity
Visual Optimization
- Intensity mode: Better for identifying unusual volume spikes
- Flow mode: Better for directional bias analysis
- Label toggle: Turn off in crowded markets, on for key levels
  Limitations 
- Estimation-based: Uses approximation algorithms, not true order flow data
- Volume dependency: Requires accurate volume data to function properly
- Timeframe sensitivity: Works best on intraday timeframes with active volume
- Market hours: Most effective during high-volume trading sessions
  Technical Notes 
The indicator implements advanced Pine Script features including:
- Dynamic percentile calculations using ta.percentile_linear_interpolation()
- Conditional plotting with multiple size categories
- Custom number formatting functions
- Efficient label management to prevent display limits
This tool is designed for traders who want to understand the underlying buying and selling pressure beyond simple volume analysis, providing insights into market sentiment and potential turning points.
Institutional Momentum Scanner [IMS]Institutional Momentum Scanner   - Professional Momentum Detection System
Hunt explosive price movements like the professionals. IMS identifies maximum momentum displacement within 10-bar windows, revealing where institutional money commits to directional moves.
KEY FEATURES:
▪ Scans for strongest momentum in rolling 10-bar windows (institutional accumulation period)
▪ Adaptive filtering reduces false signals using efficiency ratio technology  
▪ Three clear states: LONG (green), SHORT (red), WAIT (gray)
▪ Dynamic volatility-adjusted thresholds (8% ATR-scaled)
▪ Visual momentum flow with glow effects for signal strength
BASED ON:
- Pocket Pivot concept (O'Neil/Morales) applied to price momentum
- Adaptive Moving Average principles (Kaufman KAMA)
- Market Wizards momentum philosophy
- Institutional order flow patterns (5-day verification window)
HOW IT WORKS:
The scanner finds the maximum price displacement in each 10-bar window - where the market showed its hand. An adaptive filter (5-bar regression) separates real moves from noise. When momentum exceeds the volatility-adjusted threshold, states change.
IDEAL FOR:
- Momentum traders seeking explosive moves
- Swing traders (especially 4H timeframe)
- Position traders wanting institutional footprints
- Anyone tired of false breakout signals
Default parameters (10,5) optimized for 4H charts but adaptable to any timeframe. Remember: The market rewards patience and punishes heroes. Wait for clear signals.
"The market is honest. Are you?"
All SMAs Bullish/Bearish Screener (Enhanced)All SMAs Bullish/Bearish Screener Enhanced: Uncover High-Conviction Trend Alignments with Confidence 
 Description: 
Are you ready to elevate your trading from mere guesswork to precise, data-driven decisions? The "All SMAs Bullish/Bearish Screener Enhanced" is not just another indicator; it's a sophisticated, yet user-friendly, trend-following powerhouse designed to cut through market noise and pinpoint high-probability trading opportunities. Built on the foundational strength of comprehensive Moving Average confluence and fortified with critical confirmation signals from Momentum, Volume, and Relative Strength, this script empowers you to identify truly robust trends and manage your trades with unparalleled clarity.
 The Power of Multi-Factor Confluence: Beyond Simple Averages 
In the unpredictable world of financial markets, true strength or weakness is rarely an isolated event. It's the harmonious alignment of multiple technical factors that signals a high-conviction move. While our original "All SMAs Bullish/Bearish Screener" intelligently identified stocks where price was consistently above or below a full spectrum of Simple Moving Averages (5, 10, 20, 50, 100, 200), this Enhanced version takes it a crucial step further.
We've integrated a powerful three-pronged confirmation system to filter out weaker signals and highlight only the most compelling setups:
Momentum (Rate of Change - ROC): A strong trend isn't just about price direction; it's about the speed and intensity of that movement. Positive momentum confirms that buyers are still aggressively pushing price higher (for bullish signals), while negative momentum validates selling pressure (for bearish signals).
Volume: No trend is truly trustworthy without the backing of smart money. Above-average volume accompanying an "All SMAs" alignment signifies strong institutional participation and conviction behind the move. It separates genuine trend starts from speculative whims.
Relative Strength Index (RSI): This versatile oscillator ensures the trend isn't just "there," but that it's developing healthily. We use RSI to confirm a bullish bias (above 50) or a bearish bias (below 50), adding another layer of confidence to the direction.
When the price aligns above ALL six critical SMAs, and is simultaneously confirmed by robust positive momentum, healthy volume, and a bullish RSI bias, you have an exceptionally strong "STRONGLY BULLISH" signal. This confluence often precedes sustained upward moves, signaling prime accumulation phases. Conversely, a "STRONGLY BEARISH" signal, where price is below ALL SMAs with negative momentum, confirming volume, and a bearish RSI bias, indicates powerful distribution and potential for significant downside.
How to Use This Enhanced Screener:
Add to Chart: Go to TradingView's Pine Editor, paste the script, and click "Add to Chart."
Customize Parameters: Fine-tune the lengths of your SMAs, RSI, Momentum, and Volume averages via the indicator's settings. Experiment to find what best suits your trading style and the assets you trade.
 Choose Your Timeframe Wisely: 
Daily (1D) and 4-Hour (240 min) are highly recommended. These timeframes cut through intraday noise and provide more reliable, actionable signals for swing and position trading.
Shorter timeframes (e.g., 15min, 60min) can be used by advanced day traders for very short-term entries, but be aware of increased volatility and noise.
 Visual Confirmation: 
Green/Red Triangles: Appear on your chart, indicating confirmed bullish or bearish signals.
Background Color: The chart background will subtly turn lime green for "STRONGLY BULLISH" and red for "STRONGLY BEARISH" conditions.
On-Chart Status Table: A clear table displays the current signal status ("STRONGLY BULLISH/BEARISH," or "SMAs Mixed") for immediate feedback.
Set Up Alerts (Your Primary Screener Tool): This is the game-changer! Create custom alerts on TradingView based on the "Confirmed Bullish Trade" and "Confirmed Bearish Trade" conditions. Receive instant notifications (email, pop-up, mobile) for any stock in your watchlist that meets these stringent criteria. This allows you to scan the entire market effortlessly and act decisively.
Strategic Stop-Loss Placement: The Trader's Lifeline
Even the most robust signals can fail. Protecting your capital is paramount. For this trend-following strategy, your stop-loss should be placed where the underlying trend structure is broken.
For a "STRONGLY BULLISH" Trade: Place your stop-loss just below the most recent significant swing low (higher low). This is the last point where buyers stepped in to support the price. If price breaks below this, your bullish thesis is invalidated.
For a "STRONGLY BEARISH" Trade: Place your stop-loss just above the most recent significant swing high (lower high). If price breaks above this, your bearish thesis is invalidated.
Alternatively, consider placing your stop-loss just below the 20-period SMA (for bullish trades) or above the 20-period SMA (for bearish trades). A significant close beyond this intermediate-term average often indicates a critical shift in momentum. Always ensure your chosen stop-loss adheres to your pre-defined risk per trade (e.g., 1-2% of capital).
Disciplined Profit Booking: Maximizing Gains
Just as important as knowing when you're wrong is knowing when to take profits.
Trailing Stop-Loss: As your trade moves into profit, trail your stop-loss upwards (for longs) or downwards (for shorts). You can trail it using:
Previous Swing Lows/Highs: Move your stop to just below each new higher low (for longs) or just above each new lower high (for shorts).
A Moving Average (e.g., 10-period or 20-period SMA): If price closes below your chosen trailing SMA, exit. This allows you to ride the trend while protecting accumulated profits.
Target Levels: Identify potential resistance levels (for longs) or support levels (for shorts) using pivot points, previous highs/lows, or Fibonacci extensions. Consider taking partial profits at these levels and letting the rest run with a trailing stop.
Loss of Confluence: If the "STRONGLY BULLISH/BEARISH" condition ceases to be met (e.g., RSI crosses below 50, or volume drops significantly), this can be a signal to reduce or exit your position, even if your stop-loss hasn't been hit.
 The "All SMAs Bullish/Bearish Screener Enhanced" is your comprehensive partner in navigating the markets. By combining robust trend identification with critical confirmation signals and disciplined risk management, you're equipped to make smarter, more confident trading decisions. Add it to your favorites and unlock a new level of precision in your trading journey! 
#PineScript #TradingView #SMA #MovingAverage #TrendFollowing #StockScreener #TechnicalAnalysis #Bullish #Bearish #QQQ #Momentum #Volume #RSI #SPY #TradingStrategy #Enhanced #Signals #Analysis #DayTrading #SwingTrading
Leveraged Liquidation ZonesOVERVIEW
This indicator estimates potential liquidation zones based on leveraged positions (25x, 50x, 75x, 100x). It visually displays upper and lower bounds for each leverage tier, allowing traders to infer areas where the market might be seeking liquidity.
CONCEPTS
In leveraged markets, especially crypto derivatives, price often moves towards zones of high liquidation potential — areas where traders using high leverage are likely to be stopped out. These zones represent concentrations of liquidity that can serve as targets for price movement.
This script models simplified liquidation areas by calculating the price range within which positions using specific leverage levels would be at risk, assuming no maintenance margin and using the previous candle close as a reference.
FEATURES
 
 Visual zones for 25x, 50x, 75x, and 100x leverage levels.
 Customizable visibility and colors for each leverage tier.
 Real-time zone calculation based on the previous candle close.
 Simple and clean design to overlay directly on price action.
 
USAGE
Use this tool to identify areas of liquidity accumulation or potential price magnet zones. High-leverage liquidations often lead to volatile movements when triggered, so tracking these zones can help anticipate breakout or reversal behavior.
You can toggle individual leverage levels via the settings panel, and adjust color transparency to suit your chart theme. This tool is most effective when combined with volume spikes, order book analysis, or high-frequency behavior.
Aetherium Institutional Market Resonance EngineAetherium Institutional Market Resonance Engine (AIMRE) 
 A Three-Pillar Framework for Decoding Institutional Activity 
 🎓 THEORETICAL FOUNDATION 
 The Aetherium Institutional Market Resonance Engine (AIMRE) is a multi-faceted analysis system designed to move beyond conventional indicators and decode the market's underlying structure as dictated by institutional capital flow. Its philosophy is built on a singular premise: significant market moves are preceded by a convergence of  context ,  location , and  timing . Aetherium quantifies these three dimensions through a revolutionary three-pillar architecture. 
 This system is not a simple combination of indicators; it is an integrated engine where each pillar's analysis feeds into a central logic core. A signal is only generated when all three pillars achieve a state of resonance, indicating a high-probability alignment between market organization, key liquidity levels, and cyclical momentum. 
 ⚡ THE THREE-PILLAR ARCHITECTURE 
 1. 🌌 PILLAR I: THE COHERENCE ENGINE (THE 'CONTEXT') 
 Purpose:  To measure the degree of organization within the market. This pillar answers the question: " Is the market acting with a unified purpose, or is it chaotic and random? "
 Conceptual Framework:  Institutional campaigns (accumulation or distribution) create a non-random, organized market environment. Retail-driven or directionless markets are characterized by "noise" and chaos. The Coherence Engine acts as a filter to ensure we only engage when institutional players are actively steering the market.
 Formulaic Concept: 
Coherence = f(Dominance, Synchronization)
 Dominance Factor:  Calculates the absolute difference between smoothed buying pressure (volume-weighted bullish candles) and smoothed selling pressure (volume-weighted bearish candles), normalized by total pressure. A high value signifies a clear winner between buyers and sellers.
 Synchronization Factor:  Measures the correlation between the streams of buying and selling pressure over the analysis window. A high positive correlation indicates synchronized, directional activity, while a negative correlation suggests choppy, conflicting action.
 The final Coherence score (0-100) represents the percentage of market organization. A high score is a prerequisite for any signal, filtering out unpredictable market conditions. 
 2. 💎 PILLAR II: HARMONIC LIQUIDITY MATRIX (THE 'LOCATION') 
 Purpose:  To identify and map high-impact institutional footprints. This pillar answers the question: " Where have institutions previously committed significant capital? "
 Conceptual Framework:  Large institutional orders leave indelible marks on the market in the form of anomalous volume spikes at specific price levels. These are not random occurrences but are areas of intense historical interest. The Harmonic Liquidity Matrix finds these footprints and consolidates them into actionable support and resistance zones called "Harmonic Nodes."
 Algorithmic Process: 
 Footprint Identification:  The engine scans the historical lookback period for candles where volume > average_volume * Institutional_Volume_Filter. This identifies statistically significant volume events.
 Node Creation:  A raw node is created at the mean price of the identified candle.
 Dynamic Clustering:  The engine uses an ATR-based proximity algorithm. If a new footprint is identified within Node_Clustering_Distance (ATR) of an existing Harmonic Node, it is merged. The node's price is volume-weighted, and its magnitude is increased. This prevents chart clutter and consolidates nearby institutional orders into a single, more significant level.
 Node Decay:  Nodes that are older than the Institutional_Liquidity_Scanback period are automatically removed from the chart, ensuring the analysis remains relevant to recent market dynamics.
 3. 🌊 PILLAR III: CYCLICAL RESONANCE MATRIX (THE 'TIMING') 
 Purpose:  To identify the market's dominant rhythm and its current phase. This pillar answers the question: " Is the market's immediate energy flowing up or down? "
 Conceptual Framework:  Markets move in waves and cycles of varying lengths. Trading in harmony with the current cyclical phase dramatically increases the probability of success. Aetherium employs a simplified wavelet analysis concept to decompose price action into short, medium, and long-term cycles.
 Algorithmic Process: 
 Cycle Decomposition:  The engine calculates three oscillators based on the difference between pairs of Exponential Moving Averages (e.g., EMA8-EMA13 for short cycle, EMA21-EMA34 for medium cycle).
 Energy Measurement:  The 'energy' of each cycle is determined by its recent volatility (standard deviation). The cycle with the highest energy is designated as the "Dominant Cycle."
 Phase Analysis:  The engine determines if the dominant cycles are in a bullish phase (rising from a trough) or a bearish phase (falling from a peak).
 Cycle Sync:  The highest conviction timing signals occur when multiple cycles (e.g., short and medium) are synchronized in the same direction, indicating broad-based momentum.
 🔧 COMPREHENSIVE INPUT SYSTEM 
 Pillar I: Market Coherence Engine 
 Coherence Analysis Window (10-50, Default: 21):  The lookback period for the Coherence Engine.
 Lower Values (10-15):  Highly responsive to rapid shifts in market control. Ideal for scalping but can be sensitive to noise.
 Balanced (20-30):  Excellent for day trading, capturing the ebb and flow of institutional sessions.
 Higher Values (35-50):  Smoother, more stable reading. Best for swing trading and identifying long-term institutional campaigns.
 Coherence Activation Level (50-90%, Default: 70%):  The minimum market organization required to enable signal generation.
 Strict (80-90%):  Only allows signals in extremely clear, powerful trends. Fewer, but potentially higher quality signals.
 Standard (65-75%):  A robust filter that effectively removes choppy conditions while capturing most valid institutional moves.
 Lenient (50-60%):  Allows signals in less-organized markets. Can be useful in ranging markets but may increase false signals.
 Pillar II: Harmonic Liquidity Matrix 
 Institutional Liquidity Scanback (100-400, Default: 200):  How far back the engine looks for institutional footprints.
 Short (100-150):  Focuses on recent institutional activity, providing highly relevant, immediate levels.
 Long (300-400):  Identifies major, long-term structural levels. These nodes are often extremely powerful but may be less frequent.
 Institutional Volume Filter (1.3-3.0, Default: 1.8):  The multiplier for detecting a volume spike.
 High (2.5-3.0):  Only registers climactic, undeniable institutional volume. Fewer, but more significant nodes.
 Low (1.3-1.7):  More sensitive, identifying smaller but still relevant institutional interest.
 Node Clustering Distance (0.2-0.8 ATR, Default: 0.4):  The ATR-based distance for merging nearby nodes.
 High (0.6-0.8):  Creates wider, more consolidated zones of liquidity.
 Low (0.2-0.3):  Creates more numerous, precise, and distinct levels.
 Pillar III: Cyclical Resonance Matrix 
 Cycle Resonance Analysis (30-100, Default: 50):  The lookback for determining cycle energy and dominance.
 Short (30-40):  Tunes the engine to faster, shorter-term market rhythms. Best for scalping.
 Long (70-100):  Aligns the timing component with the larger primary trend. Best for swing trading.
 Institutional Signal Architecture 
 Signal Quality Mode (Professional, Elite, Supreme):  Controls the strictness of the three-pillar confluence.
 Professional:  Loosest setting. May generate signals if two of the three pillars are in strong alignment. Increases signal frequency.
 Elite:  Balanced setting. Requires a clear, unambiguous resonance of all three pillars. The recommended default.
 Supreme:  Most stringent. Requires perfect alignment of all three pillars, with each pillar exhibiting exceptionally strong readings (e.g., coherence > 85%). The highest conviction signals.
 Signal Spacing Control (5-25, Default: 10):  The minimum bars between signals to prevent clutter and redundant alerts.
 🎨 ADVANCED VISUAL SYSTEM 
 The visual architecture of Aetherium is designed not merely for aesthetics, but to provide an intuitive, at-a-glance understanding of the complex data being processed. 
 Harmonic Liquidity Nodes:  The core visual element. Displayed as multi-layered, semi-transparent horizontal boxes.
 Magnitude Visualization:  The height and opacity of a node's "glow" are proportional to its volume magnitude. More significant nodes appear brighter and larger, instantly drawing the eye to key levels.
 Color Coding:  Standard nodes are blue/purple, while exceptionally high-magnitude nodes are highlighted in an accent color to denote critical importance.
 🌌 Quantum Resonance Field:  A dynamic background gradient that visualizes the overall market environment.
 Color:  Shifts from cool blues/purples (low coherence) to energetic greens/cyans (high coherence and organization), providing instant context.
 Intensity:  The brightness and opacity of the field are influenced by total market energy (a composite of coherence, momentum, and volume), making powerful market states visually apparent.
 💎 Crystalline Lattice Matrix:  A geometric web of lines projected from a central moving average.
 Mathematical Basis:  Levels are projected using multiples of the Golden Ratio (Phi ≈ 1.618) and the ATR. This visualizes the natural harmonic and fractal structure of the market. It is not arbitrary but is based on mathematical principles of market geometry.
 🧠 Synaptic Flow Network:  A dynamic particle system visualizing the engine's "thought process."
 Node Density & Activation:  The number of particles and their brightness/color are tied directly to the Market Coherence score. In high-coherence states, the network becomes a dense, bright, and organized web. In chaotic states, it becomes sparse and dim.
 ⚡ Institutional Energy Waves:  Flowing sine waves that visualize market volatility and rhythm.
 Amplitude & Speed:  The height and speed of the waves are directly influenced by the ATR and volume, providing a feel for market energy.
 📊 INSTITUTIONAL CONTROL MATRIX (DASHBOARD) 
 The dashboard is the central command console, providing a real-time, quantitative summary of each pillar's status. 
 Header:  Displays the script title and version.
 Coherence Engine Section: 
 State:  Displays a qualitative assessment of market organization:  ◉ PHASE LOCK  (High Coherence),  ◎ ORGANIZING  (Moderate Coherence), or  ○ CHAOTIC  (Low Coherence). Color-coded for immediate recognition.
 Power:  Shows the precise Coherence percentage and a directional arrow (↗ or ↘) indicating if organization is increasing or decreasing.
 Liquidity Matrix Section: 
 Nodes:  Displays the total number of active Harmonic Liquidity Nodes currently being tracked.
 Target:  Shows the price level of the nearest significant Harmonic Node to the current price, representing the most immediate institutional level of interest.
 Cycle Matrix Section: 
 Cycle:  Identifies the currently dominant market cycle (e.g., "MID  ") based on cycle energy.
 Sync:  Indicates the alignment of the cyclical forces:  ▲ BULLISH ,  ▼ BEARISH , or  ◆ DIVERGENT . This is the core timing confirmation.
 Signal Status Section: 
 A unified status bar that provides the final verdict of the engine.  It will display  "QUANTUM SCAN"  during neutral periods, or announce the tier and direction of an active signal (e.g.,  "◉ TIER 1 BUY ◉" ), highlighted with the appropriate color.
 🎯 SIGNAL GENERATION LOGIC 
 Aetherium's signal logic is built on the principle of strict, non-negotiable confluence. 
 Condition 1: Context (Coherence Filter):  The Market Coherence must be above the Coherence Activation Level. No signals can be generated in a chaotic market.
 Condition 2: Location (Liquidity Node Interaction):  Price must be actively interacting with a significant Harmonic Liquidity Node.
 For a Buy Signal:  Price must be rejecting the Node from below (testing it as support).
 For a Sell Signal:  Price must be rejecting the Node from above (testing it as resistance).
 Condition 3: Timing (Cycle Alignment):  The Cyclical Resonance Matrix must confirm that the dominant cycles are synchronized with the intended trade direction.
 Signal Tiering:  The Signal Quality Mode input determines how strictly these three conditions must be met. 'Supreme' mode, for example, might require not only that the conditions are met, but that the Market Coherence is exceptionally high and the interaction with the Node is accompanied by a significant volume spike.
 Signal Spacing:  A final filter ensures that signals are spaced by a minimum number of bars, preventing over-alerting in a single move.
 🚀 ADVANCED TRADING STRATEGIES 
 The Primary Confluence Strategy:  The intended use of the system. Wait for a Tier 1 (Elite/Supreme) or Tier 2 (Professional/Elite) signal to appear on the chart. This represents the alignment of all three pillars. Enter after the signal bar closes, with a stop-loss placed logically on the other side of the Harmonic Node that triggered the signal.
 The Coherence Context Strategy:  Use the Coherence Engine as a standalone market filter. When Coherence is high (>70%), favor trend-following strategies. When Coherence is low (<50%), avoid new directional trades or favor range-bound strategies. A sharp drop in Coherence during a trend can be an early warning of a trend's exhaustion.
 Node-to-Node Trading:  In a high-coherence environment, use the Harmonic Liquidity Nodes as both entry points and profit targets. For example, after a BUY signal is generated at one Node, the next Node above it becomes a logical first profit target.
 ⚖️ RESPONSIBLE USAGE AND LIMITATIONS 
 Decision Support, Not a Crystal Ball:  Aetherium is an advanced decision-support tool. It is designed to identify high-probability conditions based on a model of institutional behavior. It does not predict the future.
 Risk Management is Paramount:  No indicator can replace a sound risk management plan. Always use appropriate position sizing and stop-losses. The signals provided are probabilistic, not certainties.
 Past Performance Disclaimer:  The market models used in this script are based on historical data. While robust, there is no guarantee that these patterns will persist in the future. Market conditions can and do change.
 Not a "Set and Forget" System:  The indicator performs best when its user understands the concepts behind the three pillars. Use the dashboard and visual cues to build a comprehensive view of the market before acting on a signal.
 Backtesting is Essential:  Before applying this tool to live trading, it is crucial to backtest and forward-test it on your preferred instruments and timeframes to understand its unique behavior and characteristics.
 🔮 CONCLUSION 
 The Aetherium Institutional Market Resonance Engine represents a paradigm shift from single-variable analysis to a holistic, multi-pillar framework. By quantifying the abstract concepts of market context, location, and timing into a unified, logical system, it provides traders with an unprecedented lens into the mechanics of institutional market operations. 
 It is not merely an indicator, but a complete analytical engine designed to foster a deeper understanding of market dynamics. By focusing on the core principles of institutional order flow, Aetherium empowers traders to filter out market noise, identify key structural levels, and time their entries in harmony with the market's underlying rhythm. 
 "In all chaos there is a cosmos, in all disorder a secret order." - Carl Jung 
 — Dskyz, Trade with insight. Trade with confluence. Trade with Aetherium.
TPO[Fixed Range, Anchored, Bars Back]TPO Bars Back, Fixed Range and Anchored 
 Overview 
The  TPO Profile  (Time Price Opportunity Profile) is a powerful market profile indicator that displays the amount of time price spent at different levels during a specified period. Unlike traditional volume profile indicators that show volume distribution, TPO Profile shows  time distribution , providing insights into where price has spent the most time and identifying key support and resistance levels.
 Key Advantages Over TradingView's Built-in TPO 
 
 Simplified Composite Creation : Automatically creates TPO profiles for any time range without manual split/merge operations
 Instant Value Area Calculation : Immediately shows Value Area, POC, VAH, and VAL for your selected period
 No Manual Assembly Required : TradingView's native TPO requires you to manually split sessions and merge them to create composites - this indicator does it automatically
 Flexible Time Ranges : Create composites for any custom time period (multiple days, weeks, specific events) with a few clicks
 Real-time Composite Updates : Anchor mode creates live composites that update as new data arrives
 Multiple Composite Analysis : Easily compare different time periods without the tedious manual process
 
 Key Features 
 Core Functionality 
 
 Time-Based Analysis : Shows time spent at each price level rather than volume
 Configurable Time Blocks : Use any timeframe for TPO counting (30min, 1H, 4H, etc.)
 Multiple Price Levels : Adjustable from 5 to 200 levels for granular analysis
 Point of Control (POC) : Automatically identifies the price level with highest time activity
 Value Area Calculation : Shows the price range containing 70% (configurable) of time activity
 Automatic Composite Generation : Creates multi-session composites without manual intervention
 
 Three Operating Modes 
 1. Bars Back Mode 
 
 Analyzes the last N bars from the current bar
 Perfect for recent market activity analysis
 Range: 10-500 bars
 Use Case : Intraday analysis, recent session review
 
 2. Fixed Range Mode 
 
 Analyzes a specific time period between start and end times
 Ideal for historical analysis of specific events
 Creates perfect composites for multi-day periods
 Use Case : Earnings periods, news events, specific trading sessions, weekly/monthly composites
 
 3. Anchor Mode   (NEW) 
 
 Starts from a specific time and extends to the current bar
 Dynamically updates as new bars form
 Perfect for building live composites from any starting point
 Use Case : Live session monitoring, event-based analysis from a specific point, growing composites
 
 Visual Elements 
 TPO Bars 
 
 Horizontal bars showing time distribution at each price level
 Longer bars = more time spent at that level
 Color-coded to distinguish Value Area from outlying levels
 
 Point of Control (POC) 
 
 Red line marking the price level with highest time activity
 Most significant support/resistance level
 Configurable line style (Solid/Dashed/Dotted) and width
 
 Value Area High/Low (VAH/VAL) 
 
 Green and Orange lines marking the boundaries of the Value Area
 Shows the price range containing the specified percentage of time activity
 Optional display with customizable line styles
 
 Single Print Detection 
 
 Identifies price levels touched by only one time block
 Display options: Lines or Boxes
 Purple color highlighting these significant levels
 Often act as strong support/resistance in future trading
 
 Customization Options 
 Time Block Configuration 
 
 Block Time : Choose timeframe for TPO counting (30min, 1H, 4H, etc.)
 Allows analysis at different time granularities
 Higher timeframes = broader perspective, Lower timeframes = finer detail
 
 Visual Styling 
 
 Line Styles : Solid, Dashed, or Dotted for all line elements
 Line Widths : 1-5 pixels for POC, VAH, and VAL lines
 Colors : Fully customizable colors for all elements
 Transparency : Adjustable transparency for better chart readability
 
 Label Management 
 
 Show/Hide Labels : Toggle POC, VAH, VAL labels
 Font Sizes : Tiny, Small, Normal, Large, Huge
 Label Positioning : 8 different position options relative to lines
 Offset Controls : Fine-tune label positioning
 
 Line Extension 
 
 Level Offset Right : Controls how far lines extend
 Smart extension logic:
 
 
 Value ≤ 0: Infinite extension (extend.right)
 Value ≥ 1: Extends exactly N bars ahead
 
 Trading Applications 
 Support & Resistance 
 
 POC often acts as strong support/resistance
 Value Area boundaries provide key levels
 Single prints frequently become significant levels
 
 Market Structure Analysis 
 
 Identify areas of price acceptance (thick TPO bars)
 Spot areas of price rejection (thin TPO bars)
 Understand where market participants are comfortable trading
 
 Composite Profile Analysis 
 
 Create multi-day, weekly, or monthly composites instantly
 Compare different composite periods without manual work
 Analyze longer-term price acceptance levels
 Build composites around specific events or announcements
 
 Session Analysis 
 
 Monitor intraday session development in real-time
 Compare different sessions (London, New York, Asia)
 Track how profiles change throughout the trading day
 Build live composites across multiple sessions
 
 Event Analysis 
 
 Use Fixed Range mode for earnings, news events
 Use Anchor mode to track price development from specific events
 Compare pre/post event price acceptance levels
 Create event-based composites automatically
 
 Input Parameters 
 Mode Selection 
 
 Mode : Bars Back | Fixed Range | Anchor
 Bars Back : Number of bars to analyze (10-500)
 Start Time : Beginning time for Fixed Range and Anchor modes
 End Time : Ending time for Fixed Range mode only
 
 Analysis Configuration 
 
 Block Time : Timeframe for TPO blocks (e.g., "30" for 30-minute blocks)
 TPO Levels : Number of price levels (5-200)
 Value Area % : Percentage for Value Area calculation (50-95%)
 
 Display Options 
 
 Show POC : Display Point of Control line
 Show Value Area : Display Value Area box
 Show VAH/VAL Lines : Display Value Area boundary lines
 Show Single Prints : Display single print detection
 Single Print Style : Lines or Boxes
 
 Styling Controls 
 
 Colors : TPO, POC, Value Area, VAH, VAL, Single Print colors
 Line Styles : POC, VAH, VAL line styles
 Line Widths : POC, VAH, VAL line widths
 Labels : Show/hide, font size, position, offset controls
 
 Technical Details 
 Calculation Method 
 
 Divides the price range into equal levels based on TPO Levels setting
 For each time block, determines which price levels it crosses
 Adds +1 count to each crossed level
 Identifies POC as the level with highest count
 Calculates Value Area by expanding from POC until target percentage is reached
 
 Performance Considerations 
 
 Historical data limited to prevent buffer overflow errors
 Smart bounds checking for different timeframes
 Optimized cleanup routines to prevent drawing object accumulation
 
 Pine Script Version 
 
 Built on Pine Script v6
 Uses modern Pine Script best practices
 Efficient array handling and drawing object management
 
 Best Practices 
 Timeframe Selection 
 
 Block Time = Chart Timeframe : Traditional TPO approach
 Block Time > Chart Timeframe : Smoother, broader perspective
 Block Time < Chart Timeframe : More granular, detailed analysis
 
 Level Count Guidelines 
 
 Low levels (10-20) : Better for swing trading, major levels
 High levels (50-100) : Better for scalping, precise entries
 Very high levels (100+) : For very detailed analysis
 
 Mode Selection 
 
 Bars Back : Daily analysis, recent activity
 Fixed Range : Historical events, specific periods, manual composites
 Anchor : Live monitoring, event-based analysis, growing composites
 
 Composite Creation Workflow 
 
 Select Fixed Range or Anchor mode
 Set your desired start time (and end time for Fixed Range)
 Adjust TPO Levels for desired granularity
 Enable VAH/VAL lines to see Value Area boundaries
 The composite profile generates automatically with all key levels
 
 This indicator eliminates the tedious manual process of creating composite TPO profiles in TradingView. Instead of splitting sessions and manually merging them, you get instant composite analysis with automatic Value Area calculation, POC identification, and single print detection. The combination of time-based analysis, multiple operating modes, and extensive customization options makes it a powerful tool for understanding market structure and price acceptance levels across any time period.  
Rolling VWAP LevelsRolling VWAP Levels Indicator 
 Overview 
Dynamic horizontal lines showing rolling Volume Weighted Average Price (VWAP) levels for multiple timeframes (7D, 30D, 90D, 365D) that update in real-time as new bars form.
 Who This Is For 
 
 Day traders using VWAP as support/resistance
 Swing traders analyzing multi-timeframe price structure
 Scalpers looking for mean reversion entries
 Options traders needing volatility bands for strike selection
 Institutional traders tracking volume-weighted fair value
 Risk managers requiring dynamic stop levels
 
 How To Trade With It 
 Mean Reversion Strategies: 
 
 Buy when price is below VWAP and showing bullish divergence
 Sell when price is above VWAP and showing bearish signals
 Use multiple timeframes - enter on shorter, confirm on longer
 Target opposite VWAP level for profit taking
 
 Breakout Trading: 
 
 Watch for price breaking above/below key VWAP levels with volume
 Use 7D VWAP for intraday breakouts
 Use 30D/90D VWAP for swing trade breakouts
 Confirm breakout with move beyond first standard deviation band
 
 Support/Resistance Trading: 
 
 VWAP levels act as dynamic support in uptrends
 VWAP levels act as dynamic resistance in downtrends
 Multiple timeframe VWAP confluence creates stronger levels
 Use standard deviation bands as additional S/R zones
 
 Risk Management: 
 
 Place stops beyond next VWAP level
 Use standard deviation bands for position sizing
 Exit partial positions at VWAP levels
 Monitor distance table for overextended moves
 
 Key Features 
 
 Real-time Updates:  Lines move and extend as new bars form
 Individual Styling:  Custom colors, widths, styles for each timeframe
 Standard Deviation Bands:  Optional volatility bands with custom multipliers
 Smart Labels:  Positioned above, below, or diagonally relative to lines
 Distance Table:  Shows percentage distance from each VWAP level
 Alert System:  Get notified when price crosses VWAP levels
 Memory Efficient:  Automatically cleans up old drawing objects
 
 Settings Explained 
 
 Display Group:  Show/hide labels, font size, line transparency, positioning
 Individual VWAP Groups:  Color, line width (1-5), line style for each timeframe
 Standard Deviation Bands:  Enable bands with custom multipliers (0.5, 1.0, 1.5, 2.0, etc.)
 Labels Group:  Position (8 options including diagonal), custom text, price display
 Additional Info:  Distance table, alert conditions
 
 Technical Implementation 
 
Uses rolling arrays to maintain sliding windows of price*volume data. The core calculation function processes both VWAP and standard deviation efficiently. Lines are created dynamically and updated every bar. Memory management prevents object accumulation through automatic cleanup.
 
 Best Practices 
 
 Start with 7D and 30D VWAP for most strategies
 Add 90D/365D for longer-term context
 Use standard deviation bands when volatility matters
 Position labels to avoid chart clutter
 Enable distance table during high volatility periods
 Set alerts for key VWAP level breaks
 
 Market Applications 
 
 Forex:  Major pairs during London/NY sessions
 Stocks:  Large cap names with good volume
 Crypto:  Bitcoin, Ethereum, major altcoins
 Futures:  ES, NQ, CL, GC with continuous volume
 Options:  Use SD bands for strike selection and volatility assessment
  
Volume Zones IndicatorVolume Zones Indicator — VWAP with Dynamic Monthly Volume Zones
This indicator is an enhanced version of the classic VWAP (Volume Weighted Average Price), designed to create clear monthly zones around VWAP based on average price range (ATR) and volume activity.
The core idea is to highlight key zones where price is more likely to reverse or consolidate, based on where significant trading volume occurs.
How does it work?
VWAP is calculated over the last N days (set by the lookbackPeriod input).
Four zones are plotted above and below VWAP, spaced using a multiple of ATR.
Each zone has its own color for clarity:
Blue — closest to VWAP
Red — second band
Green — third band
Orange — outer band (potential breakout or exhaustion zone)
If the current volume exceeds the moving average of volume, it is highlighted directly on the chart. This helps detect accumulation or distribution moments more easily.
What does the trader see?
You see horizontal colored bands on the chart that update at the start of each new month. These zones:
Remain fixed throughout the month
Automatically adjust based on recent volume and volatility
Act as dynamic support/resistance levels
Best used for:
Mean reversion strategies — identifying pullbacks toward value areas
Support and resistance mapping — automatic SR zones based on price/volume behavior
Breakout filtering — when price reaches zone 3 or 4, trend continuation or reversal is likely
Adding volume context to price action — works well with candlestick and pattern analysis
Settings
Lookback Period (Days): VWAP and volume smoothing length
Volume Area Threshold %: Reserved for future functionality
Works on any timeframe; best suited for 4H timeframe.
Zones are calculated and fixed monthly for clean visual context
Combines price structure with actual volume flow for more reliable decision-making
SOT & SA Detector ProSOT & SA Detector Pro- Advanced Reversal Pattern Recognition
OVERVIEW
The SOT & SA Detector is an educational indicator designed to identify potential market reversal points through systematic analysis of candlestick patterns, volume confirmation, and price wave structures.  SOT (Shorting of Thrust)  signals suggest potential bearish reversals after upward price movements, while  SA (Selling Accumulation)  signals indicate possible bullish reversals following downward trends. This tool helps traders recognize key market transition points by combining multiple technical criteria for enhanced signal reliability.
═══════════════════════════════════════════════════════════════
HOW IT WORKS
Technical Methodology
The indicator employs a multi-factor analysis approach that evaluates:
Wave Structure Analysis: Identifies minimum 2-bar directional waves (upward for SOT, downward for SA)
Price Delta Validation: Ensures closing price changes remain within specified percentage thresholds (default 0.3%) best 0.1.
Candlestick Tail Analysis: Measures rejection wicks using configurable tail multipliers
Volume Confirmation: Requires increased volume compared to previous periods
Pattern Confirmation: Validates signals through subsequent price action
Signal Generation Process
Pattern Recognition: Scans for qualifying candlestick formations with appropriate tail characteristics
Volume Verification: Confirms patterns with volume expansion using adjustable multiplier
Price Confirmation: Validates signals when price breaks and closes beyond pattern extremes
Signal Display: Places labeled markers and draws horizontal reference levels
Mathematical Foundation
Delta calculation: math.abs(close  - close ) / close  <= deltaPercent / 100
Tail analysis: (high  - close ) >= tailMultiplier * (close  - low ) for SOT
Volume filter: volume  >= volume  * volumeFactor
═══════════════════════════════════════════════════════════════
KEY FEATURES
Dual Pattern Recognition: Identifies both bullish (SA) and bearish (SOT) reversal candidates
Volume Integration: Incorporates volume analysis for enhanced signal validation
Customizable Parameters: Adjustable wave length, delta percentage, tail multiplier, and volume factor
Visual Clarity: Color-coded bar highlighting, labeled signals, and horizontal reference levels
Time-Based Filtering: Configurable analysis period to focus on recent market activity
Non-Repainting Signals: Confirmed signals remain stable and do not change with new price data
Alert System: Built-in notifications for both initial signals and subsequent confirmations
═══════════════════════════════════════════════════════════════
HOW TO USE
Signal Interpretation
Red SOT Labels: Appear above potential bearish reversal candles with downward-pointing markers
Green SA Labels: Display below potential bullish reversal candles with upward-pointing markers
Horizontal Lines: Extend from signal levels to provide ongoing reference points
Bar Coloring: Highlights qualifying pattern candles for visual emphasis
Trading Application
This indicator serves as an educational tool for pattern recognition and should be used in conjunction with additional analysis methods. Consider SOT signals as potential areas of selling pressure following upward moves, while SA signals may indicate buying interest after downward price action.
Best Practices
Combine with trend analysis and support/resistance levels
Consider overall market context and timeframe alignment
Use proper risk management techniques
Validate signals with additional technical indicators
═══════════════════════════════════════════════════════════════
SETTINGS
Analysis Days (Default: 20)
Controls the lookback period for signal detection. Higher values extend historical analysis while lower values focus on recent activity.
Minimum Bars in Wave (Default: 2)
Sets the minimum consecutive bars required to establish directional wave patterns. Increase for stronger trend confirmation.
Max Close Change % (Default: 0.3) best 0.1.
Defines acceptable closing price variation between consecutive bars. Lower values require tighter price consolidation.
Tail Multiplier (Default: 1.0) best 1.5 or more.
Adjusts sensitivity for candlestick tail analysis. Higher values require more pronounced rejection wicks.
Volume Factor (Default: 1.0)
Sets volume expansion threshold compared to previous period. Values above 1.0 require volume increases.
═══════════════════════════════════════════════════════════════
LIMITATIONS
Market Conditions
May produce false signals in highly volatile or low-volume conditions
Effectiveness varies across different market environments and timeframes
Requires sufficient volume data for optimal performance
Signal Timing
Signals appear after pattern completion, not in real-time during formation
Confirmation signals depend on subsequent price action
Historical signals do not guarantee future market behavior
Technical Constraints
Limited to analyzing price and volume data only
Does not incorporate fundamental analysis or external market factors
Performance may vary significantly across different trading instruments
═══════════════════════════════════════════════════════════════
IMPORTANT DISCLAIMERS
This indicator is designed for educational purposes and technical analysis learning. It does not constitute financial advice, investment recommendations, or trading signals. Past performance does not guarantee future results. Trading involves substantial risk of loss, and this tool should be used alongside proper risk management techniques and additional analysis methods.
Always conduct thorough analysis using multiple indicators and consider market context before making trading decisions. The SOT & SA patterns represent potential reversal points but do not guarantee price direction changes.
═══════════════════════════════════════════════════════════════
Credits: Original concept and Pine Script implementation by Everyday_Trader_X
Version: Pine Script v6 compatible
Category: Technical Analysis / Reversal Detection
Overlay: Yes (displays on price chart)
OBV with MA & Bollinger Bands by Marius1032OBV with MA & Bollinger Bands by Marius1032
This script adds customizable moving averages and Bollinger Bands to the classic OBV (On Balance Volume) indicator. It helps identify volume-driven momentum and trend strength.
Features:
OBV-based trend tracking
Optional smoothing: SMA, EMA, RMA, WMA, VWMA
Optional Bollinger Bands with SMA
Potential Combinations and Trading Strategies:
Breakouts: Look for price breakouts from the Bollinger Bands, and confirm with a rising OBV for an uptrend or falling OBV for a downtrend.
Trend Reversals: When the price touches a Bollinger Band, examine the OBV for divergence. A bullish divergence (price lower low, OBV higher low) near the lower band could signal a reversal.
Volume Confirmation: Use OBV to confirm the strength of the trend indicated by Bollinger Bands. For example, if the BBs indicate an uptrend and OBV is also rising, it reinforces the bullish signal. 
1. On-Balance Volume (OBV): 
Purpose: OBV is a momentum indicator that uses volume flow to predict price movements.
Calculation: Volume is added on up days and subtracted on down days.
Interpretation: Rising OBV suggests potential upward price movement. Falling OBV suggests potential lower prices.
Divergence: Divergence between OBV and price can signal potential trend reversals. 
2. Moving Average (MA): 
Purpose: Moving Averages smooth price fluctuations and help identify trends.
Combination with OBV: Pairing OBV with MAs helps confirm trends and identify potential reversals. A crossover of the OBV line and its MA can signal a trend reversal or continuation. 
3. Bollinger Bands (BB): 
Purpose: BBs measure market volatility and help identify potential breakouts and trend reversals.
Structure: They consist of a moving average (typically 20-period) and two standard deviation bands.
Combination with OBV: Combining BBs with OBV allows for a multifaceted approach to market analysis. For example, a stock hitting the lower BB with a rising OBV could indicate accumulation and a potential upward reversal. 
Created by: Marius1032
Price-Volume Divergence (YY+GY)📊 **Price-Volume Divergence Tool (False & Hidden Rally)**  
by Tungaer_as
This open-source indicator detects two types of volume-price divergences:
🔴 **False Rally (YY)**  
Occurs when price increases while volume decreases.  
This signals weak buyer pressure and may precede a local top or distribution phase.
🟢 **Hidden Rally (GY / Capitulation)**  
Occurs when price decreases while volume increases.  
This suggests potential smart money accumulation and may precede a price reversal.
---
### 🔧 How it works:
The indicator compares:
- Price direction (up/down)
- Volume trend (rising/falling)
- RSI values (customizable)
- EMA filter (trend direction)
- PVT (Price Volume Trend) for volume momentum
- Optional candle-based confirmation over multiple bars
All filters and thresholds are fully customizable from the settings menu.
---
### ✅ Key Features:
- False Rally + Hidden Rally detection
- Optional confirmation candles (1–5)
- Toggleable filters: RSI, EMA, PVT
- Cumulative PVT-based filtering
- Background color zones for clarity
- Built entirely in Pine Script v5
---
🟢 Open-source | Developed with GPT-4 assistance  
👤 By Tungaer_as
⚠️ **Disclaimer:**  
This script is for educational purposes only and does not provide financial advice. Always do your own research before making trading decisions.
**Fiyat-Hacim Uyumsuzluk Göstergesi (Yalancı + Gizli Yükseliş)**  
tasarım: Tungaer_as
Bu gösterge, fiyat-hacim ilişkisine dayalı iki güçlü dönüş formasyonunu tespit eder:
🔴 **Yalancı Yükseliş (YY)**  
Fiyat artarken hacmin düşmesi → Alıcı zayıflığı veya yükseliş tuzağı sinyali olabilir
🟢 **Gizli Yükseliş (GY)**  
Fiyat düşerken hacmin artması → Kurumsal birikim ya da dönüş hazırlığı göstergesi olabilir
---
✨ **Temel Özellikler**
- ✅ RSI ve EMA filtreleri  
- ✅ PVT (Fiyat Hacim Eğilimi) ile hacim yönü teyidi  
- ✅ Opsiyonel teyit mum filtresi (1–5 mum)  
- ✅ Görsel uyarı için arka plan renklendirme  
- ✅ Tamamen özelleştirilebilir eşik değerleri  
- ✅ Tüm filtreler bağımsız olarak açılıp kapatılabilir
---
🚀 **Neden Farklı?**
TradingView üzerindeki tipik uyumsuzluk göstergelerinden farklı olarak, bu araç **hem yalancı hem gizli yükselişi birlikte** işler.  
Ayrıca **PVT tabanlı hacim eğilimi filtresi** ve **kullanıcı kontrollü teyit sistemleri** ile daha sağlam sinyal üretir.
---
🟢 Açık kaynaklıdır | GPT-4 yardımıyla geliştirilmiştir  
👤 Tungaer_as tarafından tasarlanmıştır
⚠️ **Yasal Uyarı**  
Bu gösterge yalnızca eğitim ve bilgilendirme amaçlıdır.  
Hiçbir yatırım tavsiyesi ya da garantili sinyal içermez.  
Yatırım kararı almadan önce kendi analizlerinizi mutlaka yapınız.
Chaikin Bull-Power OscillatorThis indicator is given with much love and care to the community to help you in your trading operations.
How to use the "Chaikin-Bull-PW" Indicator
The Chaikin-Bull-PW is an oscillator based on the Accumulation/Distribution (AD) line smoothed by different methods, called here the "Hull Chaikin Oscillator." It compares two smoothed averages of the AD line — a short period and a long period — to indicate the strength and direction of buying and selling pressure in the market.
Adjustable Parameters:
Short Period: Number of bars used to calculate the short smoothed average of the AD line. Shorter periods make the indicator more sensitive.
Long Period: Number of bars used to calculate the long smoothed average of the AD line. Longer periods smooth the indicator more.
Background Offset: Controls the offset of the chart’s background color.
Smoothing Type: Choose the smoothing method for the AD line among HMA, SMA, SMMA, EMA, WMA, and JMA. This affects how the averages are calculated and how the oscillator responds to price.
Indicator Interpretation:
The oscillator is the difference between the short and long smoothed averages of the AD line.
When the oscillator is above zero (green), it indicates increasing buying pressure, suggesting an uptrend.
When the oscillator is below zero (red), it indicates increasing selling pressure, suggesting a downtrend.
The zero line acts as a reference for trend changes.
Usage Suggestions:
Use the oscillator crossing the zero line to identify potential entry or exit points.
Combine with other indicators or chart analysis to confirm signals.
Adjust the periods and smoothing type to fit your asset and timeframe.
Math by Thomas Liquidity PoolDescription 
Math by Thomas Liquidity Pool is a TradingView indicator designed to visually identify potential liquidity pools on the chart by detecting areas where price forms clusters of equal highs or equal lows.
 Bullish Liquidity Pools (Green Boxes):  Marked below price where two adjacent candles have similar lows within a specified difference, indicating potential demand zones or stop loss clusters below support.
 Bearish Liquidity Pools (Red Boxes):  Marked above price where two adjacent candles have similar highs within the difference threshold, indicating potential supply zones or stop loss clusters above resistance.
This tool helps traders spot areas where smart money might hunt stop losses or where price is likely to react, providing valuable insight for trade entries, exits, and risk management.
 Features: 
Adjustable box height (vertical range) in points.
Adjustable maximum difference threshold between candle highs/lows to consider them equal.
Boxes automatically extend forward for visibility and delete when price sweeps through or after a defined lifetime.
Separate visual zones for bullish and bearish liquidity with customizable colors.
 How to Use 
Add the Indicator to your chart (preferably on instruments like Nifty where point-based thresholds are meaningful).
 Adjust Inputs: 
 Box Height:  Set the vertical size of the liquidity zones (default 15 points).
 Max Difference Between Highs/Lows:  Set the max price difference to consider two candle highs or lows as “equal” (default 10 points).
 Box Lifetime:  How many bars the box stays visible if not swept (default 120 bars).
 Interpret Boxes: 
 Green Boxes (Bullish Liquidity Pools):  Areas of potential demand and stop loss clusters below price. Watch for price bounces or accumulation near these zones.
 Red Boxes (Bearish Liquidity Pools):  Areas of potential supply and stop loss clusters above price. Watch for price rejections or distribution near these zones.
 Trading Strategy Tips: 
Use these zones to anticipate where stop loss hunting or liquidity sweeps may occur.
Combine with your Order Block, Fair Value Gap, and Market Structure tools for higher probability setups.
Manage risk by avoiding entries into price regions just before large liquidity pools get swept.
 Automatic Cleanup: 
Boxes delete automatically once price breaks above (for bearish zones) or below (for bullish zones) the zone or after the set lifetime.
Volume with High/Low ColoringThe "Volume with High/Low Coloring" indicator is designed to help traders visually differentiate between high, low, and normal volume bars relative to recent historical averages. By applying dynamic color coding and customizable thresholds, this indicator enhances volume analysis and improves your ability to spot key moments of accumulation, distribution, or market inactivity.
 High Volume:  A bar is marked as high volume when it exceeds the average by a customizable multiplier  (default is 1.5×) .
 Low Volume:  A bar is considered low volume when it falls below the average by another multiplier  (default is 0.5×) .
 Normal Volume:  All bars that fall between the high and low thresholds.
Each category is displayed in a different user-selectable color, providing instant visual feedback for volume dynamics.
 Customizable Colors: 
 High Volume:  Light Green (default: semi-transparent green)
 Low Volume:  Light Blue (default: semi-transparent blue)
 Normal Volume:  Yellow (default: semi-transparent yellow)
 Average Volume Line:  Gray (optional reference line)
OA - SMESSmart Money Entry Signals (SMES) 
The SMES indicator is developed to identify potential turning points in market behavior by analyzing internal price dynamics, rather than relying on external volume or sentiment data. It leverages normalized price movement, directional volatility, and smoothing algorithms to detect potential areas of accumulation or distribution by market participants.
 Core Concepts 
Smart Money Flow calculation based on normalized price positioning
Directional VHF (Vertical Horizontal Filter) used to enhance signal directionality
Overbought and Oversold regions defined with optional glow visualization
Entry and Exit signals based on dynamic crossovers
Highly customizable input parameters for precision control
 Key Inputs 
 
 Smart Money Flow Period
 Smoothing Period
 Price Analysis Length
 Fibonacci Lookback Length
 Visual toggle options (zones, glow effects, signal display)
 
 Usage 
This tool plots the smoothed smart money flow as a standalone oscillator, designed to help traders identify potential momentum shifts or extremes in market sentiment. Entry signals are generated through crossover logic, while optional filters based on price behavior can refine those signals. Exit signals are shown when the smart money line exits extreme regions.
 Important Notes 
 
 This indicator does not repaint
 Works on all timeframes and instruments
 Best used as a confirmation tool with other technical frameworks
 All calculations are based strictly on price data
 
 Disclaimer 
This script is intended for educational purposes only. It does not provide financial advice or guarantee performance. Please do your own research and apply appropriate risk management before making any trading decisions.
Candle Count RSI📈  Candle Count RSI — A Dual-Perspective Momentum Engine 
The  Candle Count RSI  is a custom-built momentum oscillator that  expands on  the classic Relative Strength Index (RSI) by introducing a directional-only variant that tracks the frequency of bullish or bearish closes, rather than price magnitude. It gives traders a second lens through which to evaluate momentum, trend conviction, and subtle divergences—often invisible to traditional price-based RSI.
💡  What Makes It Unique? 
While the standard RSI is sensitive to the size of price changes, the  Candle Count RSI  is magnitude-blind. It  counts candle closes above/below open  over a lookback period, generating a purer signal of directional consistency. To enhance signal fidelity, it includes a streak amplifier,  dynamically weighting extended runs of green or red candles  to reflect intensity of market bias—without introducing artificial price sensitivity.
 This dual-RSI approach allows for: 
- Divergence detection between directional bias and price magnitude.
- Smoother trend confirmation in choppy markets.
- Cleaner visual cues using dynamic glow and background logic.
📐 How Standard RSI Actually Works (Not What You Think) 
RSI doesn’t just check if price went up or down over a span—it checks each individual candle and tracks whether it closed higher or lower than the one before. Here's how it works under the hood:
1.) For each bar, it calculates the change from the previous close.
2.) It separates those changes into gains (upward moves) and losses (downward moves).
3.) Then it computes a smoothed average of those gains and losses (usually using an RMA).
4.) It calculates the Relative Strength (RS) as: 
        RS = AvgGain / AvgLoss
5.) Finally, it plugs that into the RSI formula: 
        RSI = 100 - (100 / (1 + RS))
⚖️  What Does the 50 Line Mean? 
- The RSI scale runs from 0 to 100, but 50 is the true neutral zone:
    - RSI > 50 means average gains outweigh average losses over the period.
    - RSI < 50 means losses dominate.
    - RSI ≈ 50? The market is balanced—momentum is indecisive, no clear trend bias.
- This makes 50 a powerful midline for trend filters, directional bias tools, and divergence detection—especially when paired with alternative RSI logic like Candle Count RSI.
🔧  Inputs and Customization 
- Everything is fully modular and customizable:
🧠  Core Settings 
- RSI Length: Used for both the standard RSI and Candle Count RSI.
📉  Standard RSI 
- Classic RSI calculation based on price changes.
- Optional WMA smoothing to reduce noise.
- Glow effect toggle with custom intensity.
🕯  Candle Count RSI 
- Computes RSI using only the count of up/down candles.
- Optional smoothing for stability.
- Amplifies streaks (e.g., multiple consecutive bullish candles increase strength).
- Glow effect toggle with adjustable strength.
🎇  Glow Visuals 
- Background glow (subpane and/or main chart).
- Fades based on RSI distance from the 50 midpoint.
- Independent color settings for bull and bear bias.
🧬  Divergence Zones 
- Detects when Candle RSI and Standard RSI diverge.
- Highlights:
    - Bullish Divergence: Candle RSI > 50, Standard RSI < threshold.
    - Bearish Divergence: Candle RSI < 50, Standard RSI > threshold.
    - Background fill optionally shown in subpane and/or main chart.
📊  Directional Histogram 
- MACD-style histogram showing the difference between the two RSI lines.
- Color-coded based on directional agreement:
    - Both rising → green.
    - Both falling → red.
    - Conflict → yellow.
🧠  Under the Hood — How It Works 
🔹  Standard RSI 
- Classic ta.rsi() applied to close prices, optionally WMA-smoothed.
🔹  Candle Count RSI (CCR) 
- Counts how many candles closed up/down over the period.
- Computes a magnitude-free RSI from these counts.
- Applies a streak-based multiplier to exaggerate trend strength during consecutive green/red runs.
- Optionally smoothed with WMA to create a clean signal line.
- This makes CCR ideal for detecting true directional bias without being faked out by volatile price spikes.
🔹  Divergence Logic 
- When Candle RSI and Standard RSI disagree strongly across defined thresholds, background fills highlight early signs of momentum decay or hidden accumulation/distribution.
🔹  Glow Logic 
- Glow zones are controlled by a master toggle and drawn with dynamic transparency:
- Further from 50 = stronger conviction = darker glow.
- Shows up in subpane and/or main chart depending on user preference.
📷  Suggested Use Case / Visual Setup 
- Use in conjunction with your primary price action system.
- Watch for divergences between the Candle Count RSI and Standard RSI for early trend reversals.
- Use glow bias zones on the main chart to get subconscious directional cues during fast scalping.
- Histogram helps you confirm when both RSI variants agree—useful during strong trending conditions.
🛠️  Tip for Traders 
- This tool isn’t trying to “predict” price. It’s designed to visualize hidden market psychology—when buyers are showing up with consistent pressure, or when momentum has a disconnect between conviction and magnitude. Use this to filter entries, spot weak rallies, or sense when a trend is about to break down.
⚠️  WARNING 
- Not for use with Heikin Ashi, Renko, etc.).
🧠  Summary 
 Candle Count RSI  is not just another mashup—it's a precision-built, dual-perspective oscillator that captures directional conviction using real candle behavior. Whether you're scalping intraday or swing trading momentum, this script helps clarify trend integrity and exposes hidden weaknesses with elegance and clarity.
—
🛠️  Built by:   Sherlock_MacGyver 
Feel free to share feedback or reach out if you'd like to collaborate on custom features.
Session-Based Sentiment Oscillator [TradeDots]Track, analyze, and monitor market sentiment across global trading sessions with this advanced multi-session sentiment analysis tool. This script provides session-specific sentiment readings for Asian (Tokyo), European (London), and US (New York) markets, combining price action, volume analysis, and volatility factors into a comprehensive sentiment oscillator. It is an original indicator designed to help traders understand regional market psychology and capitalize on cross-session sentiment shifts directly on TradingView.
  📝 HOW IT WORKS 
 1. Multi-Component Sentiment Engine 
 Price Action Momentum : Calculates normalized price movement relative to recent trading ranges, providing directional sentiment readings.
 Volume-Weighted Analysis : When volume data is available, incorporates volume flow direction to validate price-based sentiment signals.
 Volatility-Adjusted Factors : Accounts for changing market volatility conditions by comparing current ATR against historical averages.
 Weighted Combination : Merges all components using optimized weightings (Price: 1.0, Volume: 0.3, Volatility: 0.2) for balanced sentiment readings.
 2. Session-Segregated Tracking 
 Automatic Session Detection : Precisely identifies active trading sessions based on user-configured time parameters.
 Independent Calculations : Maintains separate sentiment accumulation for each major session, updated only during respective active hours.
 Historical Preservation : Stores session-specific sentiment values even when sessions are closed, enabling cross-session comparison.
 Real-Time Updates : Continuously processes sentiment during active sessions while preserving inactive session data.
 3. Cross-Session Transition Analysis 
 Sentiment Differential Detection : Monitors sentiment changes when transitioning between trading sessions.
 Configurable Thresholds : Generates signals only when sentiment shifts exceed user-defined minimum thresholds.
 Directional Signals : Provides distinct bullish and bearish transition alerts with visual markers.
 Smart Filtering : Applies smoothing algorithms to reduce false signals from minor sentiment variations.
  ⚙️ KEY FEATURES 
 1. Session-Specific Dashboard 
 Real-Time Status Display : Shows current session activity (ACTIVE/CLOSED) for all three major sessions.
 Sentiment Percentages : Displays precise sentiment readings as percentages for easy interpretation.
 Strength Classification : Automatically categorizes sentiment as HIGH (>50%), MEDIUM (20-50%), or LOW (<20%).
 Customizable Positioning : Place dashboard in any corner with adjustable size options.
 2. Advanced Signal Generation 
 Transition Alerts : Triangle markers indicate significant sentiment shifts between sessions.
 Extreme Conditions : Diamond markers highlight overbought/oversold threshold breaches.
 Configurable Sensitivity : Adjust signal thresholds from 0.05 to 0.50 based on trading style.
 Alert Integration : Built-in TradingView alert conditions for automated notifications.
 3. Forex Currency Strength Analysis 
 Base/Quote Decomposition : For forex pairs, separates sentiment into individual currency strength components.
 Major Currency Support : Analyzes USD, EUR, GBP, JPY, CHF, CAD, AUD, NZD strength relationships.
 Relative Strength Display : Shows which currency is driving pair movement during active sessions.
 4. Visual Enhancement System 
 Session Background Colors : Distinct background shading for each active trading session.
 Overbought/Oversold Zones : Configurable extreme sentiment level visualization with colored zones.
 Multi-Timeframe Compatibility : Works across all timeframes while maintaining session accuracy.
 Customizable Color Schemes : Full color customization for dashboard, signals, and plot elements.
  🚀 HOW TO USE IT 
 1. Add the Script 
Search for "Session-Based Sentiment Oscillator  " in the Indicators tab or manually add it to your chart. The indicator will appear in a separate pane below your main chart.
 2. Configure Session Times 
 Asian Session : Set Tokyo market hours (default: 00:00-09:00) based on your chart timezone.
 European Session : Configure London market hours (default: 07:00-16:00) for European analysis.
 US Session : Define New York market hours (default: 13:00-22:00) for American markets.
 Timezone Adjustment : Ensure session times match your broker's specifications and account for daylight saving changes.
 3. Optimize Analysis Parameters 
 Sentiment Period : Choose 5-50 bars (default: 14) for sentiment calculation lookback period.
 Smoothing Settings : Select 1-10 bars smoothing (default: 3) with SMA, EMA, or RMA options.
 Component Selection : Enable/disable volume analysis, price action, and volatility factors based on available data.
 Signal Sensitivity : Adjust threshold from 0.05-0.50 (default: 0.15) for transition signal generation.
 4. Interpret Readings and Signals 
 Positive Values : Indicate bullish sentiment for the active session.
 Negative Values : Suggest bearish sentiment conditions.
 Dashboard Status : Monitor which session is currently active and their respective sentiment strengths.
 Transition Signals : Watch for triangle markers indicating significant cross-session sentiment changes.
 Extreme Alerts : Note diamond markers when sentiment reaches overbought (>70%) or oversold (<-70%) levels.
 5. Set Up Alerts 
Configure TradingView alerts for:
- Bullish session transitions
- Bearish session transitions  
- Overbought condition alerts
- Oversold condition alerts
 ❗️LIMITATIONS 
 1. Data Dependency 
 Volume Requirements : Volume-based analysis only functions when volume data is provided by your broker. Many forex brokers do not supply reliable volume data.
 Price Action Focus : In absence of volume data, sentiment calculations rely primarily on price movement and volatility factors.
 2. Session Time Sensitivity 
 Manual Adjustment Required : Session times must be manually updated for daylight saving time changes.
 Broker Variations : Different brokers may have slightly different session definitions requiring time parameter adjustments.
 3. Ranging Market Limitations 
 Trend Bias : Sentiment calculations may be less reliable during extended sideways or low-volatility market conditions.
 Lag Consideration : As with all sentiment indicators, readings may lag during rapid market transitions.
 4. Regional Market Focus 
 Major Session Coverage : Designed primarily for major global sessions; may not capture sentiment from smaller regional markets.
 Weekend Gaps : Does not account for weekend gap effects on sentiment calculations.
 ⚠️ RISK DISCLAIMER 
Trading and investing carry significant risk and can result in financial loss. The "Session-Based Sentiment Oscillator  " is provided for informational and educational purposes only. It does not constitute financial advice.
- Always conduct your own research and analysis
- Use proper risk management and position sizing in all trades
- Past sentiment patterns do not guarantee future market behavior
- Combine this indicator with other technical and fundamental analysis tools
- Consider overall market context and your personal risk tolerance
This script is an original creation by TradeDots, published under the Mozilla Public License 2.0.
Session-based sentiment analysis should be used as part of a comprehensive trading strategy. No single indicator can predict market movements with certainty. Exercise proper risk management and maintain realistic expectations about indicator performance across varying market conditions.






















