ES & NQ Daily Levels -- Paste-In Support/Resistance MapperThis Daily Levels script is a manual, paste-in mapping tool. Paste a list of price levels into the settings and it draws them on your chart as clean lines and shaded zones with labels. It does not calculate signals or repaint — it simply renders the levels you enter.
Works on any symbol — ES, NQ, SPY, SPX, stocks, futures, forex, and crypto. Just paste levels that match that instrument's price.
Leave the box blank and it shows a few sample reference levels around current price (clearly tagged "sample", 10 points apart by default) so you can see how it works on any chart. The samples auto-hide the moment you paste your own levels. (The 10-point default spacing suits ES/NQ; for other instruments set the spacing to fit, or set it to 0 for auto.)
WHAT IT DRAWS
• Single prices → horizontal lines with labels
• Ranges (e.g. 5200-5205) → shaded zones
• Section groups you can label: Resistances, Supports, and special groups (Backtest, Add, Breakdown, Short)
• Tag any level "(major)" and it renders thicker
DYNAMIC S/R FLIP (optional)
When enabled, each level you paste under Supports/Resistances is colored by where price is right now:
• Price above the level → acts as support (green, "S")
• Price below the level → acts as resistance (red, "R")
• Price inside a zone → neutral / in-play (yellow)
Turn it off to keep the exact section labels you pasted.
HOW TO USE
1. Add the indicator to your chart.
2. Open its settings → "PASTE YOUR DAILY LEVELS HERE".
3. Paste your levels, one section per line, for example:
Resistances: 5210, 5218 (major), 5225-5228
Supports: 5188, 5175 (major)
4. Lines, zones, and labels draw automatically. Colors, widths, spacing, and label styling are all configurable.
NOTE
The sample levels are auto-generated placeholders for demonstration only — they are not recommended levels and should not be used for trading. This tool does not generate, suggest, or predict levels; it only displays the ones you enter.
For educational purposes only. This is not financial advice. Indicador

Indicador

SPY/SPX Expected Move + Session Levels📊 Expected Move + Session Levels (SPY / SPX)
Plots the day's expected move band plus the key session levels — automatic, refreshed daily before the open, nothing to enter or maintain.
🔹 Draws: Expected Move High/Low (the one-standard-deviation daily range implied by options pricing, anchored at the prior close), Prior Day High/Low, and Overnight High/Low (from the ES futures overnight session, rescaled to your chart). Optional shaded band and info table.
⚙️ Settings: every level toggles on/off individually; colors, line width, and label size are adjustable. The overnight source, session window, and IV index can be changed, and setting Horizon to 5 with VIX approximates the weekly move. Best on intraday timeframes.
⚠️ Note: the expected move is a statistical estimate, not a boundary — price is expected to close inside the band roughly two days out of three, and beyond it roughly one in three. Treat the edges as context, not walls; the market will go where it chooses. All levels are built from CBOE volatility indices, daily session data, and CME ES futures. Informational only, not trading advice. Indicador

[Viprasol] Real Relative StrengthOverview
This indicator is based on the open-source "Real Relative Strength" (RRS) concept, which measures how an asset is performing against a benchmark after normalising for volatility. The original plots ATR-normalised relative momentum versus a benchmark (e.g. SPY) with zero-cross arrows and strong/weak zones. This version keeps that calculation and adds RRS/price divergence detection, a second-benchmark agreement filter, a signal cooldown, an RRS acceleration read, and a compact dashboard.
How It Works
Real Relative Strength (from original concept):
Relative momentum = (asset momentum − benchmark momentum) / average ATR × multiplier, where momentum is close − close for both the asset and the benchmark, and the divisor is the average of the asset and benchmark ATR. The result is smoothed with an EMA. Positive = the asset is outperforming the benchmark on a volatility-adjusted basis; negative = underperforming. Strong/weak zones mark RRS beyond a configurable level.
Divergence (new):
Using pivots on the smoothed RRS, a bearish divergence is flagged when RRS makes a lower pivot high while price makes a higher high; bullish when RRS makes a higher pivot low while price makes a lower low.
Second-Benchmark Agreement (new):
Optionally compute RRS against a second benchmark and only confirm a zero-cross when both agree in sign — a confluence filter against single-benchmark noise.
Signal Cooldown (new):
A minimum bar gap between confirmed zero-cross signals to prevent clustering.
RRS Acceleration (new):
The bar-to-bar change in smoothed RRS, shown as a rising/falling momentum read in the dashboard.
What Is Original (Viprasol Additions)
1. RRS/price divergence detection (regular bullish and bearish).
2. Optional second-benchmark agreement filter on zero-cross signals.
3. Signal cooldown.
4. RRS acceleration (momentum-of-RRS) state.
5. Compact relative-strength dashboard.
Key Features
From the Original:
- ATR-normalised relative strength vs a benchmark
- EMA smoothing, zero-cross arrows, strong/weak zones, extreme background tint
Added in This Version (Viprasol):
- Divergence detection, dual-benchmark agreement, cooldown, acceleration read, dashboard
- Six alerts with dynamic {{ticker}}/{{close}}/{{interval}} messages
How to Use
1. Set the benchmark to match your asset class (SPY/QQQ stocks, IWM small-caps, BTCUSD crypto).
2. Above zero (aqua/green area) = outperforming; below zero (red area) = underperforming.
3. Zero-cross arrows mark fresh shifts; circles mark divergences; the strong/weak zones flag standout strength.
Recommended Starting Points:
- Intraday (15m-1H): Length 10-14
- Swing (Daily/4H): Length 14-20
- Use dual-benchmark agreement for higher-conviction crosses
These are starting points only — backtest and adjust before trading live.
Settings
Core: benchmark symbol, momentum length, ATR multiplier, RRS smoothing.
Confluence & Filters: 2nd-benchmark agreement (+ symbol), signal cooldown, strong/weak zone level.
Divergence: detect divergence toggle, pivot length.
Visuals: zero-cross arrows, RRS line, RRS area.
Dashboard: toggle and position.
Alerts
1. Bullish Cross — now outperforming the benchmark
2. Bearish Cross — now underperforming the benchmark
3. Strong Outperformance — RRS beyond the strong level
4. Strong Underperformance — RRS below the weak level
5. Bullish Divergence — RRS/price bullish divergence
6. Bearish Divergence — RRS/price bearish divergence
All alerts include {{ticker}}, {{close}}, and {{interval}}.
Limitations & Disclaimer
- RRS uses request.security for the benchmark; benchmark data quality and session alignment affect readings, especially across asset classes/exchanges.
- Divergence uses confirmed pivots, which lag by the pivot length.
- Relative strength shows leadership, not absolute direction — a rising RRS in a falling market only means the asset is falling less.
- Past performance does not guarantee future results. This indicator is for educational purposes only and is not financial advice. Always use proper risk management and test on historical data before trading live.
Credits & Attribution
Based on the open-source "Real Relative Strength" concept (community / SMB-style), which provided the ATR-normalised relative-momentum calculation, EMA smoothing, zero-cross signals, and strong/weak zones. Added by Viprasol: RRS/price divergence detection, optional second-benchmark agreement, signal cooldown, RRS acceleration, and the dashboard.
Published open-source per TradingView House Rules.
Indicador

INDEX Dashboard + Round Number Magnet**INDEX Dashboard + Round Number Magnet**
A dual-purpose indicator that displays a real-time index dashboard and alerts you when price is approaching or pinning a key round number level.
**Dashboard**
Shows a 4x3 grid of the major US indices across Cash, Futures, and ETF categories — DowJones, S&P500, Nasdaq, and Russell 2000. Each cell is color-coded green/red based on the day's percentage change, with intensity scaling to the size of the move. The leading index in each row is marked with a ★. VIX is displayed in the top corner with color-coded risk levels (green below 15, orange below 20, red above).
**Round Number Magnet**
Active on SPX, SPY, QQQ, and US500.F only. Automatically detects the nearest round number level based on the instrument (25-point grid for SPX/ES, 5-point grid for SPY/QQQ) and draws a grid of levels above and below price. When price gets within the proximity threshold of a round number, a flashing banner appears at the top of the chart inside a table. If price stays near the level for several bars, it escalates to a PINNING alert — indicating dealers may be actively defending the strike.
**Alerts included**
- Approaching a round number
- PINNING detected at a round number Indicador

Trend Flip Risk MapTrend Flip Risk Map - TradingView Publishing Description
Short description:
Trend Flip Risk Map is a Pine v6 regime-transition study that turns selected compression-release flips into structured risk maps. It combines EMA-spread compression, directional pressure, release scoring, structure-based invalidation, retest tracking, and staged R-multiple targets.
Full description:
Trend Flip Risk Map is built for studying one specific market behaviour: a compressed trend regime beginning to release into a new directional phase. It is not intended to mark every moving-average crossover. The crossover is only the initial trigger. A signal is accepted only when the surrounding compression, candle participation, spread slope, and directional pressure conditions support the idea that the market may be leaving a low-separation regime.
The script’s purpose is to turn a possible trend flip into a complete review map. Instead of showing only a BUY or SELL label, it draws the active transition zone, the signal reference, a structure-aware stop, an early flip-failure line, three R-multiple target references, and a short retest window. This helps users review the full shape of the setup: where the regime changed, where the idea begins to weaken, where it is invalidated, and whether the first pullback into the transition zone holds.
Core idea:
A plain EMA crossover can occur in strong expansion, during compression, or inside meaningless chop. Trend Flip Risk Map tries to separate those situations by measuring the relationship between EMA separation and volatility. The script normalises the distance between the fast EMA and slow EMA by ATR. When that normalised spread remains below the selected threshold, the market is treated as compressed. A later flip is more meaningful when it appears after that compression and begins to expand with directional pressure.
How the regime engine works:
1. The fast EMA and slow EMA define the baseline regime.
2. The absolute distance between those EMAs is divided by ATR to create a volatility-normalised spread reading.
3. If the spread is below the compression threshold, the script treats the market as being in a compressed phase.
4. The script counts how many bars the market has spent in that compressed phase.
5. A flip can qualify only when the fast EMA crosses the slow EMA and the selected compression-release conditions are satisfied.
Directional pressure filter:
The script uses a pressure stack to avoid accepting weak flips by default. For bullish releases, price should be above the fast EMA, the fast EMA should be above the slow EMA, the EMA spread slope should be positive, and the signal candle should close in the upper part of its range. For bearish releases, the same checks are inverted. This makes the marker more selective than a basic crossover label.
Candle participation filter:
The signal candle body is measured relative to ATR. This prevents very small candles from being treated the same as larger transition candles. Users can raise or lower the minimum body-to-ATR input depending on whether they want fewer, stronger releases or more exploratory signals.
Release score:
Each accepted flip receives a release score. The score is a relative context score, not a prediction. It combines:
- How long the market spent in compression
- How much the EMA spread is expanding relative to its baseline
- How large the signal candle body is compared with ATR
- How strongly the EMA spread is sloping in the new direction
The score is useful for comparing different releases on the same symbol and timeframe under the same settings. It should not be read as a win probability or performance forecast.
Structure-aware risk map:
When a qualifying BUY or SELL release appears, the script creates a risk map from the signal candle. The Entry reference is the signal candle close. The stop can be based on recent swing structure with an ATR buffer. For bullish releases, the structure stop references recent lows. For bearish releases, it references recent highs. If that structure stop would not make sense relative to the entry, the script falls back to an ATR-based stop.
The Entry-to-Stop distance defines one unit of risk. TP1, TP2, and TP3 are then projected as configurable R-multiples from that distance. This keeps the ladder tied to the actual invalidation distance rather than drawing arbitrary target lines.
Flip-failure line:
The script also draws a separate FLIP FAIL line around the EMA midline with an ATR band. This is not the same as the full stop. It is an earlier regime-quality warning level. The idea is that a new trend regime can start to lose quality before the full structure stop is reached. This line gives users a visual reference for where the transition thesis begins to weaken.
Retest zone:
After a qualifying release, the script creates a temporary retest zone around the EMA midline. If price returns to that zone and holds in the direction of the active flip within the selected watch window, a RETEST HELD label is printed. This helps users study whether a release continues immediately, fails quickly, or first retests the transition area before continuation.
Dashboard:
The dashboard summarises the current state of the model. It shows whether there is an active bull or bear flip, whether the market is currently in compression or expansion, the current EMA spread relative to ATR, the current candle body relative to ATR, and the latest release score. The dashboard is designed to make the script easier to understand without needing to inspect every input or calculation manually.
Visual elements:
- Fast EMA: short-term regime reference
- Slow EMA: longer regime reference
- EMA midline: centre of the transition zone
- Compression box: recent low-separation area before release
- BUY / SELL release label: accepted directional transition after filters
- Release score: relative strength of the accepted transition
- Entry line: signal candle close
- STRUCT SL line: structure-aware invalidation reference
- FLIP FAIL line: earlier regime-quality warning level
- TP1 / TP2 / TP3 lines: R-multiple target references
- Retest zone: temporary zone used to study the first pullback after release
- RETEST HELD label: retest zone held during the watch window
- Dashboard: live regime and filter context
How to use it:
1. Add the indicator to a clean chart.
2. Use a liquid market and a timeframe where trend transitions are readable.
3. Look for releases that occur after visible compression, not random sideways crossover noise.
4. Review the release score in relation to other signals on the same chart.
5. Check whether the Entry, FLIP FAIL, STRUCT SL, and TP levels make sense against nearby structure.
6. Watch whether price retests the transition zone and holds during the retest window.
7. Adjust the compression threshold, required compression bars, EMA lengths, structure lookback, stop buffer, and R-multiple targets for the market being studied.
8. Forward-test settings before using them in any decision process.
Suggested chart setup:
15-minute and 30-minute charts usually provide cleaner examples because they show compression, release, retest, and continuation without excessive low-timeframe noise. One-hour charts can work well for broader swing review. Very small timeframes may produce more signals but can make the chart harder to interpret.
Important limitations:
Trend Flip Risk Map does not forecast price movement. It does not know whether a release will continue or fail. It can still produce poor signals during rotational, illiquid, or news-driven conditions. The release score is only a relative study metric under the selected settings. It is not a probability model, performance estimate, or recommendation.
Educational-use notice:
This script is for educational, research, and chart-planning purposes only. BUY and SELL labels, release scores, Entry levels, Stop Loss levels, flip-failure levels, retest markers, and target levels are visual study references. They are not financial advice, trade recommendations, or guarantees of future performance. Each user is responsible for testing settings on their own symbol, timeframe, and risk model.
Indicador

Trend Flip Risk MapTrend Flip Risk Map
Short description:
Trend Flip Risk Map is a structured trend-transition and risk-planning overlay that marks EMA regime flips with BUY/SELL planning labels, then projects an ATR-based Entry, Stop Loss, and TP1/TP2/TP3 ladder directly on the chart.
Full description:
Trend Flip Risk Map is a Trade Manager-style research indicator designed to make trend-transition areas easier to study, validate, and publish cleanly on TradingView. The script focuses on the moment when a faster EMA crosses above or below a slower EMA, then converts that trend flip into a clear visual risk map instead of leaving the trader to mentally estimate entry, invalidation, and profit-taking zones.
When the fast EMA flips above the slow EMA, the indicator can print a BUY planning marker. When the fast EMA flips below the slow EMA, it can print a SELL planning marker. Each marker is paired with a fresh trade-planning ladder that includes an Entry reference, an ATR-based Stop Loss, and three configurable R-multiple targets: TP1, TP2, and TP3.
The goal is not to predict every market turn. The goal is to create a cleaner decision map around confirmed trend changes so a trader can quickly see:
- Where the trend-transition signal occurred
- Which side of the market the EMA regime currently favours
- Where the entry reference sits relative to price
- Where the idea is visually invalidated by the Stop Loss level
- Where staged target zones would appear if the move continues
- Whether the available reward profile is worth further review before any trade decision
Core visual elements:
- Fast EMA and slow EMA regime map
- BUY labels on bullish EMA trend flips
- SELL labels on bearish EMA trend flips
- ATR-based Stop Loss projection
- Entry reference line
- TP1, TP2, and TP3 R-multiple target ladder
- Trend-coloured candles to show the active EMA bias
- Right-side price labels for Entry, SL, TP1, TP2, and TP3
- Alert conditions for bullish and bearish planning markers
How it works:
The indicator uses a fast EMA and a slow EMA to define the active trend regime. A bullish flip occurs when the fast EMA crosses above the slow EMA. A bearish flip occurs when the fast EMA crosses below the slow EMA. On each new flip, the prior ladder is cleared and a new risk map is drawn from the latest signal area.
The Stop Loss is calculated using ATR, which allows the risk zone to expand or contract with current market volatility. The take-profit levels are then projected from the distance between Entry and Stop Loss, using configurable R-multiple inputs. This keeps the visual structure consistent across different symbols, price ranges, and volatility conditions.
Suggested use cases:
- Studying clean trend-transition zones after EMA regime changes
- Building publication screenshots with a complete BUY/SELL + TP/SL path
- Reviewing whether a trend flip has enough room before nearby structure
- Comparing signals across intraday futures, indexes, stocks, crypto, or forex charts
- Forward-validating a simple trend-following planning model before developing stricter rules
- Creating a consistent visual framework for entry, invalidation, and staged target discussion
Suggested chart setup:
For publishing, 15-minute or 30-minute charts usually give the cleanest balance between readable trend structure and enough signal detail. For broader swing review, 1-hour charts may be cleaner. Very low timeframes can create more frequent flips and may make screenshots look crowded, so use them only when the purpose is short-term scalping review.
Recommended markets and timeframes:
- NQ / ES: 15m or 30m for intraday trend-transition examples
- Major index ETFs: 30m or 1h for cleaner directional examples
- Liquid large-cap stocks: 30m or 1h
- Crypto majors: 30m, 1h, or 4h depending on volatility
Input controls:
- Fast EMA length
- Slow EMA length
- ATR length
- Stop Loss ATR multiplier
- TP1 R-multiple
- TP2 R-multiple
- TP3 R-multiple
- Confirm on close toggle
- BUY, SELL, TP, SL, and Entry colours
Reading the indicator:
A BUY marker means the fast EMA has flipped above the slow EMA under the selected settings. A SELL marker means the fast EMA has flipped below the slow EMA under the selected settings. The Entry line shows the reference price used when the marker was created. The SL line shows the ATR-based invalidation area. TP1, TP2, and TP3 show staged target references based on the configured R-multiple values.
Because the ladder is redrawn at each new flip, the chart stays focused on the most recent active trend-transition map rather than accumulating old levels across the full chart.
What makes this useful:
Many trend-following tools stop at a signal label or a moving-average crossover. Trend Flip Risk Map adds the missing planning layer: where the idea starts, where it fails, and where staged targets would be located if the move extends. That makes the signal easier to review visually, easier to screenshot for educational publishing, and easier to forward-test with consistent rules.
Best practices:
- Use the indicator as a planning and research overlay, not as a standalone trading system
- Review signal quality in context with market structure, session timing, liquidity, and higher-timeframe trend
- Adjust ATR and R-multiple settings to match the symbol and timeframe being studied
- Avoid using very small stop settings on volatile markets without additional validation
- Forward-test settings before relying on them for any decision-making process
- Use clean screenshots with only a few strong examples visible when publishing
Important disclaimer:
This script is provided for educational, research, and chart-planning purposes only. BUY/SELL markers, Entry levels, Stop Loss levels, and TP levels are visual planning references, not financial advice, trade recommendations, or promises of future performance. The script does not predict market direction, guarantee profitability, or replace independent risk management. Markets involve risk, and all settings should be tested on your own symbol, timeframe, and risk model before relying on any output.
Indicador

Directional Flow Signals
Directional Flow Signals is a DMI-based trend direction indicator designed to highlight shifts in directional pressure directly on the price chart.
The indicator uses the Directional Movement Index system, comparing DI+ and DI- to determine which side of the market is currently dominant.
When DI+ is above DI-, candles are colored bullish.
When DI- is above DI+, candles are colored bearish.
A Long signal appears when directional control shifts from bearish to bullish.
A Short signal appears when directional control shifts from bullish to bearish.
This allows traders to quickly visualize changes in directional bias without needing to keep a separate DMI/ADX panel open.
Key features:
- Bullish and bearish candle coloring
- Long and Short signal labels
- DI+ / DI- crossover-based trend shifts
- Built-in alert conditions
- Adjustable DMI length and smoothing
- Custom candle colors
This tool can be useful for identifying directional transitions, trend bias changes, and possible momentum shifts when combined with support/resistance, volume, VWAP, market structure, or higher timeframe confirmation.
Important:
This indicator does not predict price movement and should not be used as a standalone trading system. Since the signals are based on DI+ and DI- crossovers, they may produce false signals during sideways or low-volatility market conditions.
Inputs:
Show BUY/SELL Signals:
Allows users to enable or disable Long and Short labels on the chart.
ADX Length:
Controls the lookback period used for the Directional Movement Index calculation.
ADX Smoothing:
Controls the smoothing applied to the ADX/DMI calculation.
Up Candle Color:
Sets the candle color when DI+ is stronger than DI-.
Down Candle Color:
Sets the candle color when DI- is stronger than DI+.
Directional Flow Signals is a visual trend-bias indicator based on the Directional Movement Index.
The script compares DI+ and DI- to determine whether bullish or bearish directional pressure is dominant. Candles are colored according to the active directional bias, and signal labels are displayed when the dominant side changes.
Signal logic:
Long Signal:
A Long signal is generated when DI+ becomes stronger than DI- after previously being below it.
Short Signal:
A Short signal is generated when DI- becomes stronger than DI+ after previously being below DI+.
The goal of this indicator is not to predict reversals, but to provide a clear visual representation of directional pressure shifts.
It is best used as a confirmation layer together with price structure, volume, VWAP, support/resistance, or higher timeframe trend analysis.
Limitations:
- Signals are based only on DI+ and DI- dominance.
- The ADX value is calculated but not used as a strength filter.
- False signals may occur in ranging or choppy markets.
- The indicator does not provide stop loss, take profit, or risk management levels.
- It should be used as a confirmation or visual bias tool, not as a complete trading system.
Indicador

Indicador

SPY VVIX VIX Buy Hold Sell SystemSPY VVIX VIX Buy Hold Sell System is a volatility-regime-based decision tool designed to help traders classify SPY conditions into BUY, HOLD, or SELL / DEFEND.
The system uses VVIX, VIX, SPY trend, and a Range Filter to identify when volatility risk is calm, rising, or dangerous.
BUY SPY:
This signal appears when SPY is in a bullish trend, the Range Filter confirms upward movement, VVIX is calm and falling, and VIX is not rising. This suggests volatility risk is contained and long SPY exposure is favored.
HOLD:
This signal means the SPY trend remains constructive, but the volatility backdrop is not strong enough for aggressive fresh buying. Existing positions may be held, but caution is advised.
SELL / DEFEND:
This signal appears when VVIX rises strongly, VIX confirms risk expansion, VVIX reaches danger or panic levels, or SPY trend weakens. Traders may consider selling SPY, reducing exposure, tightening stops, or defending with hedges such as puts or collars.
VVIX is treated as an early warning indicator because it measures the volatility of volatility. Rising VVIX can warn that the options market is preparing for future volatility expansion before SPY fully reacts.
This script is intended as a decision-support tool, not financial advice. Use with risk management, position sizing, and additional confirmation. Indicador

Indicador

VolEdge: VRP GaugeVOLEDGE: VRP GAUGE — Is option premium rich or thin right now?
Before you sell a single option, you should know the answer to one question: are options overpriced relative to what the market is actually doing?
The Variance Risk Premium answers this. It is the single most important macro-level number for anyone who sells options for income.
Also note that reversal from rich to kind of poorer premiums tends to show market reversals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IT DOES
Displays the Variance Risk Premium: the spread between implied volatility (VIX) and realized volatility (30-day historical vol on the S&P 500).
VRP = VIX minus HV30
When VRP is large and positive, options are expensive relative to actual market movement. Premium sellers have a statistical edge — they are being paid more than the risk they are taking on.
When VRP is near zero or negative, options are fairly priced or cheap. Selling offers little edge or no edge at all. Buying vol may be the better play.
The indicator shows the VRP value, its percentile rank over the last 90 days (configurable), a visual gauge, the underlying components (VIX and HV30), the 5-day trend, and a plain-language strategy interpretation.
It also plots a color-coded VRP histogram in its own chart pane so you can see how premium richness has evolved over time.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY VRP MATTERS
Most retail options traders check IV Rank on individual stocks — "is AAPL's IV high relative to its own history?" That is a useful question, but it misses the bigger picture.
VRP answers the macro question: "Is it a good day to sell options at all?"
When VIX is 20 and SPX has been realizing 20% annualized vol, there is no premium to harvest. VRP is near zero. You are selling options at fair value and taking on risk for no statistical edge.
When VIX is 20 and SPX has been realizing 12% annualized vol, VRP is +8. Options are significantly overpriced. Every strangle, iron condor, and short put you sell has a built-in statistical edge because the market is pricing in more movement than is actually occurring.
This is the fundamental asymmetry that drives institutional premium selling. Implied volatility exceeds realized volatility roughly 85% of the time — that is the variance risk premium. But the size of that premium varies enormously. Selling when VRP is rich compounds returns. Selling when VRP is thin or negative erodes them.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VRP CLASSIFICATION — FIVE LEVELS
RICH (VRP above 5, percentile above 75th):
Premium is meaningfully overpriced relative to realized vol. This is the sweet spot for premium sellers. Options are expensive, and the market is not moving as much as options pricing implies. Strangles, iron condors, short puts, and credit spreads all have favorable expected value. This is when you can be most aggressive with premium selling — within your normal risk management rules.
ABOVE AVERAGE (VRP above 5, percentile 50th–75th):
Premium is above its recent average but not at extremes. Selling conditions are favorable. Standard position sizing applies. You have an edge, but it is not as large as during RICH periods.
FAIR (VRP between 0 and 5, percentile 25th–75th):
Premium is roughly in line with realized vol. There is a small edge to selling, but it is modest. Be selective — only sell on stocks with individually elevated IV rank. Avoid aggressive sizing. This is the "be patient" zone.
THIN (VRP between 0 and 5, percentile below 25th):
Premium is below its recent average. The edge from selling is minimal. This is a good time to reduce premium selling activity, tighten existing positions, or wait for better conditions. If you do sell, stick to the highest-conviction setups only.
NEGATIVE (VRP below 0):
Options are cheap relative to realized vol. The market is moving more than options pricing implies. This is rare and typically occurs during fast-moving selloffs where realized vol spikes faster than VIX. Selling premium here is unfavorable — you are being paid less than the risk. Consider buying vol instead: long straddles, debit spreads, or VIX calls.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE IT — PRACTICAL WORKFLOW
Daily pre-market check:
Before entering any premium selling trade, glance at the VRP Gauge. If it reads RICH or ABOVE AVG, you have a green light to sell premium at normal or slightly increased size. If it reads FAIR, be selective. If it reads THIN or NEGATIVE, reduce activity or pivot to directional or long-vol strategies.
Combining with individual stock IV Rank:
The VRP Gauge tells you about the macro premium environment. Individual stock IV rank tells you about that specific stock. The best setup is: VRP RICH (macro edge) plus stock IV rank above 50th percentile (stock-level edge). Selling premium when both macro and stock-level conditions are favorable stacks the odds meaningfully in your favor.
Combining with the Vol Weather Report:
VRP RICH during a Normal or Low vol regime is the highest-confidence premium selling environment. VRP RICH during an Elevated or Crisis regime means premiums are rich but so is risk — size down accordingly.
Using the percentile reading:
The raw VRP number is useful, but the percentile tells you context. A VRP of +6 might be average in one market environment and exceptional in another. The percentile rank over the last 90 days (configurable) tells you whether today's VRP is historically rich or normal for recent conditions.
Using the 5-day trend:
VRP rising means the edge for sellers is improving — implied vol is expanding faster than realized vol, or realized vol is declining while VIX holds steady. VRP falling means the edge is shrinking. A falling VRP during a low-vol regime is a caution signal: realized vol may be catching up to implied vol, often before a volatility expansion.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IS ON THE DASHBOARD
Row 1 — VRP classification badge: RICH / ABOVE AVG / FAIR / THIN / NEGATIVE with color-coded background
Row 2 — VRP value: the headline number (e.g. +7.24) in large text
Row 3 — Visual gauge bar: fills from left to right as VRP increases, colored by classification
Row 4 — Percentile rank: where today's VRP sits relative to the last 90 days (configurable)
Row 5 — Implied vol: current VIX level
Row 6 — Realized vol: HV30 (or configurable lookback) calculated on SPX
Row 7 — 5-day trend: Rising / Stable / Falling, with the value from 5 days ago
Row 8 — Strategy context: plain-language interpretation of current VRP conditions
Chart pane: VRP histogram showing the daily VRP value over time. Green bars = rich, yellow = fair, red = negative. Reference lines at 0 (breakeven), +5 (rich threshold), and -2 (deeply negative).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE CALCULATION
Realized volatility (HV30):
Standard deviation of daily log returns on the S&P 500 over the last 30 trading days, annualized by multiplying by the square root of 252.
HV = stdev(ln(close / close_previous), 30) * sqrt(252) * 100
Variance Risk Premium:
VRP = VIX - HV30
Percentile rank:
Counts what percentage of VRP values over the lookback period (default 90 days) were lower than today's reading. A reading of 82 means today's VRP is higher than 82% of the last 90 days.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS
Realized Vol Lookback: number of days for HV calculation (default 30, range 10–60)
VRP Percentile Lookback: number of days for percentile ranking (default 90, range 30–252)
Show VRP Histogram: toggle the chart-pane histogram on or off
Show Visual Gauge Bar: toggle the gauge bar in the table on or off
Table position: choose where the panel appears
Text size: Small / Normal / Large
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS
VRP Rich — fires when VRP crosses above 5 and is in the top quartile. Premium selling conditions are strong.
VRP Thin — fires when VRP drops below 2. Selling edge is diminishing.
VRP Negative — fires when VRP crosses below zero. Options are cheap vs realized vol.
VRP 90th+ Percentile — fires when VRP is in the top 10% of its recent range. Exceptionally rich premium.
VRP Bottom 10th Percentile — fires when VRP is in the bottom 10% of its recent range. Exceptionally thin premium.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT MAKES THIS DIFFERENT
Several TradingView scripts calculate historical volatility. A few compare VIX to HV. None of them:
— Present VRP with a percentile rank for historical context
— Classify VRP into actionable categories (Rich / Fair / Thin / Negative)
— Show the 5-day trend in the premium environment
— Provide a strategy context sentence for each classification
— Include a visual gauge and color-coded histogram for quick pattern recognition
The Variance Risk Premium is an institutional-grade signal used by professional options market makers and vol funds as a core input to their selling decisions. This indicator makes it accessible to any options trader with a TradingView account.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ACADEMIC BACKGROUND
The variance risk premium — the tendency of implied volatility to exceed realized volatility — is one of the most documented phenomena in options markets. Key findings:
Implied vol exceeds realized vol approximately 85% of the time across major equity indices. The average VRP on the S&P 500 has been roughly 3–5 percentage points over multi-decade samples, but varies widely from negative to 15+ during stress periods.
The VRP is compensation for bearing volatility risk. When markets are calm, investors overpay for downside protection (puts), which inflates VIX relative to what actually happens. Premium sellers harvest this overpayment.
However, the VRP inverts during fast crashes when realized vol spikes above implied vol. This is exactly when premium sellers take their largest losses. Monitoring VRP in real time — not just knowing it exists on average — is critical for avoiding the trap of selling into a thin or negative VRP environment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT THIS INDICATOR IS NOT
It is not a timing signal for individual trades. VRP tells you the macro premium environment, not which stock to sell or when to enter.
It is not a guarantee of profitability. VRP being RICH means the odds favor sellers on average, but individual trades can still lose. Risk management still applies.
It uses VIX as the implied vol proxy and HV30 on SPX as the realized vol proxy. These are standard institutional measures, but they are not perfect representations of the vol surface for every product or expiration. For individual stock premium selling, combine this macro VRP reading with the stock's own IV rank.
It is not financial advice. It is an analytical tool for your own decision-making.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
This indicator is for educational and informational purposes only. It is not financial advice and should not be used as the sole basis for any trading decision. The variance risk premium is a well-documented statistical phenomenon, but past patterns do not guarantee future results. Options trading involves substantial risk of loss. Always do your own research and consider consulting a licensed financial advisor. Indicador

S&P 500 Breadth BullstackCore Idea of the Indicator:
The indicator is not a classic buy/sell trigger, but rather a breadth regime scanner for the S&P 500. In other words, it measures how many stocks in each sector are trading above their 20-day, 50-day, and 200-day moving averages (Simple Moving Average - SMA), compresses that information into a color-coded view, and visualizes whether there is a true “bullstack” in the market.
In practical terms, this means it is especially useful for filtering long positions during strong market phases, scaling into them, and turning defensive earlier when market breadth starts to weaken.
Structure:
The code loads three breadth series for each of the 11 S&P 500 sectors, plus the Nasdaq-100: 20D, 50D, and 200D.
The data is retrieved using request.security() from other symbols or contexts; in Pine, this function is used to access values from other symbols or timeframes within the script.
The script also calculates three averages from the 11 sectors (tot20, tot50, tot200) to create an overall view of S&P 500 market breadth.
Color Logic:
The core idea is: 20D represents short-term momentum, 50D represents medium-term confirmation, and 200D represents the long-term trend.
The bullstackColor() function does not create a simple traffic-light system, but rather a graduated state model: green/turquoise means broad strength, white marks the transition zone, yellow/orange signals early weakness, red to near-black indicates clear breadth weakness, and pink represents a special case of negative divergence.
This divergence occurs when many stocks are still above their 200D line in the long term (b200 > 65), while short-term momentum is already breaking down significantly (b20 < 45) — a typical late-cycle/distribution signal.
Long Strategy:
For longs, the indicator is most powerful when used as a market filter:
The best entries occur when overall breadth rotates up out of capitulation through neutral (white) and then into light green, with 20D breadth picking up first as short-term momentum, 50D breadth then confirming as the medium-term trend, and 200D remaining stable as the long-term trend.
The highest-quality longs occur when not only “Total SPY” turns green, but especially cyclical sectors such as XLY, XLF, XLI, XLK, and ideally the Nasdaq block as well are participating. That usually means the rally is broad, risk-on, and more durable.
Specifically, I would derive three long setups from this:
Early long (first tranche) on the turn from capitulation into the neutral zone, when 20D breadth is clearly rising and 50D breadth is no longer declining.
Confirmation long (second tranche), when 20D > 50D > 50 and several leading sectors turn green at the same time.
Trend add-on (final tranche), when the overall market and cyclical sectors such as XLY, XLF, XLI, and XLK are already green and rotating into turquoise, while pullbacks on the price chart remain shallow (only down to the SMA20 or slightly below).
Position Management:
For position management, the color is almost more important than the entry itself: as long as the picture remains green and 20D only fluctuates slightly, that argues for holding rather than nervous re-trading.
Partial profit-taking or tighter risk management makes sense once strong green fades into pale green or white, because that often marks the transition from expansion to exhaustion.
A clear warning signal against new longs is pink: in that case, the long-term trend is still intact, but short-term momentum is already rolling over — exactly the kind of environment where late longs are often rewarded the least. Caution is warranted here, and the first partial profits should be secured.
Short Strategy:
I would trade shorts much more selectively than longs with this indicator, because breadth indicators in uptrends can often stay “too strong” longer than short setups can tolerate.
The better short opportunities do not occur on the first yellow bar, but when the overall picture shifts from white/yellow into orange/red, while 20D breadth and 50D breadth are weak at the same time and defensive sectors look better than cyclical ones. That points more to genuine market distribution rather than just a simple pullback in individual sectors.
The cleanest short entries come after a failed rebound out of a pink divergence, or when multiple sectors flip synchronously into red/dark red after a warning phase, especially if Nasdaq, Tech, and other cyclical sectors confirm the weakness.
A simple practical rule would therefore be:
Prefer longs when breadth is expanding, 20D leads first, and 50D/200D then confirm.
No fresh longs during pink divergences.
Only take shorts when the weakness is broad, synchronized, and visible across sectors.
One more important point:
The script measures market breadth, not price structure. Therefore, it is best used as a top-down filter together with price triggers in SPY/ES/QQQ or in individual stocks — for example, breadth turning green plus a breakout or trend pullback on the chart, rather than trading breadth in isolation. Indicador

ORB Pro Suite v6ORB Pro Suite v6 — Multi-Session + HTF ORB Build
ORB Pro Suite v6 is an advanced Opening Range Breakout (ORB) tool designed for traders who want clarity, structure, and adaptability across NY, London, and Asia sessions — without changing the core ORB logic that works.
This update expands the original ORB Pro Suite to support overnight markets and multi-timeframe workflows, while keeping the strategy behavior consistent and familiar.
✅ Multi-Session Presets
Choose from built-in session presets:
NY AM (RTH) — original behavior (unchanged)
London
Asia
Custom
Each preset aligns the ORB window with the selected session and pairs seamlessly with session-appropriate filters.
✅ ORB Build Mode
You now have two ways to build your ORB:
1️⃣ Time Window (Classic ORB)
Uses session start/end times
Identical to previous versions
2️⃣ HTF Candle Count (Advanced)
Build the ORB from 5m / 15m / 30m / 60m candles
Works on any chart timeframe
Ideal for traders who want ORB consistency across TFs
Example:
Build a 15-minute ORB from 1× 15m candle, even while trading on a 5m chart.
✅ Session Profile Defaults
ORB Pro Suite introduces Session Profiles that automatically tune filters for different market conditions — without changing the strategy logic.
Profiles include:
NY (Default)
London (Breakout)
Asia (Slow Session)
Custom
You can toggle Profile Defaults ON or OFF at any time.
🧠 Core ORB Logic (Unchanged)
Original ORB framework:
Opening range high/low
Breakout confirmation
Optional retest logic
Golden Pocket (0.5–0.618) validation
Local + higher-timeframe trend filters
Cooldown protection
Visual risk/reward mapping
If you traded NY with earlier versions, nothing has changed.
⚙️ Recommended Starting Settings
For most users:
ORB Build Mode: Time Window
Session Profile: Auto
Strictness: Balanced
Advanced users:
Enable HTF Candle Count
Select desired ORB TF (5m–60m)
Adjust candle count to match your style
All inputs remain fully customizable.
📊 Designed For
Futures (ES, NQ, YM, RTY)
Forex pairs
Gold & major indices
Intraday price-action traders
Session-based trading workflows
⚠️ Disclaimer
This indicator is for educational and informational purposes only.
It does not constitute financial advice or trade recommendations.
Trading involves risk. Always manage risk appropriately and trade responsibly. Indicador

Chop ShieldThe Chop Shield is an all-in-one market state indicator designed to solve the two biggest problems for intraday traders: over-trading in sideways "chop" and entering breakouts with no institutional backing.
Built specifically for high-speed environments like SPY 0DTE and Tick Charts, this script uses a multi-layered confluence of volatility, momentum, and adaptive volume to "gray out" the noise and highlight high-probability "coiled spring" releases.
### Key Features
Smart "Traffic Light" Candle Coloring:
Slate Blue (#708090): The "Neutral Zone." This triggers during volatility squeezes, low ADX (Average Directional Index), or the mid-day "Lunch Doldrums." If it’s Slate, you stay at your desk.
White/Black High-Contrast Bodies: Once the market breaks out of chop, the candles return to a clean White (Bullish) or Black (Bearish) state.
The Squeeze Engine (Orange Background):
Uses a Bollinger Band/Keltner Channel relationship to identify periods of extreme volatility contraction. These "Squeezes" are the precursor to the largest moves of the day.
High-Confidence "Pressure" Signals:
Green/Red Diamonds: These appear when a candle meets strict price action criteria (70%+ solid body, closing at extremes) paired with high relative volume.
Live Bias Arrows: "BUY/SELL" markers trigger only when the High-Confidence bar aligns with the VWAP Slope and price location.
Adaptive Session Volume (The Yellow Marker):
Standard RVOL indicators are useless at the open because volume is always high. Our Adaptive Logic uses a 2.5x threshold during the 9:30–10:15 AM window and scales down to 1.5x for the rest of the day. If you see a yellow marker, it means volume is truly abnormal for that specific time of day.
Professional Filtering:
RTH Only: Automatically hides all signals and coloring during Pre-Market and Post-Market to keep your chart clean for the opening bell.
Lunch Doldrums: Hard-coded "Gray Zone" between 11:30 AM and 1:30 PM EST to protect you from the lowest-probability trading window.
### How to Trade It
This indicator is best used as a Validation Filter for levels-based strategies (Initial Balance, ORB, or Gap Fills).
The Setup: Identify a Volatility Squeeze (Orange Background) where candles are Slate Blue.
The Trigger: Wait for the Squeeze to end and the candles to turn White or Black.
The Confirmation: Look for a Green/Red Diamond paired with an Adaptive Volume Spike (Yellow "|").
The Exit: Use the Blue VWAP Line as your dynamic trailing stop or mean-reversion target.
### Confluence
Perfect for traders using Edgeful, ICT/SMC concepts, or standard Initial Balance breakouts. It removes the "guesswork" of whether a breakout is real or a low-volume trap. Indicador

APEX ELITE . 2━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◈ APEX ELITE . 2
Open Source Pine Script v6 · Panel-Only Edition · Zero Chart Clutter
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ NOT FINANCIAL ADVICE — See full disclaimer at the bottom.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IS APEX ELITE?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
APEX ELITE is a single, unified intraday dashboard that replaces what would otherwise require 8 or more separate indicators. Everything runs internally and surfaces through one clean, color-coded panel. Your chart stays completely uncluttered — no extra lines, no overlapping boxes, no noise.
Built specifically for intraday traders who need instant situational awareness:
→ Is there a signal right now?
→ What is the trend across multiple timeframes?
→ Where are the key levels?
→ How strong is the current edge?
All of that — answered in a single glance at the panel.
🔑 Key principles:
• All signals fire on confirmed bars only — zero repainting
• 12+ factors combine into one composite score before any signal fires
• Session clock tracks 8 intraday phases so you always know the market context
• Compact Mode available for smaller screens
• 22 configurable alert conditions built in
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE 12 MODULES — COMPLETE BREAKDOWN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ BLOCK A — SIGNAL COMMAND
───────────────────────────
The top block of the panel. Shows the current signal state in large text — ▲ CALL SIGNAL, ▼ PUT SIGNAL, or ● WATCHING — along with the live composite edge score and directional bias.
• Signal State: CALL / PUT / WATCHING — updates every confirmed bar
• Edge Direction: BULL / BEAR / NEUT with score out of 100 (e.g. "BULL 82/100")
• Edge Bar: 10-block visual bar showing edge % (████████░░)
• Bull / Bear pts: Raw scores shown side-by-side for comparison
The background color of this row changes: green for CALL, red for PUT, neutral for watching.
▸ BLOCK B — INTRADAY LEVELS
────────────────────────────
Every key price level an intraday trader needs, all in one place.
• VWAP Zone: Which of 6 zones price is in — Above +2σ / +1→+2σ / VWAP→+1σ / -1→VWAP / -2→-1σ / Below -2σ
• VWAP Distance: Real-time % distance of close from VWAP (e.g. +0.42% dist)
• PMH / PML: Pre-Market High and Low — the most important intraday reference levels. A break of PMH or PML triggers the maximum +20 trigger points.
• FCH / FCL: First Candle High and Low (configurable: 1/2/3/5/15 min). Also shows the first candle's range as a %.
• Supply / Demand: Nearest unmitigated supply zone above price and demand zone below price — with total active zone count.
• Level Break: Live readout when PMH, PML, FCH, or FCL is broken on the current bar.
▸ BLOCK C — MOMENTUM STACK
───────────────────────────
A complete multi-timeframe picture of trend alignment.
• SMA 9 (cyan): Short-term momentum MA. Above = bullish micro trend.
• SMA 21 (gold): Medium momentum MA. The primary intraday trend filter.
• SMA 50 (orange): Intermediate trend. Pullback entries reference this level.
• SMA 200 (red): Long-term macro trend. Above = bull market context.
• MA Alignment: Count of MAs on each side (e.g. 4/4 bull). Full stack = strongest signal.
• MA Stack Order: Full Bull Stack confirmed when 9 > 21 > 50 > 200 all correctly ordered.
• EMA Ribbon: EMA 8 vs EMA 21 — ribbon direction shows short-term momentum.
• MTF Alignment: Per-timeframe arrows (▲5m ▲15m ▼1h) — instantly see each TF at a glance.
• Daily Context: Daily EMA 9 vs EMA 21 — trade with the daily trend for the highest quality setups.
Tip: MTF 3/3 aligned + MA 4/4 bull + daily EMA bull = the highest conviction entries.
▸ BLOCK D — MARKET STRUCTURE
──────────────────────────────
The highest-conviction trigger events in the system.
• Liquidity Sweep: Price briefly violates a 20-bar extreme before reversing — a classic stop hunt. Tracks age in bars (e.g. "▲ Bull (3b ago)").
• Structure Break (MSB): Close crosses a confirmed 10-bar pivot high or low. The strongest directional confirmation. Also tracks age.
• Squeeze: Bollinger Bands contracting inside Keltner Channels = coiling volatility. Shows bars coiling. Fires on expansion.
• Squeeze Momentum: Rising / Falling / Flat direction of momentum during the squeeze.
• ADX: Average Directional Index — Strong (>30) / Trending (20-30) / Choppy (<20).
• DI+ / DI-: Split readout showing directional pressure.
Both Sweeps and MSBs add the maximum trigger bonus (+20 pts) to the score.
▸ BLOCK E — RISK ENGINE
────────────────────────
Everything needed to size and manage a trade the moment a signal appears.
• ATR 14: 14-period Average True Range — raw volatility in price points.
• Stop 1× / 1.5× / 2×: Three stop-loss distances pre-calculated simultaneously. Choose based on your risk tolerance.
• Volume Ratio: Current volume as a multiple of the 20-bar average (e.g. 1.8× avg).
• Volume: "▲ SPIKE" label when volume clears your configured threshold. "Normal" otherwise.
• RSI 14: 14-period RSI with contextual labels — OB (>70), OS (<30), Elevated, Depressed, Neutral.
▸ BLOCK F — LIQUIDITY HEATMAP
( Inspired by BigBeluga — Dynamic Liquidity HeatMap Profile )
──────────────────────────────────────────────────────────────
This module is inspired by the methodology from BigBeluga's excellent Dynamic Liquidity HeatMap Profile indicator. It uses ATR-normalized, volume-weighted pivot analysis over a configurable lookback (default 300 bars) to determine whether buy-side or sell-side liquidity is dominant.
• Liq Bias: Buy-Side / Sell-Side / Balanced — with dominant side percentage (e.g. "Buy-Side 73%")
• Vol Intensity: Graphical bar (▓▓▓░░) showing current volume activity as % of the 300-bar max
• Score Impact: +5 bull score when buy-side > 60% · +5 bear score when sell-side > 60%
Full credit to BigBeluga for the original concept. Please visit and support their work.
▸ BLOCK G — REVERSAL PROBABILITY ZONE
( Inspired by LuxAlgo — Reversal Probability Zone & Levels )
──────────────────────────────────────────────────────────────
This module ports the exact algorithmic core of LuxAlgo's Reversal Probability Zone & Levels indicator. It builds two separate databases of historical swing moves — one bullish, one bearish — tracking both the price magnitude and bar duration of every confirmed pivot. From these it calculates statistical percentile targets for the most likely next move.
• Forecast Bias: ▲ Bull or ▼ Bear — direction expected after the last pivot
• 25th / 50th Percentile: Conservative and median price targets (e.g. 518.40 / 521.20)
• 75th / 90th Percentile: Aggressive and maximum targets (e.g. 524.80 / 528.50)
• Duration: Expected bar count to reach each target (e.g. "8 bars / 22 bars")
• Pivot Count: Total swings tracked — more pivots = more statistically reliable readings
Full credit to LuxAlgo for the original algorithm. Licensed under CC BY-NC-SA 4.0.
▸ BLOCK H — STANDARD DEVIATION CHANNEL
────────────────────────────────────────
A linear regression channel fitted to the last N bars (default 128). Shows where price sits statistically within the current trend.
• Channel Zone: One of 6 zones — Above +2σ / +1→+2σ / Mid→+1σ / -1→Mid / -2→-1σ / Below -2σ
• Trend Direction: Rising / Falling / Flat based on the regression slope
• Pearson R: Correlation coefficient. Above 0.8 = very clean trend. Below 0.5 = noisy/ranging.
• Midline Distance: % distance of close from the regression center line
Best CALL zone: "Mid → +1σ" on a rising channel.
Best PUT zone: "Mid → -1σ" on a falling channel.
Avoid entries when zone shows "Above +2σ" or "Below -2σ" — price is statistically extended.
▸ BLOCK I — RSI DIVERGENCE
( Libertus Method )
─────────────────────────────────────────────
Detects bull and bear RSI divergences by comparing price swing extremes against RSI swing extremes over a configurable lookback window (default 90 bars).
• Bull Divergence: Price makes lower low but RSI makes higher low — hidden strength, potential reversal up
• Bear Divergence: Price makes higher high but RSI makes lower high — hidden weakness, potential reversal down
• Age Tracking: "Bull Div (3b ago)" or "Bull Div ✦ NOW" — shows exactly how fresh the divergence is
• RSI Value: Current reading with OB / OS labels
• Score Bonus: +5 bull score on bull divergence · +5 bear score on bear divergence
Credit to Libertus for the divergence detection methodology.
▸ BLOCK J — SESSION CLOCK
──────────────────────────
Intraday trading is entirely timing-dependent. This block tracks 8 distinct market phases, each color-coded by typical volatility profile.
PRE-MKT → 4:00 – 9:30 AM ET (PMH/PML building)
OPEN (HOD/LOD) → 9:30 – 10:00 AM ET (highest volatility, initial direction)
AM SESSION → 10:00 – 11:30 AM ET (best signal quality window)
LUNCH APPROACH → 11:30 – 12:00 PM ET (momentum slowing)
LUNCH CHOP → 12:00 – 1:30 PM ET (avoid new entries)
PM SESSION → 1:30 – 2:30 PM ET (trend continuation or reversal)
POWER HOUR NEAR → 2:30 – 3:00 PM ET (institutional activity increasing)
POWER HOUR → 3:00 – 4:00 PM ET (highest volume, strongest moves)
Also shows time remaining in RTH. Turns gold when less than 60 minutes remain.
▸ BLOCK K — COMPOSITE EDGE SCORE
───────────────────────────────────
Instead of just showing one number, this block breaks the score into individual factor bars — each showing exactly how much it is contributing. You can see not just THAT the score is high, but WHY.
VWAP → ████░ (max 15 pts)
MTF → █████ (max 15 pts)
MA → ████░ (max 12 pts)
Momentum → ███░░ (max 5 pts)
Volume → ██░░░ (max 10 pts)
Trigger → █████ (max 20 pts ← most important)
ADX → ████░ (max 8 pts)
Edge → ████░ (overall 0-100)
A high score driven purely by momentum without a trigger event is weaker than one with everything aligned.
▸ BLOCK L — FRACTAL BASE
( Inspired by LuxAlgo — Fractal Base Indicator )
──────────────────────────────────────────────────
This module ports the core logic from LuxAlgo's Fractal Base Indicator. A fractal is a confirmed swing pivot where price has N bars of context on both sides — these represent the most significant recent support and resistance levels because they show where price genuinely reversed.
• Fractal Res: Last confirmed fractal HIGH — price + bars since + % distance from close
• Fractal Sup: Last confirmed fractal LOW — price + bars since + % distance from close
• Price Bias: "Above Res" (price broke resistance) / "Below Sup" (broke support) / "In Range" (between levels)
• Fractal Event: "New High Fractal" or "New Low Fractal" when a new fractal confirms this bar
• Score Bonus: +4 pts near fractal support/resistance · +3 pts when level is broken
• Configurable: Fractal Periods input — 2 = 5-bar fractal (default), 1 = 3-bar, 3 = 7-bar
Full credit to LuxAlgo for the original indicator concept.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE SCORING ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Bull and bear scores are calculated independently on every confirmed bar. A signal only fires when the score clears the threshold AND key filters are simultaneously met.
COMPONENT MAX PTS CONDITION
────────────────────────────────────────────────────────────
VWAP Zone 15 / 8 15 inside ±1σ · 8 correct side outside band
MTF Alignment 15 / 8 15 all 3 TFs aligned · 8 for 2 of 3
MA Alignment 12/7/3 12 for 4/4 · 7 for 3/4 · 3 for 2/4
EMA Ribbon 5 EMA 8 vs 21 direction
Volume Spike 10 Volume > mult × 20-bar avg AND correct direction
Trigger Event 20 ★ PMH/PML/FCH/FCL break · Sweep · MSB
ADX Strength 8 / 5 8 if ADX >30 · 5 if ADX 20-30
Squeeze Fire 5 Squeeze fires in signal direction
ABC Harmonic 5 Active harmonic pattern aligned
RSI Zone 5 RSI 50-70 for bull · 30-50 for bear
RSI Divergence 5 Bull/bear divergence active
Liq HeatMap Bias 5 Buy/sell-side >60%
Std Dev Channel 4 Price in sweet zone on correct trend
Daily EMA Trend 4 Daily chart EMA alignment
S/D Zone Proximity 3 Within 0.3% of demand (bull) or supply (bear)
Fractal Proximity 4 / 3 Within 0.25% of fractal level / level broken
────────────────────────────────────────────────────────────
★ Trigger Event carries the most weight. A signal without a trigger is unlikely to fire.
DEFAULT THRESHOLD: 65 pts
Raise to 75+ for fewer but higher-quality signals.
Lower to 55 on very active trending days.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGNAL CONDITIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A CALL signal requires ALL of the following simultaneously:
✅ Bull score ≥ threshold
✅ Close above VWAP (hard filter)
✅ MTF alignment 2/3 or better
✅ Active trigger event (PMH break / FCH break / Bull Sweep / MSB ▲ / Squeeze bull)
✅ barstate.isconfirmed — never fires mid-bar, zero repainting
✅ RTH session active (if RTH Only setting is on)
A PUT signal requires ALL of the following simultaneously:
✅ Bear score ≥ threshold
✅ Close below VWAP (hard filter)
✅ MTF alignment 2/3 or better (bearish)
✅ Active trigger event (PML break / FCL break / Bear Sweep / MSB ▼ / Squeeze bear)
✅ barstate.isconfirmed
✅ RTH session active (if RTH Only setting is on)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
22 ALERT CONDITIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
To set up: Right-click the indicator → Add Alert → Select condition.
All alerts include: ticker · close price · timestamp.
SIGNAL ALERTS
▲ CALL Signal — Full CALL criteria met
▼ PUT Signal — Full PUT criteria met
◆ Any Signal — Either CALL or PUT
LEVEL BREAK ALERTS
→ PMH Breakout — Close crosses pre-market high
→ PML Breakdown — Close crosses pre-market low
→ FCH Break — Close crosses first candle high
→ FCL Break — Close crosses first candle low
STRUCTURE ALERTS
→ Sweep CALL — Bull sweep + above VWAP
→ Sweep PUT — Bear sweep + below VWAP
→ MSB Bull — Market structure break upward
→ MSB Bear — Market structure break downward
MOMENTUM ALERTS
→ Squeeze Bull Fire — Squeeze fires with bullish close
→ Squeeze Bear Fire — Squeeze fires with bearish close
→ MA Full Bull Stack — All 4 MAs correctly ordered up
→ MA Full Bear Stack — All 4 MAs correctly ordered down
DIVERGENCE & LIQUIDITY
→ RSI Bull Divergence — Bull div detected
→ RSI Bear Divergence — Bear div detected
→ Liq Buy Bias — HeatMap buy-side > 60%
→ Liq Sell Bias — HeatMap sell-side > 60%
PREMIUM ALERTS
★ High Edge (80+) — Composite edge score reaches 80 — premium setup
→ New High Fractal — New confirmed fractal high (LuxAlgo logic)
→ New Low Fractal — New confirmed fractal low (LuxAlgo logic)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS QUICK REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SESSION & TIME
Pre-Market Session → 0400-0930 ET (adjust for your exchange)
RTH Session → 0930-1600 ET
First Candle Length → 1 / 2 / 3 / 5 / 15 minutes
RTH Signals Only → On by default (recommended)
SIGNAL ENGINE
Min Score to Signal → 65 (raise for fewer signals, lower for more)
Volume Spike Mult → 1.4× (volume must be this × the 20-bar average)
MOVING AVERAGES
MA Type → SMA / EMA / WMA (switches all 4 simultaneously)
MA Lengths → 9 / 21 / 50 / 200 (individually configurable)
REVERSAL PROB ZONE (LuxAlgo)
Swing Length → 20 (pivot sensitivity)
Max Reversals → 1000 (database cap)
Percentiles → 25 / 50 / 75 / 90 (target levels to display)
FRACTAL BASE (LuxAlgo)
Fractal Periods → 2 = 5-bar fractal | 1 = 3-bar | 3 = 7-bar
STD DEV CHANNEL
Regression Length → 128 bars (shorter = more reactive)
RSI DIVERGENCE
RSI Length → 14
OB / OS Levels → 70 / 30
Divergence Lookback → 90 bars
DISPLAY
Panel Position → Top Right / Top Left / Bottom Right / Bottom Left
Compact Mode → Hides sub-rows to shrink panel height
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO READ THE PANEL — QUICK CHECKLIST
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Before entering any trade, run through these 9 checks:
① Signal showing CALL or PUT? (not just Watching)
② Score at or above your threshold?
③ On the correct side of VWAP?
④ MTF at least 2/3 aligned?
⑤ Channel zone in a reasonable position? (avoid Above +2σ for CALLs)
⑥ Fractal Bias showing "Above Res" (CALL) or "Below Sup" (PUT)?
⑦ RPZ showing a clear price target with enough room for your R:R?
⑧ What was the trigger event? (MSB and Sweep are strongest)
⑨ Can you fit your stop within the 1.5× ATR distance?
If you can answer yes to most of these — the setup has strong confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CREDITS & ACKNOWLEDGEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
APEX ELITE was built with deep respect for the Pine Script community. Several modules are directly inspired by the outstanding published work of:
🏆 LuxAlgo
Two modules in APEX ELITE are inspired by LuxAlgo's indicators:
→ Block G (Reversal Probability Zone) ports the core algorithmic logic
from LuxAlgo's "Reversal Probability Zone & Levels" — including the
exact pivot detection method, price/bar delta database, and percentile
target calculation. Licensed under CC BY-NC-SA 4.0.
→ Block L (Fractal Base) implements the fractal high/low detection and
support/resistance logic from LuxAlgo's "Fractal Base Indicator".
LuxAlgo's original indicators are published at:
tradingview.com/u/LuxAlgo/
All credit for these algorithmic approaches belongs entirely to LuxAlgo.
🏆 BigBeluga
→ Block F (Liquidity HeatMap) is inspired by BigBeluga's
"Dynamic Liquidity HeatMap Profile" indicator. The volume-normalized,
pivot-based liquidity bias methodology is adapted from their approach.
BigBeluga's work can be found at:
tradingview.com/u/BigBeluga/
Please visit and support their original publications directly.
🏆 Libertus
→ Block I (RSI Divergence) implements the divergence detection method
from Libertus's "RSI Divergences" indicator.
Thank you to all three creators for sharing their knowledge with the community.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER — PLEASE READ IN FULL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
APEX ELITE is a technical analysis tool published for EDUCATIONAL and INFORMATIONAL purposes only.
❌ It does NOT constitute financial advice.
❌ It does NOT constitute investment advice.
❌ It does NOT constitute trading recommendations.
❌ It is NOT a solicitation to buy or sell any financial instrument.
All information displayed by this indicator is derived from historical price data and mathematical calculations. Past signal performance does NOT guarantee or predict future results. Financial markets are inherently unpredictable and all trading involves significant risk, including the potential loss of your entire invested capital.
The author of APEX ELITE is not a licensed financial advisor, broker, dealer, or investment professional. Nothing in this indicator or its documentation should be interpreted as personalized investment advice tailored to your individual financial situation, risk tolerance, or investment objectives.
YOU are solely responsible for all trading decisions you make.
Always conduct your own independent research and due diligence.
Always use proper risk management — including position sizing and stop-loss orders.
Never trade with money you cannot afford to lose.
If you are uncertain about any aspect of trading or investing, consult a licensed financial professional in your jurisdiction.
By adding this indicator to your chart, you acknowledge that you have read and understood this disclaimer, and that any trading decisions you make based on or influenced by this indicator are entirely your own responsibility.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Pine Script v6 · Not Financial Advice · Educational Use Only
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF Indicador

Indicador

Precision SPXPrecision SPX — Multi‑Timeframe Levels + Automated Alerts for SPX Traders
Precision SPX is a manual‑control Support and Resistance system built for SPX traders who rely on structure, precision, and daily level updates. It plots Monthly, Weekly, Daily, and Daily Range levels to map where price may react, reverse, or consolidate. This version includes a full alert engine that notifies you the moment price interacts with any level.
Core Features
Multi‑Timeframe Levels
The indicator plots a complete structure:
Monthly Levels — High & Low
Weekly Levels — High & Low
Daily Levels — Six total (4 Red, 2 Pink)
Daily Range Levels — High & Low
All levels are manually entered for maximum precision.
Customizable Visuals
Adjustable label size
Adjustable horizontal label placement
Toggle level labels on/off
Clean color‑coded hierarchy
ES/SPY Conversion Support
Optional manual ES spread or SPY ratio input
Automatically adjusts SPX levels
Lightweight & User‑Friendly
No repainting
No heavy calculations
Easy to integrate into any chart layout
How It Works
Precision SPX plots manually‑controlled Support and Resistance levels across multiple timeframes. Each level is labeled and color‑coded so you can quickly identify:
Higher‑timeframe structure
Daily intraday reaction zones
Overnight range boundaries
Breakout and reversal points
How to Use It
1. Apply the Indicator
Add Precision SPX to your chart.
2. Enter Your Levels
Input your Daily, Daily Range, Weekly, and Monthly levels into the string fields.
3. Trade With Structure
Use the plotted levels to identify:
Reversals
Breakouts
Retests
Stop‑loss placement
High‑probability reaction zones
Combine with trendlines, volume profile, or oscillators for confirmation.
Built‑In Alerts
Precision SPX includes a complete alert engine so you can receive notifications when price crosses any level.
Alert Modes
Any alert() function call — triggers when price crosses any level, with duplicate‑candle suppression.
Individual Level Alerts — choose a specific level such as:
R2_Hi, R1_Hi, P_Hi, P_Lo, R1_Lo, R2_Lo, DR_Hi, DR_Lo, W_Hi, W_Lo, M_Hi, M_Lo.
Level Categorization
Daily Levels:
Red: R2_Hi, R1_Hi, R1_Lo, R2_Lo
Pink: P_Hi, P_Lo
Daily Range:
DR_Hi, DR_Lo
Weekly Levels:
W_Hi, W_Lo
Monthly Levels:
M_Hi, M_Lo
How to Add Alerts
Open the TradingView alert panel
Select Precision SPX as the condition
Choose Any alert() function call or a specific level
Set expiration, message, and notification preferences
Save
Daily Workflow
Because SPX levels change daily:
Update your daily string values
Create a new alert each day (TradingView requires this for updated values)
Alerts will trigger based on the conditions you select
Release Notes — Precision SPX
Feb 2026 — Major Update
Full alert engine added
“Any alert() function call” support
Duplicate‑candle suppression
Complete level categorization
Daily update workflow
Cleaned and reorganized structure
Legacy Notes (From Precision Levels)
Jun 12, 2025
Added highlighted price labels with adjustable size
Added ES/SPY conversion inputs
Dragging disabled when conversion is active
Jun 28, 2025
Added customizable label placement
Reordered string input structure
Standardized daily color order
Added toggle for level labels
Nov 8, 2025
Added Daily Range levels
Updated string hierarchy
Example structure:
Red, Red, Pink, Pink, Red, Red, DR_Hi, DR_Lo, Weekly, Weekly, Monthly, Monthly Indicador

Indicador

Institutional Value Relocation VerdictSummary in one paragraph
Value Relocation Verdict ARD is an acceptance versus rejection classifier for liquid instruments on intraday to daily timeframes. It helps you act only when multiple conditions align after price pushes beyond a boundary. It is original because it treats every break as a probe and scores whether value is relocating using a break anchored VWAP relocation metric fused with time outside, extension, outside volume share, pullback quality, and failure velocity back into value. Add it to a clean chart, read the compact decision table, and use the visuals or alerts. Shapes can move while the bar is open and settle on close. For conservative alerts select on bar close.
Scope and intent
• Markets. Major FX pairs, index futures, large cap equities, liquid crypto
• Timeframes. One minute to daily
• Default demo used in the publication. NQ1! on 15 minute
• Purpose. Prevent trading raw breakouts and raw fades before the market proves acceptance or rejection
• Limits. This is an indicator. It does not place orders and does not simulate fills
Originality and usefulness
This is not a mashup of common indicators. It is a state machine that measures what happens after a boundary is breached.
• Unique concept or fusion. Breaks are treated as probes and classified by value relocation using break anchored VWAP plus behavioral metrics outside the boundary
• What failure mode it addresses. False starts in chop, one bar breakouts that reverse, and fades taken too early when value is actually relocating
• Testability. The table shows the live decision, the two competing scores, and the driver metrics so users can verify why a suggestion appears
• Portable yardstick. All distances are normalized in ATR units so thresholds travel better across symbols
• Protected scripts. Public open source, implementation visible
Method overview in plain language
Base measures
• Range basis. True Range smoothed with ATR over ATR length
• Value basis. Session anchored VWAP defines a value center, with a configurable VWAP band as the value zone
Components
• Boundary selection. Choose prior day high and low, opening range, prior week high and low, VWAP band edges, or custom levels
• Probe state. A probe begins when price crosses a boundary. The boundary is frozen for the probe so time outside and velocity are measured consistently
• Acceptance score. A 0 to 100 score built from closes outside, max extension beyond the boundary, outside volume ratio, break anchored VWAP relocation, defense touches, expansion context, and a pullback penalty
• Rejection score. Evaluated only when price re enters the boundary. It fuses sweep size, snapback depth, fail velocity, speed of re entry, RVOL, compression context, and a value zone re entry bonus
• Context regime. A light regime classifier uses session VWAP slope and a higher timeframe EMA slope to bias acceptance slightly in trend direction and boost rejection slightly in ranges
• Session windows optional. Session follows the exchange time of the chart. Verify when changing symbol or venue
Fusion rule
• Two separate scores are maintained during a probe: Acceptance score and Rejection risk
• During the probe, the table shows a Lean decision based on the score spread: Acceptance score minus Rejection risk
• Thresholds for ACC and REJ are explicit in Inputs and the drivers are visible in the table
Signal rule
• ACC Up appears when a probe above the boundary reaches acceptance score threshold for the configured confirm bars, closes remain outside the buffer, and chase distance is not excessive
• ACC Down is symmetric for probes below the boundary
• REJ Up appears when price re enters the boundary after probing above and rejection score meets its threshold
• REJ Down is symmetric for probes below the boundary
• WAIT shows when no probe is active or when neither side has a clear edge
What you will see on the chart
• Active boundary line. Thick line at the frozen probe boundary
• Value zone. Optional VWAP band fill and optional VWAP lines for context
• Probe band. Optional thin band around the boundary equal to the outside buffer
• Break VWAP. Optional line during the probe that shows break anchored VWAP
• Markers. ACC and REJ markers on the bar where the model resolves
• Optional plan overlay. Entry, stop, and target lines for the last resolved signal, informational only
• Compact table. A decision dashboard with Lean, State, Regime, ACC score, REJ risk, and the drivers
Table fields and quick reading guide
• Decision. Lean ACC, Lean REJ, or Wait
• State. Idle, Probe Above, Probe Below, Waiting Levels, or Out of Session
• Regime. Trend Up, Trend Down, or Range
• ACC Score. 0 to 100 plus a bar gauge
• REJ Risk. 0 to 100 plus a bar gauge
• Boundary. Frozen boundary price during the probe
• Value VWAP. Session anchored VWAP price
• Outside. Closes outside count versus Accept min closes outside
• Delta. ACC Score minus REJ Risk, used to express separation
• Drivers shown by preset. Extension ATR, Reloc ATR, Out Vol, Pull ATR, RVOL, Fail Vel, Sweep ATR, Snap ATR, Expansion, Compression
Reading tip. When Session is ON and Delta shows clear separation, outcomes tend to be easier to manage than when both scores are similar.
Inputs with guidance
Setup
• Theme. Dark or Light. Matches chart background for readability
• Preset. Minimal, Standard, Pro. Minimal is the clean chart default
• Session and Require session. Typical use is ON for index futures and intraday equity sessions
• Cooldown bars. Typical range 0 to 15. Higher reduces clustered probes
• Max probe bars. Typical range 20 to 120. Lower avoids stale probes
• Decision delta. Typical range 10 to 25. Higher demands more separation before leaning
Levels
• Mode. Prev Day HL, Opening Range, Prev Week HL, VWAP Band, Custom
• Opening range minutes. Typical 15 to 60 on intraday charts
• Break trigger. Close is more conservative. Wick is earlier but noisier
• VWAP band width ATR. Typical 0.5 to 1.5
• Custom upper and Custom lower. Only active in Custom mode. Both must be greater than 0 and upper must be greater than lower
Scoring
• Outside buffer ATR. Typical 0.05 to 0.30. Higher requires stronger closes outside
• Accept min closes outside. Typical 3 to 10. Higher confirms slower relocations
• Accept min extension ATR. Typical 0.6 to 1.8. Higher demands stronger expansion
• Accept min outside volume ratio. Typical 0.45 to 0.80. Higher demands conviction
• Accept min relocation ATR. Typical 0.10 to 0.50. Higher demands value shift beyond the boundary
• Accept max pullback ATR. Typical 0.30 to 1.00. Lower penalizes weak holding
• Accept confirm bars. Typical 1 to 3. Higher reduces one bar acceptance
• Accept score threshold. Typical 60 to 85
• Accept max chase distance ATR. Typical 0.8 to 2.0. Lower avoids late entries
• Defense touches needed and defense touch distance ATR. Use 0 to disable. Typical 1 to 2 touches, 0.15 to 0.35 distance
Rejection scoring
• Reject max closes outside before re entry. Typical 2 to 6. Lower demands fast failure
• Reject min fail velocity. Typical 0.3 to 1.0. Higher demands sharper failure
• RVOL length and reject min RVOL. Typical 20 and 1.1 to 1.8
• Reject min sweep ATR and reject min snapback ATR. Typical sweep 0.25 to 0.80, snap 0.10 to 0.50
• Reject score threshold. Typical 60 to 85
Context
• Context timeframe. Typical 15, 30, or 60 minutes for intraday
• Context EMA length. Typical 34 to 100
• VWAP slope bars and trend slope threshold. Typical 4 to 12 bars, threshold 0.05 to 0.15
• Bias scores by regime. ON by default. Turn OFF if you want pure probe math only
UI
• Show signals, probe band, value fill, value lines, signal labels
• Table position and table size
Clean default. Minimal preset with value fill ON, value lines OFF, and labels OFF
Usage recipes
Intraday trend focus
• Preset Standard
• Context timeframe 30
• Bias scores by regime ON
• Accept score threshold 75
• Reject score threshold 80
• Break trigger Close
• Decision delta 20
Intraday mean reversion focus
• Preset Standard
• Mode Prev Day HL or Opening Range
• Bias scores by regime ON
• Reject max closes outside 3
• Reject min sweep 0.35 and snapback 0.20
• Reject score threshold 70
• Decision delta 15
Swing continuation
• Timeframe 60 minutes to 4 hours
• Context timeframe 1 day
• Increase Accept min closes outside and Accept confirm bars
• Increase Max probe bars
• Use Close trigger
• Raise Decision delta
Realism and responsible publication
• No performance claims. Past results never guarantee future outcomes
• No certainty about the future
• Intrabar motion reminder. Shapes can move while a bar forms and settle on close
• Standard candles are recommended. Non standard chart types change OHLC and can alter the meaning of sweeps and snapbacks
Honest limitations and failure modes
• Economic releases and thin liquidity can invalidate sweep and relocation behavior
• Gap heavy symbols can distort intrabar probe stats on small timeframes
• Very quiet regimes reduce score separation. Consider longer windows or higher thresholds
• Session windows use the exchange time of the chart
• Custom mode requires valid upper and lower values or the script will wait
Open source reuse and credits
• None
Legal
Education and research only. Not investment advice. You are responsible for your decisions. Test on historical data and in simulation before any live use. Use realistic costs. Indicador

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` Indicador

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. Estrategia

Indicador
