S&P 500 Weighted Advance Decline LineS&P 500 Weighted Advance Decline Line Indicator
Overview
 
This indicator creates a market cap weighted advance/decline line for the S&P 500 that tracks breadth based on actual index weights rather than treating all stocks equally. By weighting each stock's contribution according to its true S&P 500 impact, it provides more accurate market breadth analysis and better insights into underlying market strength and potential turning points.
 Key Features 
 
 Market Cap Weighted: Each stock contributes based on its actual S&P 500 weight
 Top 40 Stocks: Covers ~51% of the index with the largest companies 
 (limited by TradingView's 40 security call maximum for Premium accounts) 
 Real-Time Updates: Cumulative line shows long-term breadth trends
 Visual Indicators: Background coloring, moving average option, and data table
 
 Stock Coverage 
 Sector Breakdown: 
Technology (29.8%) - Dominates the coverage as expected
Financials (5.8%) - Major banking and payment companies
Consumer/Retail (3.7%) - Consumer staples and retail giants
Healthcare (3.2%) - Pharma and healthcare services
Communication (1.97%) - Telecom and tech services
Energy (1.35%) - Oil and gas majors
Industrial (0.9%) - Aerospace and industrial equipment
Other Sectors (4.6%) - Miscellaneous including software and payments
 Includes the 40 largest S&P 500 companies by weight, featuring: 
 
  Tech Leaders (29.8%): AAPL (7.0%), MSFT (6.5%), NVDA (4.5%), AMZN (3.5%), META (2.5%), GOOGL/GOOG (3.8%), AVGO (1.5%), ORCL (1.22%), AMD (0.51%), plus others
  Financials (5.8%): BRK.B (1.8%), JPM (1.2%), V (1.0%), MA (0.8%), BAC (0.63%), WFC (0.46%)
  Healthcare (3.2%): LLY (1.2%), UNH (1.2%), JNJ (1.1%), ABBV (0.8%), PG (0.9%)
  Consumer/Retail (3.7%): WMT (0.8%), HD (0.8%), COST (0.7%), KO (0.6%), PEP (0.6%), NKE (0.4%)
  Communication (1.97%): TMUS (0.47%), CSCO (0.47%), DIS (0.5%), CRM (0.5%)
  Energy** (1.35%): XOM (0.8%), CVX (0.55%)
  Industrial** (0.9%): GE (0.5%), BA (0.4%)
  Other Sectors (4.6%): PLTR (0.65%), ADBE (0.6%), PYPL (0.3%), plus others
 
 How to Interpret 
 Trend Signals 
 
  Rising A/D Line: Broad market strength, more weighted buying than selling
  Falling A/D Line: Market weakness, more weighted selling pressure
  Flat A/D Line: Balanced market conditions
 
 Divergence Analysis 
 
  Bullish Divergence: S&P 500 makes new lows but A/D Line holds higher
  Bearish Divergence: S&P 500 makes new highs but A/D Line fails to confirm
 
 Confirmation 
 
  Strong trends occur when both price and A/D Line move in the same direction
  Weak trends show when price moves but breadth doesn't follow
 
 Settings 
 
  Lookback Period: Days for advance/decline comparison (default: 1)
  Show Moving Average: Optional trend smoothing
  MA Length: Moving average period (default: 20)
 
 Limitations 
 
 Covers ~51% of S&P 500 (not complete market breadth)
 Optimized for TradingView Premium accounts (40 security limit)
 Heavy weighting toward mega-cap technology stocks
 Dependent on real-time data quality
 
Sentiment
Fear & Greed [theUltimator5]This indicator attempts to replicate CNN's Fear & Greed Index methodology to measure market sentiment on a scale from 0-100. It combines seven key market components into a single sentiment score, where lower values indicate fear and higher values indicate greed.
 Note: It is impossible to perfectly replicate the true Fear & Greed indicator due to data limitations, so this indicator attempts to best replicate the output for each of the (7) components using available data. 
The uniqueness of this indicator comes from the calculation methods for the 7 components as well as the visual representation of the data, which includes a table and selectable plots for each of the 7 components which make up the overall sentiment.  Existing variants of the Fear & Greed Index have substantial flaws in the calculations of several of the components which result in warped final sentiment numbers.  This indicator attempts to better track all 7 components and provide a closer model to the actual Fear & Greed index.
Here are the seven components and a brief description of how each are calculated:
 1. Market Momentum 
Calculation: S&P 500 current price vs. 125-day moving average
Measures how far the market has moved from its long-term trend
Uses CNN-style Z-score normalization over 252 trading days
Higher values indicate strong upward momentum (greed)
Lower values suggest declining momentum (fear)
 2. Stock Strength 
Calculation: S&P 500 RSI scaled to 252-day range
Uses 14-period RSI of the S&P 500 index
Normalizes RSI values based on their 252-day minimum and maximum
Measures overbought/oversold conditions relative to recent history
Higher values indicate overbought conditions (greed)
Lower values suggest oversold conditions (fear)
 3. Price Breadth 
Calculation: Modified McClellan Oscillator
Primary: Uses NYSE advancing vs. declining issues with 7-day smoothing
Fallback: Compares sector performance (QQQ, IWM vs. SPY)
Measures how many stocks participate in market moves
Broader participation indicates healthier trends
Narrow breadth suggests selective or weak trends
 4. Put/Call Ratio 
Calculation: Inverted CBOE Put/Call ratios
Primary: CBOE Equity-only Put/Call ratio (more sensitive)
Fallback: CBOE Total Put/Call ratio
Uses 5-day average and applies CNN normalization
Higher put/call ratios indicate fear (inverted to lower scores)
Lower put/call ratios suggest complacency (higher scores)
 5. Market Volatility 
Calculation: VIX relative to its 50-day average
Compares current VIX level to its 50-day moving average
Measures deviation from normal volatility expectations
Higher VIX relative to average indicates fear (lower scores)
Lower relative VIX suggests complacency (higher scores)
 6. Safe Haven Demand 
Calculation: Stock returns vs. bond yield changes
Compares 20-day smoothed S&P 500 returns to Treasury yield changes
When stocks outperform bonds, indicates risk appetite (higher scores)
When bonds outperform stocks, suggests risk aversion (lower scores)
Uses Treasury 10-year yields as the safe haven benchmark
 7. Junk Bond Demand 
Calculation: High-yield bond spread analysis
Measures yield spread between junk bonds (JNK ETF) and Treasuries
Compares current spread to its 5-day average
Narrowing spreads indicate risk appetite (higher scores)
Widening spreads suggest risk aversion (lower scores)
The combined sentiment is plotted as a single line which changes color based on the current sentiment value.
0-25: Extreme Fear (Red) - Market panic, oversold conditions
26-45: Fear (Orange) - Cautious sentiment, bearish bias
46-55: Neutral (Yellow) - Balanced market sentiment
56-75: Greed (Light Green) - Optimistic sentiment, bullish bias
76-100: Extreme Greed (Green) - Market euphoria, potentially overbought
There are dashed lines to represent the threshold values for each of the sentiments to better visualize transitions.
The table displays each of the (7) components of the index and their respective values.  The table can be toggled on/off and the position can be moved.
An optional secondary line can be toggled on to display (1) of the (7) components as a unique color and the component name and value will highlight on the table.  The secondary line can be used to dig into the main driving forces behind the overall index value.
 
Futures Multi-Asset Open Distance Table## Multi-Asset Open Distance Table - Quick Description
This Pine Script indicator displays a **real-time table** that tracks how far **three user-selected assets** are from their key opening price levels.
**What it shows:**
- **Three customizable assets** (default: NQ!, ES!, YM!)
- **Distance from 3 key opens** for each asset:
  - **1800 ET Open** (Electronic trading session start)
  - **0930 ET Open** (Regular market hours start) 
  - **Weekly Open** (Beginning of trading week)
**Visual features:**
- **Percentage changes** from each open level
- **Color coding**: Green for gains above opens, red for losses below opens
- **Direction arrows**: ▲ (above), ▼ (below), ■ (unchanged)
- **Customizable table position** and size
**Perfect for:**
- **Intraday traders** monitoring key session levels
- **Multi-timeframe analysis** across different market opens
- **Quick reference** to see which assets are performing relative to major opening levels
- **Session-based trading strategies** using 6PM and 9:30AM opens
The table updates in real-time and provides an at-a-glance view of where your chosen assets stand relative to these critical price reference points throughout the trading day.
NY Anchored VWAP and Auto SMANY Anchored VWAP and Auto SMA
This script is a versatile trading indicator for the TradingView platform that combines two powerful components: a New York-anchored Volume-Weighted Average Price (VWAP) and a dynamic Simple Moving Average (SMA). Designed for traders who utilize VWAP for intraday trend analysis, this tool provides a clear visual representation of average price and volatility-adjusted moving averages, generating automated alerts for key crossover signals.
Indicator Components
1. NY Anchored VWAP
The VWAP is a crucial tool that represents the average price of a security adjusted for volume. This version is "anchored" to the start of the New York trading session, resetting at the beginning of each new session. This provides a clean, session-specific anchor point to gauge market sentiment and trend. The VWAP line changes color to reflect its slope:
Green: When the VWAP is trending upwards, indicating a bullish bias.
Red: When the VWAP is trending downwards, indicating a bearish bias.
2. Auto SMA
The Auto SMA is a moving average with a unique twist: its lookback period is not fixed. Instead, it dynamically adjusts based on market volatility. The script measures volatility using the Average True Range (ATR) and a Z-Score calculation.
When volatility is expanding, the SMA's length shortens, making it more sensitive to recent price changes.
When volatility is contracting, the SMA's length lengthens, smoothing out the price action to filter out noise.
This adaptive approach allows the SMA to react appropriately to different market conditions.
Suggested Trading Strategy
This indicator is particularly effective when used on a one-minute chart for identifying high-probability trade entries. The core of the strategy is to trade the crossover between the VWAP and the Auto SMA, with confirmation from a candle close.
The strategy works best when the entry signal aligns with the overall bias of the higher timeframe market structure. For example, if the daily or 4-hour chart is in an uptrend, you would look for bullish signals on the one-minute chart.
Bullish Entry Signal: A potential entry is signaled when the VWAP crosses above the Auto SMA, and is confirmed when the one-minute candle closes above both the VWAP and the SMA. This indicates a potential continuation of the bullish momentum.
Bearish Entry Signal: A potential entry is signaled when the VWAP crosses below the Auto SMA, and is confirmed when the one-minute candle closes below both the VWAP and the SMA. This indicates a potential continuation of the bearish momentum.
The built-in alerts for these crossovers allow you to receive notifications without having to constantly monitor the charts, ensuring you don't miss a potential setup.
Opening Range Legstart FinderThis multi-faceted indicator uses 4 key time-based price levels to help traders identify when price is likely to revert or reverse. These key times are:
    18:00 (Globex open)
    00:00 (Midnight open)
    9:30 (RTH open)
    9:45 (End of first 15 minutes of RTH)
The key concept here is that price is likely to revert back into the current daily range if it is below all 4 of the time-based prices or above all of the time-based prices. When price is between those levels it will often chop around and be harder to navigate. 
The first component of this indicator provides traders with a snapshot of price relative to those 4 levels across up to 6 different tradable instruments, indicating which direction price is expected to move for each of those instruments. This way, the trader can see which instruments are expected to potentially reverse and which ones are more likely to chop. 
The second component are configurable price windows where the indicator will anticipate reversals in price. By default, the indicator is focused on price reversals that happen at the end or beginning of an hourly candle. As such, the default time windows are the last 15 minutes of one hour and the first 15 minutes of the next (ie. 9:45 to 10:15). The number of hours used is configurable by the user. We are looking to trade OHLC and OLHC of an hourly candle within these windows during which price is expected to reverse or have impulsive moves.
The third component is a structure shift detection mechanism. This mechanism is based on relative pivot strength of recent price action. New legs in price action form by breaking above or below the pivots based on recent price action. By default, the pivots are based on the current timeframe but can be adjusted to watch for price breaks above any timeframe larger than the current chart. 
The fourth component of the indicator will is a mechanism to provide targets based on these new price legs. By default, in bullish scenarios, these targets will only be displayed if price is 'below all' of the price levels described above and we form a new price leg up during the specified time windows where we anticipate a reversal. Alternatively, in bearish scenarios, these targets will only be displayed if price is 'above all' of the price levels described above and we form a new price leg down during the specified time windows where we anticipate a reversal.
This default configuration can be changed to show targets regardless of relationship to the price levels above and/or to disregard the time windows configured above. 
In all scenarios, targets are based on widely used fibonacci extensions on price leg patterns (ie. 2-2.5 and 4 standard deviations up from a move down).
Finally there is a volatility filter built-in to the indicator to prevent traders from trying to 'catch the falling knife' when price action is strongly moving in one direction and is likely to continue to do so. This filter is a custom implementation of the Ehlers Super PassBand Filter to accommodate for timeframes less than 1 minute.
This indicator is intended to be used on lower timeframes (15 seconds to 2 minutes) as the goal is to catch large reversals with minimal stops. When aligned with higher timeframe trends, the results can be impressive.
Benchmark Relative Performance BRPBenchmark Relative Performance (BRP) is a comprehensive technical analysis tool that compares any stock's performance against a chosen benchmark (QQQ, SPY, IWM, etc.) to identify outperformance and underperformance patterns.
Key Features:
Dual-line visualization: Shows both ticker and relative strength performance
Dynamic color coding: 5-level color system indicating performance strength
Customizable benchmark: Choose from any ticker via TradingView's symbol picker
Volume weighting: Optional volume analysis for stronger signal confirmation
Performance zones: Visual thresholds for strong/moderate performance levels
Compact info table: Real-time performance status and values
What It Shows:
Benchmark Performance Line (Blue): Shows your chosen benchmark's percentage performance
Relative Strength Line (Color-coded): Shows how much the ticker outperforms/underperforms
Fill Area: Visual gap between ticker and benchmark performance
Performance Zones: Dotted lines marking significant performance thresholds
Color System:
Green: Strong outperformance (above custom threshold)
Lime: Standard outperformance
Yellow: Neutral/Equal performance
Orange: Standard underperformance
Red: Strong underperformance (below custom threshold)
Best Used For:
Stock selection and rotation strategies
Sector/ETF relative strength analysis
Identifying momentum shifts vs benchmarks
Portfolio performance evaluation
Market timing based on relative performance
Settings:
Customizable lookback period (default: 20)
Adjustable strong performance threshold (default: 5%)
Optional volume weighting factor
Full table customization (position, colors, fonts)
Performance display (percentage or decimal)
Perfect for traders and investors who want to identify stocks showing relative strength or weakness compared to major market benchmarks.
Real Relative Sector Strength - NormalizedShows RS/RW, which is esp. helpful if it's not fully clear based on the stock's chart movement compared to SPY's movement.
"Glowing green" =  safely  strong
"Glowing red" =  safely  weak
More infos:  www.reddit.com
Quantura - Quantitative AlgorythmIntroduction 
“Quantura – Quantitative Algorithm” is an invite-only Pine Script strategy designed for multi-timeframe analysis, combining technical filters with user-adjustable fundamental sentiment. It was primarily developed for cryptocurrency markets but can also be applied across other assets such as Forex, stocks, and indices. The goal is to generate structured trade signals through a confluence of techniques rather than relying on a single indicator.
 Originality & Value 
Quantura is not a simple mashup of indicators. Its originality comes from how  multiple layers of analysis are integrated into a single decision framework . Instead of showing indicators separately, the strategy only issues trades when several conditions align simultaneously:
 
  RSI entry triggers confirm overbought/oversold reversals.
  Market structure on a higher timeframe confirms trend direction.
  Order block detection highlights zones of concentrated supply and demand.
  Premium/Discount zones identify potential over- and undervaluation.
  HTF EMA provides trend confirmation.
  Optional candlestick patterns strengthen reversal or continuation signals.
  An optional correlation filter compares the main asset to a reference instrument.
 
This design forces agreement between different methodologies (momentum, structure, value, volume, sentiment), which reduces noise compared to using them in isolation.
 Functionality & Indicators 
 
   Entry trigger:  RSI exits from extreme zones.
   Filters:  Only valid when all selected filters (HTF structure, EMA, order blocks, premium/discount, candlesticks, correlation, volume) confirm the direction.
   Fundamental bias:  User-defined sentiment and analysis settings (bullish, bearish, neutral) influence whether long or short trades are permitted.
   Exits:  ATR-based take profit and stop loss, with optional breakeven, opposite-signal exit, and session-end exit.
   Visualization:  Buy/Sell markers, trend-colored candles, and an optional dashboard summarizing indicator status.
 
 Parameters & Customization 
 
  Timeframes: Independent HTF and LTF selection.
  Trading direction: Long / Short / Both.
  Session and weekday filters.
  RSI length and thresholds.
  Filters: HTF structure, order blocks, premium/discount, EMA, candlestick, ATR volatility, volume zones, correlation.
  Exit rules: ATR multipliers for TP/SL, breakeven logic, session-end exit, opposite-signal exit.
  Visuals: Toggle signals, candles, dashboard, custom colors.
 
 Default Properties (Strategy Settings) 
 
  Initial Capital: 200,000 USD
  Position Size: 1 BTC
  Commission: 0.25%
  Slippage: enabled (1 tick)
  Pyramiding: 0 (one position at a time)
 
 Note:  The position sizing of 1 BTC per trade is intentionally set for backtesting demonstration. Most traders prefer to risk 1-5% of equity.
 Backtesting & Performance 
Backtests on BTCUSD (2 years) with the above defaults showed:
 
  103 trades
  Win rate: 42%
  Profit factor: 1.3
  Maximum drawdown: 10%
 
These results illustrate how the confluence model behaves, but  they are not predictive of future performance . Users should re-test with their own preferred symbols, settings, and timeframes.
 Risk Management 
 
  ATR-based stops and targets scale with volatility.
  Commission and slippage are included by default for realistic modeling.
  Opposite-signal exit helps capture trend reversals.
  Session-end exit can close intraday positions before illiquid hours.
  Breakeven option protects profits when available.
 
Although the default allocation uses 1 BTC per trade for demonstration, this is not a recommendation. Users are encouraged to adjust risk sizing downwards to sustainable levels (commonly 1-5%).
 Limitations & Market Conditions 
 
  Performs best in volatile, liquid markets (e.g., crypto).
  May struggle in prolonged sideways markets with low volatility.
  News events and fundamentals outside user inputs can override signals.
 
 Usage Guide 
 
  Add “Quantura – Quantitative Algorithm” to your chart in strategy mode.
  Select HTF and LTF timeframes, trading direction, and session filters.
  Configure confluence filters (structure, EMA, order blocks, premium/discount, candlestick, correlation, volume).
  Set sentiment and analysis bias in fundamental settings.
  Adjust ATR multipliers and exits.
  Review buy/sell signals and analyze performance in the Strategy Tester.
 
 Author & Access 
Developed  100% by Quantura . Distributed as an  Invite-Only script . Access is granted upon request. Details are provided in the  Author’s Instructions  field.
 Important:  This description complies with TradingView’s Script Publishing Rules and House Rules. It does not guarantee profitability, avoids unrealistic claims, and explains how the strategy integrates multiple methods into a coherent decision framework.
Session Time Milestones Highlight & AlertSession Time Milestones Highlight & Alert
This script allows you to track and highlight specific trading session milestones on your chart with customizable times, all set in GMT+7. It provides visual cues and alerts for key market events like Tokyo Open, Shanghai Open, Asia Lunch Time, London Open, London Lunch Time, and New York Open.
Features:
Customizable Time Milestones: Adjust the times for each session directly from the settings.
Candle Highlights: The script highlights the candles at your chosen session times for quick visual identification.
Alerts: Set alerts to be notified when each session starts.
Labels: Optionally display simple labels on the chart above the candles for each milestone, with easy toggles to turn them on or off.
Note: All times are in GMT+7.
Advanced Candle Patterns detector-GSK-VIZAG-AP-INDIA 📌 Description
This indicator automatically detects and highlights common candlestick patterns on the chart and provides a reference table with explanations. It is designed as a visual and educational tool for learning candlestick psychology and price action.
🔍 Features
Pattern Detection (on-chart):
Detects well-known bullish, bearish, and neutral patterns:
Bullish Engulfing, Bearish Engulfing
Hammer, Inverted Hammer
Morning Star, Evening Star
Three White Soldiers, Three Black Crows
Bullish Harami, Bearish Harami
Piercing Line, Dark Cloud Cover
Tweezer Bottom, Tweezer Top
Doji
Patterns are marked directly on the chart using labels.
Labels can show pattern names or serial numbers (user choice).
Bullish = Green, Bearish = Red, Neutral = Yellow.
Reference Table (on-chart panel):
Lists all detected patterns with color-coded text.
Option to show short explanations for each pattern, or just identifiers.
Table includes a “Serial” column so users can match with chart labels.
Chart & Table Settings (customizable):
Table Position: choose Top Left, Top Right, Bottom Left, Bottom Right.
Text Size: choose Tiny, Small, Normal, Large, or Huge.
Toggle Options:
Show/Hide explanation table.
Show/Hide descriptions in table.
Show serial numbers instead of pattern labels on chart.
🎓 Educational Purpose
This tool is meant for study and research. Candlestick patterns alone are not reliable signals; their strength depends on trend, volume, and market context. Use this script to visually learn patterns and combine with other analysis methods.
⚠️ Disclaimer:
This indicator is for educational purposes only. It does not provide trading or investment advice. No candlestick pattern guarantees future price movement. Always confirm with other tools and do your own research before making trading decisions.
Snapfront Market Clarity Index (MCI) — LiteMarket Clarity Index (MCI) — Lite + Signals
The Market Clarity Index (MCI) measures trend clarity vs. noise using returns, drift, and volume shock dynamics. Values are normalized through a φ²-based sigmoid for smooth, interpretable signals.
Features:
Clear 0–100 scale (Lite version)
Heatmap background for clarity regimes
Bull/Bear signal arrows with EMA filter
High/Low threshold lines for easy context
Trading Logic:
✅ Bull signal when MCI crosses into the high zone with price above EMA
❌ Bear signal when MCI crosses into the low zone with price below EMA
Use MCI as a trend filter, entry trigger, or market condition gauge across any timeframe or asset.
Elliott Wave [BigBeluga]🔵 OVERVIEW 
 Elliott Wave   automatically finds and draws an Elliott-style  5-wave impulse  and a dashed projection for a potential -(a)→(b)→(c)  correction. It detects six sequential reversal points from rolling highs/lows —  1, 2, 3, 4, 5, (a)  — validates their relative placement, and then renders the wave with labels and horizontal reference lines. If price invalidates the structure by closing back through the Wave-5 level inside a 100-bar window, the pattern is cleared (optionally kept as “broken”) while key dotted levels remain for context.
 🔵 CONCEPTS 
 
   Reversal harvesting from extremes : The script scans  highest/lowest  values over a user-set  Length  and stores swing points with their bar indices.
   Six-point validation : A pattern requires six pivots (1…5 and (a)). Their vertical/temporal order must satisfy Elliott-style constraints before drawing.
  
   Impulse + projection : After confirming 1→5, the tool plots a curved polyline through the pivots and a dashed forward path from (a) toward (b) (midpoint of 5 and (a)) and back to (c).
  
   Risk line (invalidator) : The Wave-5 price is tracked; a close back through it within 100 bars marks the structure as broken.
  
   Minimal persistence : When broken, the wave drawing is removed to avoid noise, while dotted horizontals for waves 5 and 4 remain as reference.
  
 
 🔵 FEATURES 
 
   Automatic pivot collection  from rolling highs/lows (user-controlled  Length ).
   Wave labeling : Points 1–5 are printed; the last collected swing is marked b
 . Projected i
  & i
  are shown with a dashed polyline.
   Breaker line & cleanup : If price closes above Wave-5 (opposite for bears) within 100 bars, the pattern is removed; only dotted levels of 5 and 4 stay.
   Styling controls :
 
   Length  (pivot sensitivity)
   Text Size  for labels (tiny/small/normal/large)
  Wave color input
   Show Broken  toggle to keep invalidated patterns visible
 
   Lightweight memory : Keeps a compact buffer of recent pivots/draws to stay responsive.
 
 🔵 HOW TO USE 
 
   Set sensitivity : Increase  Length  on noisy charts for cleaner pivots; decrease to catch earlier/shorter structures.
   Wait for confirmation : Once 1→5 is printed and (a) appears, use the Wave-5 line as your invalidation. A close back through it within ~100 bars removes the active wave (unless  Show Broken  is on).
   Plan with the dashed path : The (a)→(b)→(c) projection offers a scenario for potential corrective movement and risk placement.
  
   Work MTF : Identify cleaner waves on higher TFs; refine execution on lower TFs near the breaker or during the move toward (b).
  
   Seek confluence : Align with structure (S/R), volume/Delta, or your trend filter to avoid counter-context trades.
 
 🔵 CONCLUSION 
 Elliott Wave   systematizes discretionary wave analysis: it detects and labels the 5-wave impulse, projects a plausible (a)-(b)-(c) path, and self-cleans on invalidation. With clear labels, dotted reference levels, and a practical breaker rule, it gives traders an objective framework for scenario planning, invalidation, and timing.
ICT Killzones & Pivots indicatorIt marks out key trading sessions (Asia, London, New York AM, NY Lunch, NY PM) by drawing:
Killzone boxes (high/low of session)
Pivot lines (session highs and lows)
Labels (like LO.H, NYAM.L, etc.)
Day/Week/Month opens and separators
Custom timestamp markers
Here’s what’s happening in the code:
🔑 Key Features:
Configurable Killzones
Asia: 20:00 – 00:00 GMT-4
London: 02:00 – 05:00 GMT-4
NY AM: 09:30 – 11:00 GMT-4
NY Lunch: 12:00 – 13:00 GMT-4
NY PM: 13:30 – 16:00 GMT-4
Each session can show:
Colored boxes (range of session)
Pivot high/low lines
Labels like AS.H, LO.L
Alerts when levels break
Drawing Limits
max_days input controls how many past sessions are shown.
Prevents chart clutter.
Opening Price Lines
You can mark important open levels: true day open (00:00), 06:00, 10:00, 14:00.
Useful for ICT concepts like “open drive.”
Day/Week/Month Opens
Option to plot open price levels with labels (D.OPEN, W.OPEN, M.OPEN).
Can also show separators for each new day/week/month.
Alerts
Triggers when session highs or lows are broken.
Example: “Broke LO.H” if London high breaks.
Custom Timezones
Killzones are adjusted using the gmt_tz setting.
Default is GMT-4 (New York).
Cutoff Time
After a set time (default 12:00), extensions of session lines stop updating.
⚡ In practice:
Boxes highlight accumulation ranges (ICT killzones).
Pivot lines help track liquidity grabs (session high/low breaks).
Labels + alerts keep you notified of important market structure events.
Combined with ICT concepts, you’d look for setups like:
London killzone sweep of Asia range.
NY session taking liquidity above London high.
Secret bubbleSecret bubble
Why Might It Be Called "Bubbles"?
Although not officially named so, some traders or platforms might refer to Bollinger Bands as "bubbles" because:
The bands visually surround the price like a bubble.
During low volatility, the bands form a tight "bubble" around price.
Breakouts look like the price "popping out" of a bubble.
Hence, the nickname "пузырьки" (bubbles) could be a colloquial or visual metaphor for Bollinger Bands in Russian-speaking trading communities.
Conclusion
While there is no official technical indicator called "Bubbles", the term likely refers to Bollinger Bands due to their visual appearance and function. This powerful tool helps traders assess volatility, spot potential reversals, and time entries and exits. When combined with other analysis methods, Bollinger Bands remain a cornerstone of modern technical trading.
🔧 Tip: You can find Bollinger Bands on almost every trading platform (TradingView, MetaTrader, ThinkorSwim) by searching "Bollinger Bands" in the indicators list.
Major & Modern Wars TimelineDescription:
This indicator overlays vertical lines and labels on your chart to mark the start and end dates of major global wars and modern conflicts.
Features:
Displays start (red line + label) and end (green line + label) for each war.
Covers 20th century wars (World War I, World War II, Korean War, Vietnam War, Gulf War, Afghanistan, Iraq).
Includes modern conflicts: Syrian Civil War, Ukraine War, and Israel–Hamas War.
For ongoing conflicts, the end date is set to 2025 for timeline visualization.
Customizable: label position (above/below bar), line width.
Works on any chart timeframe, overlaying events on financial data.
Use case:
Useful for historical market analysis (e.g., gold, oil, S&P 500), helping traders and researchers see how wars and conflicts align with market movements.
Market Cap Landscape 3DHello, traders and creators! 👋
Market Cap Landscape 3D. This project is more than just a typical technical analysis tool; it's an exploration into what's possible when code meets artistry on the financial charts. It's a demonstration of how we can transcend flat, two-dimensional lines and step into a vibrant, three-dimensional world of data.
This project continues a journey that began with a previous 3D experiment, the T-Virus Sentiment, which you can explore here:
The Market Cap Landscape 3D builds on that foundation, visualizing market data—particularly crypto market caps—as a dynamic 3D mountain range. The entire landscape is procedurally generated and rendered in real-time using the powerful drawing capabilities of  polyline.new()  and  line.new() , pushed to their creative limits.
 This work is intended as a guide and a design example for all developers, born from the spirit of learning and a deep love for understanding the Pine Script™ language. 
---
🧐  Core Concept: How It Works 
The indicator synthesizes multiple layers of information into a single, cohesive 3D scene:
 
   The Surface:  The mountain range itself is a procedurally generated 3D mesh. Its peaks and valleys create a rich, textured landscape that serves as the canvas for our data.
   Crypto Data Integration:  The core feature is its ability to fetch market cap data for a list of cryptocurrencies you provide. It then sorts them in descending order and strategically places them onto the 3D surface.
   The Summit:  The highest point on the mountain is reserved for the asset with the #1 market cap in your list, visually represented by a flag and a custom emblem.
   The Mountain Labels:  The other assets are distributed across the mountainside, with their rank determining their general elevation. This creates an intuitive visual hierarchy.
   The Leaderboard Pole:  For clarity, a dedicated pole in the back-right corner provides a clean, ranked list of the symbols and their market caps, ensuring the data is always easy to read.
 
---
🧐 Example of adjusting the view 
To evoke the feeling of flying over mountains
  
  
To evoke the feeling of looking at a mountain peak on a low plain
  
  
🧐 Example of predefined colors 
  
  
  
  
  
  
  
  
  
  
  
  
  
---
🚀  How to Use 
Getting started with the Market Cap Landscape 3D:
 
   Add to Chart:  Apply the "Market Cap Landscape 3D" indicator to your active chart.
   Open Settings:  Double-click anywhere on the 3D landscape or click the "Settings" icon next to the indicator's name.
   Customize Your Crypto List:  The most important setting is in the  Crypto Data  tab. In the  "Symbols"  text area, enter a comma-separated list of the crypto tickers you want to visualize (e.g.,  BTC,ETH,SOL,XRP ). The indicator supports up to 40 unique symbols.
 > Important Note: This indicator exclusively uses TradingView's `CRYPTOCAP` data source. To find valid symbols, use the main symbol search bar on your chart. Type `CRYPTOCAP:` (including the colon) and you will see a list of available options. For example, typing `CRYPTOCAP:BTC` will confirm that `BTC` is a valid ticker for the indicator's settings. Using symbols that do not exist in the `CRYPTOCAP` index will result in a script error. or, to display other symbols, simply type CRYPTOCAP: (including the colon) and you will see a list of available options. 
   Adjust Your View:  Use the settings in the  Camera & Projection  tab to rotate ( Yaw ), tilt ( Pitch ), and scale the landscape until you find a view you love.
   Explore & Customize:  Play with the color palettes, flag design, and other settings to make the landscape truly your own!
 
---
⚙️  Settings & Customization 
This indicator is highly customizable. Here’s a breakdown of what each setting does:
 
#### 🪙  Crypto Data 
 
   Symbols:  Enter the crypto tickers you want to track, separated by commas. The script automatically handles duplicates and case-insensitivity.
   Show Market Cap on Mountain:  When checked, it displays the full market cap value next to the symbol on the mountain. When unchecked, it shows a cleaner look with just the symbol and a colored circle background.
 
#### 📷  Camera & Projection 
 
   Yaw (°):  Rotates the camera view horizontally (side to side).
   Pitch (°):  Tilts the camera view vertically (up and down).
   Scale X, Y, Z:  Stretches or compresses the landscape in width, depth, and height, respectively. Fine-tune these to get the perfect perspective.
 
#### 🏞️  Grid / Surface 
 
   Grid X/Y resolution:  Controls the detail level of the 3D mesh. Higher values create a smoother surface but may use more resources.
   Fill surface strips:  Toggles the beautiful color gradient on the surface.
   Show wireframe lines:  Toggles the visibility of the grid lines.
   Show nodes (markers):  Toggles the small dots at each grid intersection point.
 
#### 🏔️  Peaks / Mountains 
 
   Fill peaks volume:  Draws vertical lines on high peaks, giving them a sense of volume.
   Fill peaks surface:  Draws a cross-hatch pattern on the surface of high peaks.
   Peak height threshold:  Defines the minimum height for a peak to receive the fill effect.
   Peak fill color/density:  Customizes the appearance of the fill lines.
 
#### 🚩  Flags (3D) 
 
   Show Flag on Summit:  A master switch to show or hide the flag and emblem entirely.
   Flag height, width, etc.:  Provides full control over the dimensions and orientation of the flag on the highest peak.
 
#### 🎨  Color Palette 
 
   Base Gradient Palette:  Choose from 13 stunning, pre-designed color themes for the landscape, from the classic  SUNSET_WAVE  to vibrant themes like  NEON_DREAM  and  OCEANIC .
 
#### 🛡️  Emblem / Badge Controls 
 
 This section gives you granular control over every element of the custom emblem on the flag. Tweak rotation, offsets, and scale to design your unique logo.
 
 
---
👨💻  Developer's Corner: Modifying the Core Logic 
If you're a developer and wish to customize the indicator's core data source, this section is for you. The script is designed to be modular, making it easy to change what data is being ranked and visualized.
The heart of the data retrieval and ranking logic is within the  f_getSortedCryptoData()  function. Here’s how you can modify it:
 1. Changing the Data Source (from Market Cap to something else): 
The current logic uses  request.security("CRYPTOCAP:" + syms.get(i), ...)  to fetch market capitalization data. To change this, you need to modify this line.
 
   Example: Ranking by RSI (14) on the Daily timeframe. 
 
 First, you'll need a function to calculate RSI. Add this function to the script:
 
f_getRSI(symbol, timeframe, length) =>
    request.security(symbol, timeframe, ta.rsi(close, length))
 
 Then, inside  f_getSortedCryptoData() , find the `for` loop that populates the `caps` array and replace the `request.security` call:
 
// OLD LINE:
// caps.set(i, request.security("CRYPTOCAP:" + syms.get(i), timeframe.period, close))
    
// NEW LINE for RSI:
// Note: You'll need to decide how to format the symbol name (e.g., "BINANCE:" + syms.get(i) + "USDT")
caps.set(i, f_getRSI("BINANCE:" + syms.get(i) + "USDT", "D", 14))
 
 
 
 2. Changing the Data Formatting: 
The ranking values are formatted for display using the  f_fmtCap()  function, which currently formats large numbers into "M" (millions), "B" (billions), etc.
 
  If you change the data source to something like RSI, you'll want to change the formatting. You can modify  f_fmtCap()  or create a new formatting function.
 
   Example: Formatting for RSI. 
 
// Modify f_fmtCap or create f_fmtRSI
f_fmtRSI(float v) =>
    str.tostring(v, "#.##") // Simply format to two decimal places
 
  Remember to update the calls to this function in the main drawing loop where the labels are created (e.g.,  str.format("{0}: {1}", crypto.symbol, f_fmtCap(crypto.cap)) ).
 
 
By modifying these key functions ( f_getSortedCryptoData  and  f_fmtCap ), you can adapt the Market Cap Landscape 3D to visualize and rank almost any dataset you can imagine, from technical indicators to fundamental data.
---
We hope you enjoy using the Market Cap Landscape 3D as much as we enjoyed creating it. Happy charting! ✨
US Presidents 1789–1916Description:
This indicator displays all U.S. presidential elections from 1789 to 1916 on your chart.
Features:
Vertical lines at the date of each presidential election.
Line color by party:
Red = Republican
Blue = Democrat
Gray = Other/None
Labels showing the name of each president.
Historical flag style: All presidents before 1900 are considered historical, providing visual distinction.
Fully overlayed on the price chart for timeline context.
Customizable: Label position (above/below bar) and line width.
Use case: Great for studying historical market behavior around elections or for general reference of U.S. presidents during the early history of the country.
US Presidents 1920–2024Description:
This indicator displays all U.S. presidential elections from 1920 to 2024 on your chart.
Features:
Vertical lines at the date of each presidential election.
Line color by party:
Red = Republican
Blue = Democrat
Gray = Other/None
Labels showing the name of each president.
Modern flag style: Presidents from 1900 onward are highlighted as modern, giving clear historical separation.
Fully overlayed on the price chart for timeline context.
Customizable: Label position (above/below bar) and line width.
Use case: Useful for analyzing modern U.S. presidential cycles, market reactions to elections, or quickly referencing recent presidents directly on charts.
FED Rate Decisions (Cuts & Hikes)This indicator highlights key moments in U.S. monetary policy by plotting vertical lines on the chart for Federal Reserve interest rate decisions.
Features:
Rate Cuts (red): Marks dates when the Fed reduced interest rates.
Rate Hikes (green): Marks dates when the Fed increased interest rates.
Configurable view: Choose between showing all historical decisions or only those from 2019 onwards.
Labels: Each event is tagged with “FED CUT” or “FED HIKE” above or below the bar (adjustable).
Alerts: You can set TradingView alerts to be notified when the chart reaches a Fed decision day.
🔧 Inputs:
Show decisions: Switch between All or 2019+ events.
Show rate cuts / hikes: Toggle visibility separately.
Colors: Customize line and label colors.
Label position: Place labels above or below the bar.
📈 Usage:
This tool helps traders and investors visualize how Fed policy shifts align with market movements. Rate cuts often signal economic easing, while hikes suggest tightening monetary policy. By overlaying these events on price charts, you can analyze historical reactions and prepare for similar scenarios.
JL - Market HeatmapThis indicator plots a static table on your chart that displays any tickers you want and their % change on the day so far.  
It updates in real time, changes color as it updates, and has several custom functions available for you:
1.  Plot up to 12 tickers of your choice 
2.  Choose a layout with 1-4 rows
3.  Display % Change or Not
4.  Choose your font size (Tiny, Small, Normal, Large)
5.  Up/Down Cell Colors (% change dependent)
6.  Up/Down Text Colors (high contrast to your color choices)
The purpose of the indicator is to quickly measure a broad basket of market instruments to paint a more context-rich perspective of the chart you are looking at.   
I hope this indicator can help you (and me) accomplish this task in a simple, clean, and seamless manner.  
Thanks and enjoy - Jack
Signalgo Strategy ISignalgo Strategy I: Technical Overview
  
Signalgo Strategy I is a systematically engineered TradingView strategy script designed to automate, test, and manage trend-following trades using multi-timeframe price/volume logic, volatility-based targets, and multi-layered exit management. This summary covers its operational structure, user inputs, entry and exit methodology, unique technical features, and practical application.
Core Logic and Workflow
Multi-Timeframe Data Synthesis
User-Defined Timeframe: The user chooses a timeframe (e.g., 1H, 4H, 1D, etc.), on which all strategy signals are based.
Cross-Timeframe Inputs: The strategy imports closing price, volume, and Average True Range (ATR) for the selected interval, independently from the chart’s native timeframe, enabling robust multi-timeframe analysis.
Price Change & Volume Ratio: It calculates the percent change of price per bar and computes a volume ratio by comparing current volume to its 20-bar moving average—enabling detection of true “event” moves vs. normal market noise.
Hype Filtering
Anti-Hype Mechanism: An entry is automatically filtered out if abnormal high volume occurs without corresponding price movement, commonly observed during manipulation or announcement periods. This helps isolate genuine market-driven momentum.
User Inputs
Select Timeframe: Choose which interval drives signal generation.
Backtest Start Date: Specify from which date historical signals are included in the strategy (for precise backtests).
Take-Profit/Stop-Loss Configuration: Internally, risk levels are set as multiples of ATR and allow for three discrete profit targets.
Entry Logic
  
Trade Signal Criteria:
Price change magnitude in the current bar must exceed a fixed sensitivity threshold.
Volume for the bar must be significantly elevated compared to average, indicating meaningful participation.
Anti-hype check must not be triggered.
Bullish/Bearish Determination: If all conditions are met and price change direction is positive, a long signal triggers. If negative, a short signal triggers.
Signal Debouncing: Ensures a signal triggers only when a new condition emerges, avoiding duplicate entries on flat or choppy bars.
State Management: The script tracks whether an active long or short is open to avoid overlapping entries and to facilitate clean reversals.
Exit Strategy
  
Take-Profits: Three distinct profit targets (TP1, TP2, TP3) are calculated as fixed multiples of the ATR-based stop loss, adapting dynamically to volatility.
Reversals: If a buy signal appears while a short is open (or vice versa), the existing trade is closed and reversed in a single step.
Time-Based Exit: If, 49 bars after entry, the trade is in-profit but hasn’t reached TP1, it exits to avoid stagnation risk.
Adverse Move Exit: The position is force-closed if it suffers a 10% reversal from entry, acting as a catastrophic stop.
Visual Feedback: Each TP/SL/exit is plotted as a clear, color-coded line on the chart; no hidden logic is used.
Alerts: Built-in TradingView alert conditions allow automated notification for both entries and strategic exits.
Distinguishing Features vs. Traditional MA Strategies
Event-Based, Not Just Slope-Based: While classic moving average strategies enter trades on MA crossovers or slope changes, Signalgo Strategy I demands high-magnitude price and volume confirmation on the chosen timeframe.
Volume Filtering: Very few MA strategies independently filter for meaningful volume spikes.
Real Market Event Focus: The anti-hype filter differentiates organic market trends from manipulated “high-volume, no-move” sessions.
Three-Layer Exit Logic: Instead of a single trailing stop or fixed RR, this script manages three profit targets, time-based closures, and hard adverse thresholds.
Multi-Timeframe, Not Chart-Dependent: The “main” analytical interval can be set independently from the current chart, allowing for in-depth cross-timeframe backtests and system runs.
Reversal Handling: Automatic handling of signal reversals closes and flips positions precisely, reducing slippage and manual error.
Persistent State Tracking: Maintains variables tracking entry price, trade status, and target/stop levels independently of chart context.
Trading Application
  
Strategy Sandbox: Designed for robust backtesting, allowing users to simulate performance across historical data for any major asset or interval.
Active Risk Management: Trades are consistently managed for both fixed interval “stall” and significant loss, not just via trailing stops or fixed-day closes.
Alert Driven: Can power algorithmic trading bots or notify discretionary traders the moment a qualifying market event occurs.
Price Heat Meter [ChartPrime]⯁ OVERVIEW 
 Price Heat Meter   visualizes where price sits inside its recent range and turns that into an intuitive “temperature” read. Using rolling extremes, candles fade from  ❄️ aqua (cold)  near the lower bound to  🔥 red (hot)  near the upper bound. The tool also trails recent extreme levels, tags unusually persistent extremes with a % “heat” label, and shows a bottom gauge (0–100%) with a live arrow so you can read market heat at a glance.
 ⯁ KEY FEATURES 
 
 Rolling Heat Map (0–100%): 
The script measures where the close sits between the current  Lowest Low  and  Highest High  over the chosen  Length  (default 50).
Candles use a two-stage gradient:  aqua → yellow  (0–50%), then  yellow → red  (50–100%). This makes “how stretched are we?” instantly visible.
  
 Dynamic Extremes with Time Decay: 
When a new rolling  High  or  Low  is set, the script starts a faint horizontal trail at that price. Each bar that passes without a new extreme increases a counter; the line’s color gradually fades over time and fully disappears after ~100 bars, keeping the chart clean.
  
 Persistent-Extreme Tags (Reversal Hints): 
If an extreme persists for  40 bars  (i.e., price hasn’t reclaimed or surpassed it), the tool stamps the original extreme pivot with its recorded  Heat%  at the moment the extreme formed.
• Upper extremes print a red % label (possible exhaustion/resistance context).
• Lower extremes print an aqua % label (possible exhaustion/support context).
  
 Bottom Heat Gauge (0–100% Scale): 
A compact, gradient bar renders at the bottom center showing the current Heat% with an arrow/label.  ❄️  anchors the left (0%),  🔥  anchors the right (100%). The arrow adopts the same candle heat color for consistency.
  
  
 Minimal Inputs, Clear Theme: 
•  Length  (lookback window for H/L)
•  Heat Color  set (Cold / Mid / Hot)
The defaults give a balanced, legible gradient on most assets/timeframes.
 Signal Hygiene by Design: 
The meter doesn’t “call” reversals. Instead, it  contextualizes  price within its range and highlights the aging of extremes. That keeps it robust across regimes and assets, and ideal as a confluence layer with your existing triggers.
 
 ⯁ HOW IT WORKS (UNDER THE HOOD) 
 
 Range Model: 
H = Highest(High, Length), L = Lowest(Low, Length). Heat% = 100 × (Close − L) / (H − L).
 Extreme Tracking & Fade: 
When  High == H , we record/update the current upper extreme; same for  Low == L  on the lower side. If the extreme doesn’t change on the next bar, a counter increments and the plotted line’s opacity shifts along a 0→100 fade scale (visual decay).
 40-Bar Persistence Labels: 
On the bar after the extreme forms, the code stores the  bar_index  and the contemporaneous  Heat% . If the extreme survives 40 bars, it places a % label at the original pivot price and index—flagging levels that were meaningfully “tested by time.”
 Unified Color Logic: 
Both candles and the gauge use the same two-stage gradient (Cold→Mid, then Mid→Hot), so your eye reads “heat” consistently across all elements.
 
 ⯁ USAGE 
 
 Treat  >80%  as “hot” and  <20%  as “cold” context; combine with your trigger (e.g., structure, OB, div, breakouts) instead of acting on heat alone.
 Watch persistent extreme labels (40-bar marks) as  reference zones  for reaction or liquidity grabs.
 Use the fading extreme lines as a  memory map  of where price last stretched—levels that slowly matter less as they decay.
 Tighten  Length  for intraday sensitivity or increase it for swing stability.
 
 ⯁ WHY IT’S UNIQUE 
Rather than another oscillator,  Price Heat Meter  translates simple market geometry (rolling extremes) into a readable temperature layer with  time-aware extremes  and a  synchronized gauge . You get a continuously updated sense of stretch, persistence, and potential reversal context—without clutter or overfitting.
Daily Weekly Monthly HLC (بهداد)خطوط مهم روزانه هفتگی ماهانه   This is an indicator that shows the closing lines and the highest and lowest prices for daily, weekly and monthly periods. In addition, we can divide the entire weekly period into several parts.






















