UM Multi MA type, Directional Colors + Flip LabelsSummary
UM Multi MA is a multi–moving average trend overlay supporting SMA, EMA, WMA, HMA, KAMA, DEMA, and TEMA. Each MA is colored by slope direction, displays clean right-side Flip prices, and optionally adds price↔MA fills, bar/candle coloring, and alerts for MA direction changes.
⸻
Description
This indicator plots up to five independently configurable moving averages directly on the price chart. Each MA is colored green when rising and red when falling, based on its current slope.
On the last bar only, an optional right-side label displays the MA’s projected Flip price calculation:
• If the MA is currently green (rising), the label is green and shows
“Flip red @ ”
• If the MA is currently red (falling), the label is red and shows
“Flip green @ ”
The script also supports optional price↔MA fills, optional bar/candle coloring driven by any selected MA, and alerts when MA slope direction changes.
⸻
Features
• Up to five moving averages (MA1–MA5), each with independent Enable, Length, and Type settings
• Supported MA types: SMA, EMA, WMA, HMA, DEMA, TEMA, KAMA
• Directional MA coloring (green rising / red falling)
• Right-side labels (last bar only), indicator at what price MA will flip color
MA# TYPE LEN Flip red/green @ target price
• Optional price↔MA fill (user-selectable MA)
• Green fill when price > selected MA and MA is rising
• Red fill when price < selected MA and MA is falling
• Optional bar/candle coloring driven by any selected MA
• Alerts:
• Dropdown alertconditions (visible in the TradingView alert menu)
• Optional dynamic alert() messages that include MA type and length
⸻
Default Values
• Source: Close
• MA1: Enabled, EMA 8, Right-side label ON
• MA2: Enabled, EMA 21, Right-side label OFF
• MA3: Enabled, EMA 50, Right-side label OFF
• MA4: Enabled, EMA 100, Right-side label OFF
• MA5: Enabled, EMA 200, Right-side label OFF
• Label offset: 10 bars
• Price↔MA fill: OFF
• Fill MA: MA1
• Fill transparency: 90
• Candle coloring: OFF
• Color bars using: MA1
• Bar transparency: 0
• Alerts:
• Dropdown alertconditions ON
• Dynamic alert() messages OFF
• MA1 Bull/Bear alerts enabled by default
• MA2–MA5 alerts disabled by default
⸻
Suggested Uses
• Trend Regime Filtering
Use MA200 or MA100 to define bull vs bear regimes, then MA8 or MA21 for trade timing.
• Flip Target Awareness
Use the right-side Flip label as a quick visual reference for where MA slope direction is projected to change.
• Alignment Confirmation
Enable fills and/or candle coloring using your “decision MA” (commonly MA21 or MA50) to maintain consistency.
• Alerting Workflow
Use dropdown alertconditions for standard alerts.
Enable dynamic alerts only if you want messages that include MA type and length (alert type: Any alert() function call).
• KAMA for Chop Reduction
Try KAMA on MA21 or MA50 to reduce noise while staying responsive in trends.
• Faster MA Options (DEMA / TEMA)
Use DEMA or TEMA on MA8 or MA21 for earlier flips, understanding they are more sensitive in sideways markets.
• Volatility Expansion Awareness
Watch for periods where multiple MAs compress tightly; these often precede volatility or price expansion.
• Trade Execution Ideas
Red → green transitions may be used for entries or add-ons.
Green → red transitions may be used for exits or risk reduction.
• Multi-Timeframe Analysis
The author commonly uses Daily and 6-Hour timeframes together.
• MA Stretching Across Timeframes
If you like an 8-period MA on the Daily, try its longer equivalent on lower timeframes (for example, ~55 on the Hourly).
• Indicator Stacking
Designed to pair well with momentum, volatility, and market-structure indicators.
指标和策略
VWAP Confluence Pro█ OVERVIEW
VWAP Confluence Pro is a high-precision trading indicator that combines VWAP with multiple confirmation filters to generate reliable buy and sell signals. Unlike basic VWAP crossover strategies that produce excessive noise, this indicator requires alignment across six independent conditions before triggering a signal, dramatically reducing false entries while capturing high-probability setups.
█ FEATURES
Multi-Layer Confirmation System
The indicator employs a strict confluence approach requiring all of the following conditions to align:
- VWAP Cross: Price must cross above (buy) or below (sell) the VWAP line
- VWAP Trend: The VWAP itself must be rising for buys or falling for sells, confirming directional bias
- Price Trend: A 20-period moving average filter ensures trades align with the prevailing trend
- Volume Confirmation: Signals only trigger when volume exceeds 1.5x the 20-bar average, indicating institutional participation
- RSI Filter: Buys require RSI between 50-60 (bullish momentum without overbought conditions), sells require 40-50 (bearish momentum without oversold conditions)
- MACD Momentum: MACD must confirm directional bias with the MACD line above the signal line for buys, below for sells
Signal Cooldown Period
A configurable cooldown mechanism (default 10 bars) prevents signal clustering and overtrading by ensuring adequate spacing between alerts. This feature is critical for maintaining discipline and avoiding choppy market conditions.
Visual Elements
- Purple VWAP Line: The cornerstone of the strategy, plotted with high visibility
- Green Up Arrows: Buy signals appear below price candles when all conditions align
- Red Down Arrows: Sell signals appear above price candles when all conditions align
- Blue Trend MA: A semi-transparent moving average provides visual trend context
- Background Shading: Subtle green/red backgrounds indicate when multiple confluence factors are aligned, even without a cross
█ HOW TO USE
Timeframe Selection
This indicator is optimized for intraday trading on 1-minute to 15-minute charts, where VWAP is most effective. It can also be used on hourly charts for swing trade entries or daily charts with appropriate parameter adjustments.
Parameter Optimization
All key parameters are customizable through the indicator settings:
- VWAP Deviation %: Controls sensitivity (default 0.8%). Lower values = stricter signals
- Volume Multiplier: Defines volume threshold (default 1.5x). Higher values = stronger volume confirmation required
- Trend Filter Length: Moving average period (default 20). Adjust based on your timeframe
- Cooldown Period: Minimum bars between signals (default 10). Increase for slower markets
- RSI/MACD Settings: Standard values provided, adjust for specific instruments if needed
Trading Strategy
1 — Wait for a signal arrow to appear (green for buy, red for sell)
2 — Confirm the background shading supports the signal direction
3 — Enter on the close of the signal candle or the open of the next candle
4 — Set stop loss below/above the recent swing low/high or the VWAP line
5 — Take profit at logical resistance/support levels or when opposing confluence develops
Best Practices
- Only take long trades when price is above a rising VWAP
- Only take short trades when price is below a falling VWAP
- Avoid trading during low volume periods (first/last 15 minutes of sessions)
- Use the background shading to gauge overall market bias between signals
- Consider increasing the cooldown period in choppy or range-bound conditions
█ LIMITATIONS
- This indicator is designed for trending markets and will produce fewer signals during consolidation periods
- The strict confluence requirements mean you may miss some valid moves in exchange for higher signal quality
- VWAP resets at the start of each session, making it less reliable on 24-hour markets without session breaks (use anchored VWAP for crypto/forex)
- Requires real-time volume data to function properly, less effective on thinly traded instruments
- Not suitable for scalping strategies requiring rapid entries, as the cooldown mechanism intentionally limits signal frequency
█ NOTES
Signal Quality Over Quantity
This indicator prioritizes accuracy over frequency. You may only see 1-3 signals per session on lower timeframes, but each signal represents a setup where trend, momentum, and volume are all aligned. This approach is designed to keep you out of low-probability trades and focused on the best opportunities.
Customization Encouraged
The default parameters provide a solid foundation, but different instruments and timeframes may benefit from optimization. Test the indicator across various settings to find what works best for your specific trading style and markets.
═════════════════════════════════════════════════════════════════════════
This indicator synthesizes best practices from institutional VWAP trading with momentum confirmation from RSI and MACD. By requiring multiple independent factors to align, it filters out the noise common in single-indicator systems and focuses on setups where probability favors directional moves.
GLD Overlay on GCPlots GLD levels on GC
Uses live GLD + live GC during GLD premarket→after-hours (04:00–20:00 NY, Mon–Fri)
Outside that window, it holds the last ratio from the prior daily close
Updates lines after "min_move"
Draws a grid of GLD $1 levels (±N) mapped into GC space
1of1 Trades Expected Ranges (Friday Close Calculator)Expected Ranges (Friday Close Calculator)
Expected Ranges is a simple, non-plotting calculator designed for weekly market preparation.
It uses the most recent Friday’s daily close as the base price and calculates an expected trading range for the upcoming week.
This indicator is intentionally built as a calculator only — it does not draw lines or zones on the chart. This ensures there is no bleed between symbols and allows traders to convert levels into permanent TradingView drawings (horizontal lines and shaded rectangles) that are stored per symbol in their account.
How It Works
Friday Close is automatically detected from the daily chart.
You input a single value for Expected Weekly Move.
The indicator calculates:
Upper Range = Friday Close + Expected Move
Lower Range = Friday Close − Expected Move
Values are displayed in a clean top-right panel for quick reference.
Smart money PSP with color themesPSP with Color Themes — Price Strength Parity Indicator
PSP with Color Themes is a visual correlation indicator designed to detect Price Strength Parity (PSP) between the current chart symbol and a reference symbol.
It highlights candles where price behavior between two correlated instruments diverges or aligns, which is often used in SMT (Smart Money Technique) and intermarket analysis.
The indicator works directly on the chart and colors candles when a PSP condition is detected, using flexible and customizable color themes.
📌 What Is PSP (Price Strength Parity)?
PSP identifies situations where two correlated assets:
Move in opposite directions → Direct PSP (classic SMT divergence)
Move in the same direction → Inverse PSP (confirmation mode)
Such behavior often precedes:
Reversals
Continuations
Liquidity grabs
Market structure shifts
⚙️ Indicator Inputs
Reference Symbol
Defines the second asset used for comparison (e.g., ETHUSDT vs BTCUSDT).
Purpose:
To detect relative strength or weakness between two correlated markets.
Inverse Correlation Mode
Inverse Correlation Mode (true / false)
Allows switching between divergence-based and confirmation-based analysis.
Color Theme
Available presets:
Green / Red
Blue / Orange
Purple / Yellow
Teal / Pink
Custom
Purpose:
Adapts the indicator visually to different chart styles and backgrounds.
📈 How to Use in Trading
Typical use cases:
SMT divergence detection
Intermarket confirmation
Reversal timing
Liquidity sweep context
SMC / ICT models
Recommended combinations:
Market Structure (BOS / CHoCH)
Fair Value Gaps
Liquidity levels
Session highs /lows
⚠️ Important Notes
PSP is context-based, not a standalone entry system
Best results on correlated markets:
BTC / ETH
Indices (ES / NQ / YM)
FX pairs (EURUSD / DXY)
PowerCandles - FVGThe FVG Body Highlighter is a high-visibility tool designed to identify institutional displacement and price imbalances in real-time. By focusing strictly on the Fair Value Gap (FVG) sequence, it isolates the exact moment "Smart Money" enters the market with enough force to leave an imbalance behind.
Core Functionality
Mechanical Detection: Automatically scans for the 3-candle FVG sequence where the wick of Candle 1 and the wick of Candle 3 fail to meet, leaving a "gap."
Body-Centric Highlighting: Unlike standard box-heavy indicators, this tool colors the entire body of the second candle (the displacement bar). This keeps your chart clean and highlights the force of the move rather than just the area.
Institutional Intent: It filters out noise by only marking candles that create a true structural gap, signaling that a significant buy or sell program has been initiated.
Strategic Use
Trend Confirmation: Use the body highlight as a "green light" that momentum has shifted in your direction after tapping a key institutional level.
Zero-Clutter Mapping: Because it highlights bars rather than drawing boxes into the future, it is perfect for traders who prefer a clean price action chart but want to catch every Fair Value Gap as it forms.
Confluence Entry: An A+ setup occurs when the FVG Body Highlighter triggers as price bounces off a PDH/PDL or Midnight Open level.
SPY Quant ML + Session Filter Strategy [CocoChoco]S&P 500 Quant: Machine Learning & Mean Reversion (Session-Filtered)
Overview
This is a professional-grade quantitative strategy designed specifically for the S&P 500. It combines classical statistical mean reversion (Z-Score) with a modern Machine Learning filter and rigorous institutional-grade risk management.
The strategy is optimized for traders who prioritize high win rates and capital preservation, specifically avoiding the "gap risk" associated with holding positions overnight.
Core Methodology
1. Statistical Entry (The Z-Score Engine)
The strategy identifies "oversold" conditions in a bullish context. It calculates the Z-Score of the price relative to its 20-period Mean (SMA). By default, it looks for a -1.2 Standard Deviation extension, signaling a high-probability "dip" ripe for a snap-back to the mean.
2. Trend & ML Filters
To avoid "catching a falling knife," the strategy uses two layers of confirmation:
Trend Filter: Only takes Long positions when the price is above the 200-period SMA, ensuring we only buy dips in a confirmed uptrend.
ML Correlation Filter: A Machine Learning-inspired module that analyzes the correlation between RSI and Volatility (ATR). It only permits entries when market internal dynamics suggest a reversal is technically "healthy."
3. Institutional Risk Management
This script is built for "safety-first" automation:
Hard Stop Loss: Fixed at 1.5% to protect against sudden market shocks.
Active Trailing: A dual-trigger trailing stop. It activates once the price touches the 20 SMA (The Mean) OR once a trade reaches a 0.50% profit threshold. This ensures near-winners are protected and large runners are captured.
Intraday Circuit Breaker: Includes a Max Daily Drawdown (2%) limit. If hit, the script automatically closes losing positions and halts trading for the day, while allowing winning positions to continue.
Key Features
Session-Specific: Tailored for the US Trading Session (UTC/NY times).
Zero Overnight Risk: Automatically flattens all positions before the market close (16:00 NY Time).
Holiday Intelligence: Hard-coded logic for US Market Holidays and Early Closes (2026–2028), ensuring the bot doesn't get stuck in illiquid holiday markets.
Hourly Entry Cap: Limits entries to one per hour to prevent over-concentration during a single price leg.
How to Use
Timeframe: I suggest you use it on the 5-minute or 1-hour timeframe for optimal results.
Instrument: Designed for the S&P 500, but highly effective on SPY, IVV, and ES (Futures).
Pyramiding: Designed to handle up to 3 concurrent positions, allowing the strategy to scale into a move as the Z-Score deepens.
Automation Ready
This script is fully compatible with webhook-based automation tools. All signals (Entry, SL, Trail, Market Close, and Daily Limit) are clearly labeled in the Alert comments for seamless execution. I haven't tasted it though. This is not financial advice. Please perform your own tests and manage your risk.
Disclaimer
Past performance does not guarantee future results. This script is a tool for quantitative analysis and should be used as part of a broader diversified trading plan.
Volume Weighted Intra Bar LR CorrelationThis indicator analyzes market character by providing a detailed
view of correlation. It applies a Linear Regression model to
intra-bar price action, dissecting the total correlation of
each bar into three distinct components.
Key Features:
1. **Three-Component Correlation Decomposition:** The indicator
separates correlation based on the 'Estimate Bar Statistics' option.
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
correlation based on the selected `Source` (this results
mainly in 'Trend' and 'Residual' correlation).
- **Decomposition Mode (`Estimate Bar Statistics` = ON):** The
indicator uses a statistical model ('Estimator') to
calculate *within-bar* correlation.
(Assumption: In this mode, the `Source` input is
**ignored**, and an estimated mean for each bar is used
instead).
This separates correlation into:
- **Trend Correlation (Green/Red):** Correlation explained by the
regression's slope (Directional Alignment).
- **Residual Correlation (Yellow):** Correlation from price
oscillating around the regression line (Mean-Reversion/Cointegration).
- **Within-Bar Correlation (Blue):** Correlation from the
high-low range of each bar (Microstructure/Noise).
2. **Visual Decomposition Logic:** Total Correlation is the
primary metric displayed. Since Correlation Coefficients are not
linearly additive, this indicator plots the *exact* Total
Correlation and partitions the area underneath based on the
Covariance Ratio. This ensures the displayed total correlation
remains mathematically accurate while showing relative composition.
3. **Dual Display Modes:** The indicator offers two modes to
visualize this decomposition:
- **Absolute Mode:** Displays the *total* correlation as a
stacked area chart, partitioned by the ratio of
the three components.
- **Relative Mode:** Displays the direct *energy ratio*
(proportion) of each component relative to the total (0-1),
ideal for identifying the dominant market character.
4. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
calculates an **Exponential Regression Curve** (log-space),
making the analysis suitable for growth assets.
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all regression and correlation calculations.
5. **Correlation Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (highs and lows) in
the *total* correlation line. (Note: This is only visible
in 'Absolute Mode').
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
6. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Correlation Lines:** The correlation lines can be
calculated on a higher timeframe, with standard options
to handle gaps (`Fill Gaps`) and prevent repainting
(`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
8. **Integrated Alerts:** Includes comprehensive alerts for:
- Correlation magnitude (High Positive / High Inverse).
- Correlation character changes/emerging/fading.
- Total Correlation pivot (High/Low) detection.
**Caution! Real-Time Data Behavior (Intra-Bar Repainting)**
This indicator uses high-resolution intra-bar data. As a result, the
values on the **current, unclosed bar** (the real-time bar) will
update dynamically as new intra-bar data arrives. This behavior is
normal and necessary for this type of analysis. Signals should only
be considered final **after the main chart bar has closed.**
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Volume Weighted CorrelationThis indicator analyzes the structural relationship between two
assets by decomposing the Total Correlation into two distinct,
interpretable components: "Between-Bar" (Inter-Bar) and
"Within-Bar" (Intra-Bar) correlation.
Key Features:
1. **Hybrid Copula Estimator:** Unlike standard correlation, which
often fails on High/Low range data, this indicator fuses two
metrics to ensure mathematical rigor:
- **Magnitude:** Derived from Rogers-Satchell Volatility.
- **Direction:** Derived from Log-Returns.
This allows for precise correlation estimates even on intra-bar data.
2. **Two-Component Correlation Decomposition:** The indicator
separates correlation based on the 'Estimate Bar Statistics' option.
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
correlation based on the selected `Source` (Close-to-Close).
- **Decomposition Mode (`Estimate Bar Statistics` = ON):** The
indicator uses a statistical model ('Estimator') to
calculate *within-bar* correlation.
This separates the relationship into:
- **Between-Bar Correlation (Green/Red):** Correlation of the
price paths (means). Indicates if the macro movements of the
assets are aligned (Inter-Bar correlation).
- **Within-Bar Correlation (Blue):** Correlation of the
microstructure (Intra-Bar volatility/noise).
3. **Visual Decomposition Logic:** Total Correlation is the
primary metric displayed. Since Correlation Coefficients are not
linearly additive, this indicator calculates the *exact* Total
Correlation and partitions the area/ratios based on the additive
Covariance Decomposition (`CovTot = CovBtw + CovWtn`). This
ensures the displayed total correlation remains mathematically accurate.
4. **Dual Display Modes:** The indicator offers two modes to
visualize this decomposition:
- **Absolute Mode:** Displays the *Total Correlation* as the main
line, with the background filled by the stacked components
(Between vs. Within). Shows the *magnitude* of the relationship.
- **Relative Mode:** Displays the **Energy Ratios** (-1.0 to 1.0)
of each component using L1-Normalization. This isolates the
*structure/quality* of the relationship (e.g., "Is the correlation
driven by price movement or just by volatility coupling?").
5. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
calculates an **Exponential Regression Curve** (log-space),
creating a constant percentage variance environment. Essential
for comparing assets with different scales (e.g., BTC vs EURUSD).
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all mean and covariance calculations.
6. **Correlation Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (highs and lows) in
the *Total Correlation* line. (Note: This is only visible
in 'Absolute Mode').
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
7. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
8. **Multi-Timeframe (MTF) Capability:**
- **MTF Correlation Lines:** The correlation lines can be
calculated on a higher timeframe, with standard options
to handle gaps (`Fill Gaps`) and prevent repainting
(`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
9. **Integrated Alerts:** Includes comprehensive alerts for:
- Correlation magnitude (High Positive / High Inverse).
- Character changes (Inter-Bar vs. Intra-Bar dominance).
- Total Correlation pivot (High/Low) detection.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Moon Phases Final Moon Phases Visualizer DescriptionThis script is a comprehensive tool for traders who incorporate lunar cycles into their analysis. Unlike many basic indicators, this one is optimized for Pine Script v6 and utilizes a precise astronomical calculation based on the synodic month cycle ($29.53059$ days).The indicator helps identify potential "turn window" periods often associated with New Moons and Full Moons in financial astrology and cyclical analysis.Key FeaturesDual Visualization: Displays a smooth lunar cycle oscillator ($0-100\%$) in a separate pane while simultaneously plotting phase labels directly on the price chart.Smart Overlays: Using the latest force_overlay technology, the script keeps your price scale clean while showing Moon emojis (🌕/🌑) and an info table in the main area.Real-time Tracking: An elegant dashboard in the top-right corner shows the current phase percentage and status at a glance.Full Moon & New Moon Alerts: Visual signals are generated at the exact peak of the cycle, making it easy to spot historical correlations with price reversals or volatility spikes.How to read it:🌕 Full Moon (50%): Often associated with high volatility or local price extremes.🌑 New Moon (0%/100%): Often marks the beginning of a new cycle or a potential trend exhaustion.The Curve: Watch the oscillator to anticipate approaching lunar events before they happen.Technical DetailsThe calculation is anchored to a high-precision historical New Moon timestamp (January 6, 2000), ensuring the phase accuracy remains consistent even when scrolling back through years of historical data.
Disclaimer: This indicator is for educational and entertainment purposes only. Lunar cycles are a part of financial astrology and cyclical analysis, but they should not be used as a standalone signal for trading. Past performance does not guarantee future results. Always use proper risk management and combine this tool with other technical or fundamental analysis methods. Not financial advice.
Pair Correlation Oscillator (Overlay)Pair Correlation Oscillator (Overlay)
Overview
This open-source TradingView indicator computes the Pearson correlation coefficient between the chart's instrument (Ticker A) and a user-selected instrument (Ticker B). The correlation is displayed as an oscillator within the range −1..+1:
+1 — perfect positive correlation
0 — no linear correlation
−1 — perfect inverse correlation
Key features
Default window: 500 bars (configurable)
Option to compute correlation on log returns (recommended for comparing different instruments)
Option to exclude the current unfinished bar (use previous completed bars only)
Overlaid line + histogram columns for immediate visual interpretation
Alert examples included (commented out) for high correlation thresholds
Inputs
Ticker 2 — the other instrument to compare against (Ticker 1 is always the chart symbol)
Correlation length — window in bars for the rolling correlation (default 500)
Use log returns — converts price series to log returns before correlation (recommended)
Exclude current bar — shift series by 1 to use only completed bars
How to use
Add the script to your chart and set Ticker 2 to the instrument you want to correlate with the chart symbol.
Choose Use log returns = true for price-to-price comparisons (it removes level bias).
Optionally enable Exclude current bar for more stable signals if you do not want the live unfinished bar affecting results.
Use the line/histogram and label shown on the chart to inspect correlation in real time.
Limitations & notes
Correlation measures linear relationship over the chosen window — non-linear relationships won't be captured.
Very different tickers (e.g., price scales, very low liquidity) may show noisy correlation; use returns and longer windows in such cases.
This indicator is for information/analysis only — not trading advice.
Solar Flares 2025 X & M Class This indicator plots vertical lines on your chart at the exact timestamps of the strongest solar flares recorded in 2025.
X-class flares are shown in light yellow
M-class flares are shown in light blue
All timestamps are based on the maximum intensity time of each flare (default timezone: UTC, adjustable in settings).
Features
Toggle X-class and M-class flares independently
Adjustable line width
Uses precise intraday timestamps (not daily approximations)
Designed as a timing overlay for market cycle research and event clustering
This tool is intended for exploratory and correlation analysis, allowing traders and researchers to visually compare periods of heightened solar activity with market behavior.
Data is hard-coded from the 2025 top solar flare catalog and loads once on script initialization for performance.
Adaptive MTF EMA (auto TF)Adaptive MTF EMA (Auto TF) — Mid & Slow EMA that adjusts with chart timeframe
by @theadventuredan
This indicator plots two Higher-Timeframe EMAs (a Mid and a Slow EMA) on your current chart — but unlike normal MTF EMA scripts, the higher timeframes adapt automatically when you change the chart timeframe.
Instead of having to reconfigure TFs every time you switch from 5m to 15m to 1h, the indicator keeps the same “relationship” by using timeframe multipliers:
Mid TF = current chart TF × Mid Multiplier
Slow TF = current chart TF × Slow Multiplier
Example (default multipliers: 3× and 12×):
On 5m: Mid = 15m, Slow = 60m
On 15m: Mid = 45m, Slow = 180m (3h)
On 1h: Mid = 3h, Slow = 12h
This is especially useful if you use MTF EMA alignment as a trend filter (e.g., Mid EMA above Slow EMA = bullish bias).
How it works
The script reads your current chart timeframe using timeframe.in_seconds(timeframe.period) and converts it into minutes.
It calculates the adaptive MTF targets:
midMin = curMin × midMult
slowMin = curMin × slowMult
It requests the EMA from those higher timeframes via request.security() and plots them on your chart.
Optional:
A label can display the currently calculated Mid and Slow TFs (in minutes).
Inputs
EMA Length: EMA period (default 50)
Mid TF Multiplier: how many times higher the mid timeframe should be (default 3)
Slow TF Multiplier: how many times higher the slow timeframe should be (default 12)
Use confirmed HTF values (safer):
When enabled, the script uses the previous HTF EMA value (EMA ) to reduce behavior caused by partially formed higher-timeframe candles.
This may lag slightly but is often preferred for signal consistency.
Show TF label: shows a label with the current adaptive TFs
Notes / Limitations
Because the higher timeframe is derived by multiplication, some results may produce less common timeframes (e.g., 45m or 12h). This is expected.
MTF values depend on request.security() and will always reflect higher-timeframe candle logic (especially during an unclosed HTF candle). If you want less “in-progress candle” behavior, enable Use confirmed HTF values.
This is an EMA overlay tool — not a standalone buy/sell system.
Suggested usage
Trend bias filter: Mid EMA > Slow EMA = bullish bias, Mid < Slow = bearish bias
Entry alignment: use the adaptive EMAs as “context” while trading lower TF setups
Dynamic market structure: switch timeframes while keeping consistent “one step higher / two steps higher” EMA reference
GAYBEAR SWING Clean v6 mobile-safeHow to Use Sniper Swing — Clean v6 (Mobile-Safe)
Purpose
Sniper Swing — Clean v6 is a trend-aligned swing indicator designed to help traders identify high-probability entries and exits while minimizing noise. It works best in trending or gently rotating markets and is optimized for mobile charting.
A. Chart Setup
Recommended:
Timeframes: 5m–1h for active trading, 4h–Daily for swing trading
Instruments: Liquid equities, indices, and major ETFs
The indicator plots:
SMA 9 (entry trigger)
EMA 20 (trend and momentum)
Optional SMA 50 (higher-timeframe bias)
B. Buy (Long) Signal — How to Act
A BUY label appears when price reclaims short-term structure.
How to trade it:
Wait for price to cross above the SMA 9
Confirm EMA 20 is rising (and above SMA 50 if enabled)
Optional: Confirm price is closing above EMA 20
Enter on:
The close of the signal candle, or
A minor pullback that holds above SMA 9
Best context:
Higher lows
EMA 20 sloping upward
RSI not overbought
C. Sell / Short Signal — How to Act
The indicator offers two sell modes:
1) CrossUnder SMA 9 (Fast Exit)
Use in strong trends or fast markets
Exit longs or enter shorts when price loses SMA 9
2) AccuSell (Structure-Based)
Use in choppy or topping markets
Requires:
Loss of SMA 9 plus
Structural weakness (lower highs/lows, RSI < 50, or EMA 20 turning down)
How to trade it:
Exit longs when sell label appears
Aggressive traders may enter short positions
Conservative traders wait for follow-through
D. RSI Arrows — Context Only
OB arrows warn of potential exhaustion
OS arrows suggest relief or bounce zones
RSI does not trigger trades — it informs patience and risk
E. Position Coloring & State
Green candles = long bias
Purple candles = short bias
Background tint reinforces short exposure
Coloring persists until the opposite signal prints
This helps visually manage trades without staring at labels.
F. Risk Management (User-Defined)
The indicator does not manage stops or targets.
Common approaches:
Stop below recent swing low (longs)
Stop above recent swing high (shorts)
Scale partials near RSI OB/OS zones
G. When Not to Use It
Extremely low-volume chop
News-driven spikes
Range-bound micro consolidations
2. Explain It Like You’re 10 👶📈
Imagine the chart is a road, and the price is a car.
🟢 Green = Go
When the car drives above the yellow line, that means it’s probably going up.
The indicator says:
“Okay, the car looks like it wants to go forward. You can hop in.”
That’s a BUY.
🟣 Purple = Uh-Oh
When the car falls below the yellow line, it might start going down.
The indicator says:
“Careful… the car is slowing down or turning around.”
That’s a SELL.
🔵 Blue Line = Wind Direction
The blue line shows which way the wind is blowing.
If the wind blows up → going up is easier
If the wind blows down → going down is easier
You want to go with the wind, not fight it.
🔺 Red & Green Arrows = Too Fast / Too Slow
Red arrow = “The car is going too fast, might need a break”
Green arrow = “The car is tired, might bounce”
They don’t tell you to go or stop — they just say “pay attention.”
🎨 Colors Help You Remember
Green bars = you’re riding up
Purple bars = you’re riding down
Gray = nothing exciting happening
🚨 Important Rule
This tool doesn’t drive the car for you.
It just says:
“Now might be a good time.”
You still decide when to get in and when to get out
Vegas Triple Tunnel (CGYJ Pro)维加斯三通道(Vegas Tunnel)
指标简介
维加斯三通道是由职业交易员Vegas开发的经典趋势跟踪系统,通过三组EMA均线构建短期、中期、长期三层通道,帮助交易者识别趋势方向和最佳入场时机。
通道结构
通道均线用途短期EMA 21 / 26短线趋势、快速入场中期EMA 144 / 169核心趋势判断、标准入场长期EMA 576 / 676大趋势方向、重要支撑阻力
使用方法
多头排列:短期通道 > 中期通道 > 长期通道,逢回调做多
空头排列:短期通道 < 中期通道 < 长期通道,逢反弹做空
回调入场:价格回踩通道后反弹是最佳入场点
适用范围
适用于所有品种和周期,H1、H4、日线效果最佳。
Vegas Triple Tunnel
Overview
The Vegas Triple Tunnel is a classic trend-following system developed by professional trader Vegas. It uses three pairs of EMA lines to construct short-term, medium-term, and long-term channels, helping traders identify trend direction and optimal entry points.
Channel Structure
Short-term Channel: EMA 21 / 26 - For quick trend identification and short-term entries
Medium-term Channel: EMA 144 / 169 - Core trend judgment and standard entries
Long-term Channel: EMA 576 / 676 - Major trend direction and key support/resistance levels
How to Use
Bullish Alignment: Short > Medium > Long channel, look for pullback entries to go long
Bearish Alignment: Short < Medium < Long channel, look for bounce entries to go short
Best Entry: Price pullback to channel and bounce provides optimal entry opportunities
Applicable Markets
Works on all instruments and timeframes. Best results on H1, H4, and Daily charts.
Market Internals SPY[TP]# Market Internals SPY Dashboard - TradingView Publication
## 📊 Overview
**Market Internals SPY ** is a comprehensive multi-factor market sentiment dashboard designed specifically for SPY (S&P 500 ETF) traders. This indicator combines four powerful market breadth signals into one easy-to-read interface, helping traders identify high-probability setups and avoid false breakouts.
---
## 🎯 What Makes This Indicator Unique?
Unlike single-indicator tools, this dashboard synthesizes **multiple market internals** to provide confluence-based trading signals:
- **CPR (Central Pivot Range)** - Institutional pivot levels
- **VIX (Volatility Index)** - Fear gauge
- **Put/Call Ratio** - Options sentiment with dynamic crossover alerts
- ** USI:ADD (Advance/Decline Line)** - Market breadth strength
All presented in a clean, real-time dashboard with visual alerts directly on your chart.
---
## 📈 Key Features
### 1. **Static Daily CPR Levels**
- Automatically plots Top CPR, Pivot, and Bottom CPR
- Levels remain fixed throughout the trading day (no repainting)
- **Trend Bias Indicator**: Green = Current Pivot > Previous Pivot (Bullish structure)
### 2. **Put/Call Ratio Crossover System**
- 10-period SMA smoothing for cleaner signals
- **Bullish Signal** (Green background): Put/Call crosses below SMA
- Indicates decreasing hedging activity (bullish)
- **Bearish Signal** (Red background): Put/Call crosses above SMA
- Indicates increasing hedging activity (bearish)
### 3. **Price/Breadth Divergence Detection**
- **Yellow Candles**: Highlight when price and USI:ADD diverge
- Price rising but USI:ADD falling = Potential reversal
- Price falling but USI:ADD rising = Possible bottom
### 4. **Comprehensive Real-Time Dashboard**
A top-right table displaying:
- **CPR Trend Bias**: Bullish/Bearish structure
- **VIX Level**: Current value + directional bias
- **Put/Call Ratio**: Live value + trend arrows
- **AD Line**: Breadth strength with directional indicators
### 5. **Intelligent Bar Coloring**
- **Green bars**: USI:ADD rising (breadth improving)
- **Red bars**: USI:ADD falling (breadth deteriorating)
- **Yellow bars**: Divergence warning (potential reversal)
---
## 🔧 How to Use
### Setup Instructions
1. **Add to Chart**: Apply to SPY on your preferred intraday timeframe (5m, 15m, 30m, 1H)
2. **Configure Symbols** (if needed):
- Default settings work for most platforms
- If "PCC" doesn't load, try: `PCCR`, `INDEX:PCC`, `USI:PCC`, or `CBOE:PCC`
- Ensure you have market internals data access ( USI:ADD , VIX)
### Trading Signals
#### 🟢 **Bullish Confluence** (High-Probability Long Setup)
- CPR Trend = BULLISH
- VIX falling or low (<20)
- Put/Call below SMA (or green background crossover)
- USI:ADD rising (green bars)
- **Entry**: Look for bullish price action at support levels
#### 🔴 **Bearish Confluence** (High-Probability Short Setup)
- CPR Trend = BEARISH
- VIX rising or elevated (>25)
- Put/Call above SMA (or red background crossover)
- USI:ADD falling (red bars)
- **Entry**: Look for bearish rejection at resistance
#### ⚠️ **Divergence Warning**
- Yellow candles indicate mismatch between price and breadth
- Consider profit-taking or reversals when divergence appears at extremes
### Best Practices
- **Multi-Timeframe Confirmation**: Check higher timeframes (4H, Daily) for trend alignment
- **Volume Confirmation**: Combine with volume analysis for stronger signals
- **Risk Management**: Always use stop losses; no indicator is 100% accurate
- **News Awareness**: Be cautious around major economic releases
---
## 📚 Understanding the Components
### CPR (Central Pivot Range)
Traditional floor trader pivot levels calculated from previous day's High, Low, Close:
- **Pivot (PP)** = (High + Low + Close) / 3
- **Top CPR (TC)** = (PP - BC) + PP
- **Bottom CPR (BC)** = (High + Low) / 2
### VIX (Volatility Index)
- **< 15**: Complacency, potential for sudden moves
- **15-20**: Normal conditions
- **20-30**: Elevated uncertainty
- **> 30**: High fear, potential bottoming process
### Put/Call Ratio
- **< 0.7**: Excessive optimism (contrarian bearish)
- **0.7-1.0**: Balanced sentiment
- **> 1.0**: Defensive positioning (contrarian bullish potential)
### USI:ADD (NYSE Advance/Decline)
- **> 0**: More stocks advancing than declining (bullish breadth)
- **< 0**: More stocks declining than advancing (bearish breadth)
- **Extreme readings** (±2000+): Potential exhaustion
---
## ⚙️ Customization Options
### Input Parameters
- **AD Line Symbol**: Default "ADD" (try "ADVN" or "NYSE:ADD" if needed)
- **VIX Symbol**: Default "VIX" (try "CBOE:VIX" if needed)
- **Put/Call Symbol**: Default "PCC" (alternatives listed above)
### Color Scheme
- Blue: CPR levels
- Purple: Pivot point
- Green: Bullish signals/backgrounds
- Red: Bearish signals/backgrounds
- Yellow: Divergence warnings
---
## 💡 Pro Tips
1. **Wait for Confluence**: Don't trade on a single indicator - wait for 3+ signals to align
2. **Use CPR as Dynamic S/R**: Price tends to react at TC and BC levels
3. **Watch the Crossovers**: Put/Call crossovers often precede significant moves
4. **Monitor Divergences**: Yellow candles at key levels are high-value signals
5. **Combine with Price Action**: This tool confirms direction - you still need entry triggers
---
## ⚠️ Limitations & Disclaimers
- Requires **premium data** for USI:ADD and VIX on most platforms
- Best suited for **intraday SPY trading** (may adapt to other indices)
- **Not a standalone system** - use with proper risk management
- Past performance does not guarantee future results
- Always backtest before live trading
---
## 🎓 Example Scenario
**Bullish Setup**:
- 9:45 AM EST: Price pulls back to Bottom CPR
- Dashboard shows: ✅ Bullish CPR Bias, ✅ VIX 16.5 (falling), ✅ Put/Call 0.68 ⬇️ Bull, ✅ USI:ADD +850 ⬆️
- Green background flashes (Put/Call crossunder)
- **Action**: Enter long at BC with stop below TC of previous day
---
## 📊 Ideal Timeframes
- **Primary**: 5-minute, 15-minute (day trading)
- **Secondary**: 30-minute, 1-hour (swing entries)
- **Confirmation**: Daily chart for trend context
---
## 🔄 Updates & Support
This indicator is actively maintained. If you encounter symbol loading issues:
1. Check your data provider includes market internals
2. Try alternative symbols in inputs
3. Ensure you're using a premium TradingView plan (if required)
---
## 📝 Version Information
- **Version**: 5 (Pine Script v5)
- **Type**: Overlay Indicator
- **Author**: tapaspattanaik
- **Category**: Market Internals / Breadth Analysis
---
## 🏆 Final Thoughts
This indicator is designed for **serious traders** who understand that edge comes from confluence, not single signals. By combining institutional pivot levels with real-time market internals, you gain a significant advantage in reading market sentiment and timing entries with precision.
**Remember**: The best trades happen when multiple independent factors align. Use this dashboard to find those moments.
---
## 📌 How to Add This Indicator
1. Open TradingView and navigate to Pine Editor
2. Copy the complete script code
3. Click "Add to Chart"
4. Configure symbols if needed (see Setup Instructions above)
5. Adjust position/colors to your preference
---
**Happy Trading! 📈**
*This indicator is for educational purposes. Always manage risk appropriately and never risk more than you can afford to lose.*
---
### Tags
`#SPY` `#MarketInternals` `#CPR` `#VIX` `#PutCallRatio` `#BreadthAnalysis` `#DayTrading` `#SwingTrading` `#TechnicalAnalysis` `#PivotPoints`
ATR DEEPATR Bottom Indicator:
ATR Bottom is a dynamic support level based on market volatility (ATR) and a long-term moving average. It helps identify a price zone where downside risk significantly increases.
Unlike static levels, this indicator adapts to current market volatility and adjusts as market conditions change.
How it works:
Calculated using a moving average and ATR
The level represents the difference between average price and volatility
Always plotted below price and updates dynamically
Not a standalone entry signal
Interpretation:
Price above the line — market remains stable
Price touching the line — potential reaction or slowdown zone
Close below the line — sign of scenario shift and increased bearish pressure
Important:
Does not predict exact market bottoms
Designed for scenario-based analysis
Best used in combination with other analytical tools
PowerLevels - Key Daily LevelsThe Institutional Levels standalone indicator plots the following key price and volume levels directly on your chart:
PDH & PDL (Previous Day High/Low): Displays the high and low of the prior session using time-anchored logic to ensure accuracy across the weekend gap.
POC (Point of Control): The price level where the most volume was traded during the previous New York RTH session.
VAH & VAL (Value Area High/Low): Marks the boundaries of the price range where 70% of the previous day's volume took place.
Settlement: The official previous-day closing price as determined by the CME exchange.
Midnight Open: A horizontal line marking the opening price at 12:00 AM New York time for the current session.
NDOG (New Day Opening Gap): Automated boxes highlighting the gap between the previous day's close and the current day's open, including a dashed midline.
NWOG (New Week Opening Gap): Automated boxes highlighting the gap between Friday’s close and Sunday’s open, including a dashed midline.
Midnight V-Line: A vertical separator marking each new daily session to maintain a clear visual narrative.
ROC-WMA bull bear indicatorROC-Weighted MA Oscillator
based on Seequant indicator
The ROC-Weighted MA Oscillator (ROCWMA) is a momentum-driven oscillator designed to expose hidden acceleration and deceleration phases in price action by dynamically weighting a moving average with the normalized Rate of Change (ROC).
Instead of treating all price deviations equally, this indicator amplifies meaningful moves and suppresses low-energy noise, making it particularly effective in scalping, intraday trading, and momentum reversals.
🔧 Core Concept
A base moving average (SMA, EMA, TEMA, DEMA, HMA, ALMA, etc.)
Weighted by normalized ROC
Transformed into a Z-score oscillator for comparability across assets
Smoothed with a signal line for timing precision
Result: a context-aware oscillator that adapts to market intensity.
📊 What the Oscillator Shows
Bullish momentum when histogram is positive and expanding
Bearish momentum when histogram is negative and expanding
Neutral zone to filter chop and avoid over-trading
Automatic color logic to highlight regime changes
Optional candle coloring reflects the active momentum state.
🎯 Signal-Based Price Markers (Advanced Feature)
This script includes price-chart markers when:
The signal line retraces to X% of the maximum oscillator bar of the current momentum phase
AND the signal slope confirms exhaustion (rising or falling)
Key characteristics:
Adaptive thresholds (relative, not fixed)
Separate logic for bullish and bearish phases
Reset on each neutral-zone transition
Configurable number of markers per momentum cycle
This makes the indicator particularly useful for:
Pullback entries
Momentum fading
Timing partial exits
⚙️ Customization
Fully adjustable ROC length, MA type, signal length
Neutral zone threshold control
Multiple color schemes
Optional candle coloring
Adaptive signal-to-oscillator percentage logic
🧠 Best Use Cases
Scalping (M1–M5)
Intraday momentum confirmation
Pullback and exhaustion detection
Cross-asset trading (FX, indices, crypto, metals)
ROCWMA is not a lagging oscillator.
It is a momentum intensity detector built to reveal when price moves matter.
PowerDays - Day of the Week HUDDescription: Midnight HUD & Daily Session Dividers
This indicator is designed to provide a clean, "Heads-Up Display" (HUD) for daily session tracking. It solves the common problem of cluttered charts by pinning the days of the week to the top of the chart window in a perfectly horizontal line, ensuring they remain visible and aligned regardless of price volatility or vertical scrolling.
Key Features:
Strict Midnight Dividers: Unlike standard "New Day" indicators that trigger at the exchange open (which can be 6:00 PM for some futures or forex pairs), this indicator plots a vertical dashed line at exactly 00:00 based on your chart's time zone.
Centered HUD Labels: Days of the week (MONDAY, TUESDAY, etc.) are plotted in a level horizontal row at the top of the pane. Labels are mathematically centered between midnight dividers to provide a clear visual of the current trading day’s range.
"Error-Proof" Architecture: Built using primitive plotting methods to avoid common Pine Script "Undeclared Identifier" errors, ensuring high compatibility across different TradingView versions and devices.
Fully Customizable: Includes a built-in color picker to adjust the Royal Blue labels and session dividers to match your specific chart theme.
Weekend Highs & Lows (BTC)Weekend highs and lows are generally taken, this indicator will help get stats for that






















