Индикатор

Futures ATR Risk & Position SizerATR Risk & Position Sizer
What it does
This tool answers one question before every trade: "Given how much I'm willing to lose and how volatile this market is right now, how many contracts can I actually take?"
Instead of using a fixed stop distance, the stop is derived from the Average True Range (ATR) of the instrument, so position size automatically shrinks when volatility rises and grows when it falls — the dollar risk stays constant, the contract count adapts.
The asset is auto-detected from the chart you're viewing. You only choose whether you're trading the Mini or Micro version of it.
How the calculation works
Stop distance = ATR(length) × Multiplier
- ATR length defaults to 14 (configurable).
- The multiplier (default 1.5) controls how wide the stop is relative to current volatility — this is what makes the risk "dynamic": as ATR expands or contracts, so does the stop, and so does the resulting position size.
Tick rounding — a stop can only be placed at a valid price increment (tick), so the raw ATR-based distance is rounded down to the nearest whole tick for the detected instrument before anything else is calculated. For example, on ES (tick = 0.25), a raw distance of 10.4 points becomes 10.25 points (41 ticks) — never a value that couldn't actually be set as a stop order.
Risk per contract = Stop Distance (points) × Dollar value per point (for the selected Mini/Micro size).
Contracts allowed = floor(Max Risk $ ÷ Risk per contract), then optionally rounded down to the nearest even number (see below).
Max Risk (displayed) is recalculated from the final, rounded contract count — so it reflects your actual exposure, which will always be at or under your configured max risk, never over it.
Auto-detection
The script reads the chart's root symbol (works with both continuous contracts like ES1! and dated contracts like ESZ2025) and matches it — along with its known Micro ticker — against a built-in list of instruments. If the symbol isn't recognized, the table is replaced with a clear red "Unsupported Asset" warning instead of showing incorrect numbers.
If the asset is recognized but the size you selected (Mini/Micro) doesn't actually exist for that instrument (e.g. there's no Micro Platinum), you'll get an orange warning instead of silently wrong output.
Supported instruments and their specs:
Asset | Root / Micro ticker(s) | Tick Size | Mini $/pt | Micro $/pt
E-mini S&P 500 | ES / MES | 0.25 | $50 | $5
E-mini Nasdaq 100 | NQ / MNQ | 0.25 | $20 | $2
E-mini Dow | YM / MYM | 1.0 | $5 | $0.50
E-mini Russell 2000 | RTY / M2K | 0.10 | $50 | $5
Gold | GC / MGC (also XAUUSD, GOLD) | 0.10 | $100 | $10
Silver | SI / SIL (also XAGUSD) | 0.005 | $5,000 | $1,000
Platinum | PL | 0.10 | $50 | N/A
Copper | HG / MHG | 0.0005 | $25,000 | $2,500
Crude Oil | CL / MCL | 0.01 | $1,000 | $100
Natural Gas | NG / MNG | 0.001 | $10,000 | $1,000
Heating Oil | HO | 0.0001 | $42,000 | N/A
RBOB Gasoline | RB | 0.0001 | $42,000 | N/A
US Dollar Index | DX | 0.005 | $1,000 | N/A
Euro FX | 6E / M6E | 0.00005 | $125,000 | $12,500
British Pound | 6B / M6B | 0.0001 | $62,500 | $6,250
Australian Dollar | 6A / M6A | 0.0001 | $100,000 | $10,000
30-Yr T-Bond | ZB | 1/32 (0.03125) | $1,000 | N/A
10-Yr T-Note | ZN | 1/64 (0.015625) | $1,000 | N/A
Wheat | ZW | 0.25 | $50 | N/A
Soybeans | ZS | 0.25 | $50 | N/A
Corn | ZC | 0.25 | $50 | N/A
Cotton | CT | 0.01 | $500 | N/A
Sugar | SB | 0.01 | $1,120 | N/A
Coffee | KC | 0.05 | $375 | N/A
Cocoa | CC | 1.0 | $10 | N/A
"N/A" means that instrument currently has no Micro-sized version on the exchange — the script will flag this rather than show a value.
Inputs
Max Risk Amount ($) – the dollar amount you're willing to risk on the trade.
ATR Length – lookback period for ATR (default 14).
ATR Multiplier – multiplies ATR to set the stop distance (default 1.5).
Force Even Number of Contracts – when enabled (default), an odd contract count is rounded down to the nearest even number; disable to allow any whole number.
Contract Type – Mini or Micro. Pick whichever you actually trade; the asset detection is independent of this.
Table Position / Text Size – purely cosmetic.
Reading the table
Header – detected asset, contract size, ATR multiplier in use, and your configured risk amount.
Contracts Allowed – the final, tick-valid, (optionally) even-rounded contract count.
Stop Loss Distance – the tick-rounded stop distance, shown in both points and whole ticks.
Max Risk ($) – your actual dollar risk at that contract count — always at or below your configured max risk.
Notes & disclaimer
Contract specifications (tick size, point value) reflect standard CME/ICE specs at the time of publishing. Exchanges occasionally revise these — please verify against your broker/exchange before relying on this for live sizing.
This indicator does not generate entry or exit signals. It is a risk-management and position-sizing calculator only.
Nothing in this script constitutes financial advice. Futures trading involves substantial risk of loss and is not suitable for all investors. Past volatility is not indicative of future volatility.
Индикатор

Session Levels Pro [PineLogic]Session Levels Pro draws the reference prices intraday traders mark up by hand every morning - previous day and previous week extremes, today's open, and the opening range - and keeps them updated on one clean, non-repainting overlay.
WHAT IT PLOTS
PDH / PDL / PDC - previous day high, low and close
OPEN - today's opening price
PWH / PWL - previous week high and low
ORH / ORL - the opening range high and low, measured over a configurable number of minutes from the session open (default 15)
Each level is a single line with a right-hand label showing the level name and its exact price, so you can read the number without hovering.
HOW IT WORKS
Daily and weekly values are pulled with request.security() using lookahead together with a one-bar offset (high , low , close ). That combination is the correct non-repainting idiom: it returns only the completed prior period, so a level never changes after the fact, and what you see on history is what you would have seen live.
The opening range is tracked forward from each new daily bar. While the elapsed time is inside your chosen window the running high and low expand; once the window closes, ORH and ORL are fixed for the rest of the session. The opening range only appears on intraday timeframes, since it has no meaning on daily and above.
Levels are drawn once and repositioned on the last bar rather than redrawn per bar, which keeps the object count flat regardless of history length.
HOW TO USE IT
Most intraday approaches treat these prices as the day's decision points: a clean break and hold above PDH or the opening range high is continuation, a rejection back inside is a fade, and PWH/PWL frame the wider weekly context. The script marks the levels; it does not tell you which way to trade them.
ALERTS
Six alertcondition entries are included - break above/below PDH, PWH and ORH, and their downside equivalents. Create the alert from the chart and pick the condition you want.
SETTINGS
Toggle every level group independently (daily, weekly, opening range)
Opening range length in minutes, 1-240
Colours for high, low, neutral and opening-range levels
How far to the right the lines and labels extend
NOTES
Non-repainting by construction, as described above.
Previous-day and previous-week values depend on the symbol's session definition, so they follow whatever the exchange feed reports.
Works on any symbol; the opening range needs an intraday timeframe.
Open-source - read the code, change it, use it. Индикатор

Consolidation Breakout with Volume Confirmation [Daily]What this does
This indicator detects consolidation zones on price charts and flags breakouts confirmed by volume — in both directions (bullish breakouts and bearish breakdowns).
Methodology
Scans a flexible lookback window (10–30 bars, adjustable) for the tightest qualifying price range, so it captures both short flags and multi-week bases without needing separate settings for each.
A zone is drawn once a window's high-low range falls under a configurable tightness threshold (default 8%).
Zones where average volume during consolidation is below its own 50-bar baseline are marked in green ("volume dry-up") as a soft indicator of higher conviction — this is informational, not a hard filter.
A breakout fires on a close beyond the zone boundary, confirmed by volume at least 1.5x (configurable) the zone's average — symmetric logic for both long breakouts and short breakdowns.
A cooldown period after each breakout reduces false re-triggering during choppy conditions.
Each breakout label also tags candle quality (strong/weak close within the bar's range) and whether the move gapped through the zone or ground through it intraday — additional price-action context alongside the volume read.
Timeframe
Designed and tested on the Daily timeframe. All settings (lookback, cooldown, volume baseline) are counted in bars, so they do not scale automatically across timeframes — a 5-bar cooldown means 5 trading days on Daily, but a very different real-world duration on 4H, Weekly, or other timeframes. If you use this on a different timeframe, re-tune the inputs rather than relying on the defaults.
Alerts
Built-in alert conditions for both bullish breakouts and bearish breakdowns — set once per chart to get notified without watching live.
Disclaimer
This is a screening/context tool, not a standalone buy/sell signal. All thresholds are adjustable in settings — test and tune them for the instruments you trade. Always confirm with your own analysis and risk management. Not financial advice. Индикатор

Market Structure BOS/CHoCH + Break Follow-Through [ForexCracked]🔵 OVERVIEW
Most market structure indicators stop at the break. This one keeps counting after it.
It draws the structure the way you already read it: confirmed swing highs and lows tagged HH, HL, LH and LL, a solid line at the level that would flip the current structure, and a BOS or CHoCH label the moment a bar closes through a swing. Then it does the part most structure tools stop short of. For every break it watches what price did next, files the outcome, and prints the counted result on the chart with the sample size next to it.
So the label on a break does not just say BOS. It says BOS, and that on this chart breaks like this one reached 1 ATR beyond the level before snapping back 116 times out of the last 200.
🔵 THE ANSWER IS THERE BEFORE THE BREAK
The two live levels, the last confirmed swing high and swing low that price has not yet closed through, are drawn as blocks at the right edge of the chart, teal above price and pink below. Each block is captioned with the break it would be under the current structure (BOS or CHoCH), the price, the distance, and what breaks of that kind did here: "BOS above 1.08420 · 12p · 1.0 ATR reached 116/200 (58%) · typical run to 1.08790".
The block's height is not decoration. It is the measured median run after breaks of that class on this symbol, so the top of the teal block is a price that breaks like this one typically reached. Medians print from eight samples and percentages from the minimum n. Below that the block falls back to the follow-through distance and its caption reads "finish line at" instead of "typical run to". A block never draws thinner than the minimum block height, and when that floor is what sets its height the caption reads "run floor at".
🔵 HOW A BREAK IS MEASURED
A break is a bar that closes through a live swing level. It is a BOS if it goes with the current structure and a CHoCH if it goes against it and flips it.
From the next bar the script runs a race with two finish lines the same distance from the level: 1 ATR beyond it in the break direction, and 1 ATR back through it on the other side. ATR is frozen at the break bar so later volatility cannot move the finish lines. Whichever is touched first decides the outcome: reached, or snapped back. If one bar touches both lines it is filed as snapped back, the conservative reading. If neither is touched within 30 bars the outcome is filed as neither. Nothing is estimated and nothing is fitted. Every figure is a count of price events on the chart in front of you, over the last 200 filed breaks of that class, and the n printed beside it is the real count.
Wick-only breaks, where a bar trades through a level but closes back inside, are measured with the same race in their own class. They are never drawn as events (the level's block border turns dashed once it has been wicked), but their number sits on the level's caption, so "should I wait for the close" gets an answer from your own symbol instead of a rule of thumb.
🔵 THE RUN BOX
After each close break a box is drawn from the level in the direction of the break. Its height is the median run for that class, its width the median bars it took to reach the finish line, and its caption prints the far edge as a price. The box then records what this particular break did: the border thickens when the finish line is reached, the box hollows and its border goes dashed when the break snaps back, and it fades if neither happens. The last few breaks stay on the chart as filled or hollow shapes, so the recent record is visible without reading a single number.
The break label itself is frozen at the moment of the break. It shows what the tool said at the time, never a hindsight figure. Only the outcome is added to it afterwards.
🔵 THE SWINGS
Swings are confirmed by price, not by counting bars. A swing high is confirmed the first time a bar closes a set number of ATR below it, and a close through the previous swing confirms the swing in between. There is no lookback length to tune and the same setting reads the same on gold, indices, crypto and forex. Tags land on the swing bar when the swing confirms, so they appear a few bars after the extreme printed. That is confirmation lag, not repainting. No tag, break line or break label is ever moved; only the outcome text is added to a label later. The two right-edge blocks and the panel are redrawn every bar by design, so their height follows the current ATR.
🔵 WHAT IS ON THE CHART
• HH, HL, LH and LL tags on confirmed swings (the first swing of each side is tagged H or L)
• A dashed border on a block means that level has already been wicked without a close through it
• A solid structure line at the level that would flip the current structure, teal under price while bullish and pink above it while bearish, with the dealing range shaded between it and the other live level
• A block at each live level, projected into the space right of price, captioned with the break type, the price, the distance and the counted result for breaks like it
• A line from each broken swing to the bar that closed through it, with a BOS or CHoCH label carrying the count as it stood at that moment
• A run box after each break, filled or hollow depending on what the break did
• A compact panel restating the structure, the two levels, the class counts and the last break
🔵 WHAT THIS IS NOT
This script draws no entries, no stops, no targets and no arrows. It has no order blocks, no fair value gaps, no sessions and no higher timeframe calls. It does not tell you to trade a break. It does not map liquidity pools, equal highs and lows or session extremes, does not count how often price reaches them, and does not mark sweeps or reversals. It is the structure map with the follow-through counted, so you can see on your own symbol whether the breaks you are reading have tended to carry on or to come straight back.
🔵 HOW TO USE
• Read the two blocks first. The block above is the level a close must clear and what happened after closes like that; the block below is the level a close must lose. The prices are printed.
• Treat the follow-through percentage as a base rate for this class on this chart, not as a forecast for this break. One hundred and sixteen out of 200 is a description of the past.
• Use the class split. If close breaks on your chart reach 1 ATR far more often than wick-only breaks, waiting for the close is worth its cost here. If the two numbers are close, it is not.
• Watch the run box after a break rather than the label. A box that hollows out is a break that snapped back, and the structure line will tell you where the next flip sits.
• Lower the swing setting to 1.0 ATR to see internal structure, raise it to 2.0 or more on choppy symbols so only real pullbacks count as swings.
🔵 SETTINGS
• Swing confirmation (x ATR): the close distance from the running extreme that confirms a swing (default 1.5)
• Follow-through distance (x ATR): the two finish lines, the same distance either way from the level (default 1.0)
• Outcome window (bars): how long the race runs before the outcome is filed as neither (default 30)
• Breaks kept per class: the rolling window every count is taken over (default 200), and the minimum n before a percentage prints (default 20)
• Chart: break lines to keep, run boxes to keep, minimum block height, how far the blocks project right, the dashboard and its position, colours
• Works on any symbol and any timeframe. Charts with little history print n below the minimum until the numbers fill in
🔵 ALERTS
• Bullish BOS, bearish BOS, bullish CHoCH, bearish CHoCH, each on the closing bar
• Wick-only break: price traded through a structure level and closed back inside
• Break reached its follow-through distance
• Break snapped back
• Price within a quarter of an ATR of a live structure level
The engine is close-based, so set alerts to fire once per bar close.
⚠️ DISCLAIMER
BOS and CHoCH are community terms for market structure. This is independent work and is not affiliated with or endorsed by any educator or course.
The percentages are counted descriptions of what happened after past breaks on this chart, not predictions. A class that reached its follow-through distance 70 times in 100 can snap back today. Samples vary by symbol and timeframe, and small samples are unreliable by nature, which is why every figure carries its n and prints nothing below the minimum. Nothing here is a trade signal. Results depend on market conditions, settings, and your own execution and risk management. Shared for educational and research purposes. Not financial advice. Индикатор

NQ OVN AM AmplitudeNQ Overnight → AM Amplitude
Measures the Nasdaq futures overnight range (18:00–06:00 New York) and compares it with the morning range (09:30–12:00). It also prints a 2× ATR stop distance so you can size risk without leaving the chart.
What it shows
OVN Range — high minus low of the full 18:00–06:00 NY session, in points and percent
AM projected — expected 09:30–12:00 range
Overnight above the 60-session median → 0.95× OVN
Overnight below the 60-session median → 1.93× OVN
Those two multipliers come from an NQ hourly study (577 sessions, Apr 2024–Sep 2026)
AM current — live 09:30–12:00 range, same format
2× ATR stop — ATR(14) × 2, in points and percent (timeframe selectable)
OVN and AM projected lock at 06:00 and stay until the next session. AM current updates through noon. Percent values use 3 decimals (0.000%).
How to use
Apply on NQ1! / MNQ1! (needs overnight data). Works on 1-minute; overnight classification uses 15-minute history in the background.
After 06:00, read OVN and the projected AM size.
During the cash morning, watch AM current versus AM projected.
Place stops using the 2× ATR line. On a 1-minute chart, set ATR timeframe to 5 or 15 if the stop looks too tight.
Inputs
Timezone (default America/New_York)
History timeframe and lookback for the overnight median
Small / large overnight multipliers (1.93 / 0.95)
ATR period, ATR timeframe, stop multiple
Notes
This is a range map, not an entry signal. The 0.95 / 1.93 factors are historical medians of AM÷OVN, not a guarantee. Futures only. Not financial advice. Индикатор

Volatility Bands IV-RV The question this answers
Every expected-move indicator draws the range options are pricing. Almost none of them tell you whether that range is any good. This one measures the implied range and the realized range side by side, then counts how often price actually finished outside each of them.
Three layers
The cones. Two ranges are drawn across history, both anchored one horizon back and re-anchored every week. The amber cone is built from implied volatility, read from India VIX. The cyan cone is built from realized volatility, measured on weekly bars of the chart symbol. Both are scaled to the same horizon with the same geometry, so a difference in width is a difference in volatility and nothing else.
Shading is nested rather than overlapping. The neutral core is the range both measures agree on. The band outside it is the gap between them, coloured by whichever cone sits on the outside. That gap is the variance risk premium made visible, and when it changes colour, realized has overtaken implied.
The breach layer. Every bar that closes outside a cone is shaded. On its own this means very little, and that is the point most published expected-move scripts miss. A one-sigma cone is breached about 31.7 percent of the time by construction. So the readout states the expected rate next to the rate actually observed on your loaded history, for both cones separately.
If the implied cone is breached far less often than expected, implied volatility was systematically wider than the index needed. If it is breached more often, it was too narrow. That comparison is evidence. The shading alone is not.
The forward cone. From the current bar, projecting one horizon ahead, using the latest confirmed weekly volatility. Same nested construction. It is a distribution, not a direction.
How it is calculated
Implied leg. India VIX is an annualised implied volatility in percentage points, rescaled to the horizon by the square root of the horizon over 52.
Realized leg. Weekly log returns over the lookback, scaled to the horizon by the square root of the number of weeks. Three estimators:
Yang-Zhang, the default. Weekend-gap variance, open-to-close variance and the Rogers-Satchell range term, weighted by the standard k factor. It uses the whole weekly bar and is the most efficient and most drift-independent.
Std Dev. Sample standard deviation of weekly close-to-close log returns. Blind to everything inside the week.
ATR%. Weekly Average True Range as a fraction of price, times a factor you set. Range-aware, but the factor is a convention.
Bands are lognormal by default. That is not cosmetic: under a zero-drift random walk the expected breach rate of a lognormal band is exactly 2(1 - Phi(k)), so the observed-versus-expected comparison is exact rather than approximate.
Timeframes
All volatility maths runs in the weekly context, so the readings are identical on a 15-minute chart and on a weekly chart. Use any timeframe up to Weekly. Above Weekly the indicator disables itself and says why, because a weekly request from a monthly chart returns partial bars.
Alerts
Six: the implied-to-realized ratio crossing either threshold, and price closing outside either cone in either direction.
Limitations, stated plainly
India VIX measures implied volatility on NIFTY 50. The implied source is an input so you can pair another index with its own volatility index, not so you can run this on any symbol. Pairing one instrument's implied volatility with another's realized volatility is meaningless.
The breach sample counts weeks, not independent trials. Consecutive windows overlap by all but one week, so divide n by the horizon for a rough independent count and do not read small differences as significant.
The realized cone is estimated from the same series it is tested against, so its observed breach rate is not an out-of-sample result. The implied cone does not have this problem, which is part of why the two are reported apart.
Counting starts at the left edge of your loaded history, which varies by subscription and timeframe. Two users can see different n on the same symbol.
Square-root-of-time scaling assumes weekly returns are independent. Real index returns cluster in volatility, so it understates the tails in a stress regime and overstates them coming out of one.
The implied leg uses a single at-the-money volatility number and ignores skew, so it understates downside and overstates upside against the real option surface.
One sigma is a description of a distribution, not a boundary. Cones being broken is expected behaviour.
This plots volatility. It produces no directional signal, no entries and no exits.
Not financial advice. For education and research only. Индикатор

Индикатор

Mbedaiwi - Market Structure and Price Action mbedaiwi - Market Structure & Price Action
Overview
This Pine Script v6 overlay brings market structure, liquidity events, order blocks, volume estimates, price imbalances, and chart-pattern candidates into one configurable workspace. It helps users examine where price has broken structure, where earlier zones remain active, and how several observations align on the same chart.
The indicator is intended for discretionary analysis and chart study. It is not an automated execution system or a backtested TradingView strategy.
Purpose and benefits
Compare short-term internal structure with broader swing structure.
Organize potential reaction areas using order blocks, imbalances, liquidity levels, and range bands.
Compare the volume associated with visible order blocks through an overlay or a separate right-side display.
Select the modules and labels needed for a particular workflow, reducing chart clutter.
Use alerts to monitor defined events without continuously watching the chart.
The integration follows a practical sequence: establish structure, locate relevant areas, observe price interaction, and optionally evaluate a rule-based setup. The components provide context for one another; agreement between them does not establish a probability of success.
1. Market structure
Internal and swing structure can be configured separately. The script supports SMC leg-transition detection and symmetric pivot detection, with adjustable lengths.
BOS: a break classified as continuation of the current structural direction.
CHoCH: a break against the previous structural direction.
CHoCH+: a CHoCH supported by an intervening higher low for a bullish change, or lower high for a bearish change, under this script's pivot and sequence rules.
HH, HL, LH, and LL: higher highs, higher lows, lower highs, and lower lows.
Strong/Weak High-Low: structural classifications based on the current directional state, not forecasts of whether a level will hold.
Each structure selector offers All, BOS, CHoCH (All), CHoCH, CHoCH+, and None. CHoCH (All) includes both ordinary and supported changes; CHoCH and CHoCH+ select their respective classifications. The separate Show BOS and Show CHoCH switches also affect visibility.
Historical and Present display modes, candle coloring, label sizes, and colored or monochrome themes provide additional control.
2. Order blocks and volume display
The script includes independent swing-break, volume-pivot, and legacy structure-break order-block engines. Available controls include zone boundaries, mitigation rules, retained-zone counts, overlap suppression, midlines, and breaker display.
Volume information can appear on the price-chart overlay, in a right-side chart, or in both locations. Users can choose the volume accumulation interval, including the interval between a broken pivot and its break, an origin window, or an origin-based interval.
How to read the volume numbers
The displayed volume belongs to the selected calculation interval. The percentage is that block's share of the summed volume of currently displayed non-breaker blocks. Changing visible blocks, filters, or retention settings can therefore change the percentages. They are not win rates or percentages of the instrument's entire trading volume.
Internal buy/sell activity is an OHLCV-based estimate. Close-location mode allocates volume according to the close's position within each candle's range; candle-direction mode allocates it according to candle direction. These estimates do not measure actual bid/ask transactions, institutional orders, or order-book liquidity. Volume-dependent outputs rely on the data supplied for the symbol.
3. Liquidity tools
Equal Highs and Equal Lows use an adjustable ATR-based tolerance. Liquidity Grabs identify excursions beyond tracked levels followed by a return inside those levels, subject to the detection rules.
Grabs are displayed as hollow frames around the relevant candle wick: blue for bullish lower-wick grabs and red for bearish upper-wick grabs by default. Optional text can be enabled. Detection sensitivity and retained history are adjustable.
Live previews can change or disappear before the candle closes. Liquidity Grab alerts require a confirmed bar. Separate trendline tools and trendline-break alerts are also available.
4. Price imbalances
The imbalance selector displays one of five types:
FVG: a three-candle gap between the first and third candles' price ranges.
Inverse FVG: a tracked FVG that is breached and reclassified in the opposite direction.
Double FVG: an overlapping area between a new FVG and a tracked opposite-direction FVG.
Volume Imbalance: a gap between adjacent candle bodies while their wick ranges overlap. Despite the name, this detection is price-based.
Opening Gap: a gap between adjacent candle ranges.
Controls include source timeframe, volatility threshold, extension, mitigation method, and maximum retained zones. The imbalance timeframe must be the chart timeframe or higher. Higher-timeframe imbalance detection uses completed source candles, so it becomes available after source-bar confirmation.
To hide only the FVG/type text while retaining the shaded zones, disable Show Imbalance Type on Zones. Re-enable it at any time from Inputs.
5. Premium, equilibrium, and discount
Optional bands divide a selected Swing, Internal, or Impulse range into upper, middle, and lower reference areas. Band width and colors are adjustable. These areas describe relative position within the selected range; they do not measure fundamental fair value or guarantee a reversal.
6. Chart-pattern candidates
The pattern module classifies recent pivot geometry and can display pattern boundaries, shaded zones, and a Detected Pattern table. Candidate types include triangles, wedges, broadening wedges, double tops/bottoms, and head-and-shoulders formations.
Pattern drawings are separate from the trendline module. Detection depends on pivot length, available history, and tolerance settings. In this release, a displayed pattern can remain after price has moved outside its boundaries until the detection state updates. Treat the pattern name as a geometric candidate, not confirmation that a formation remains valid or that a breakout will succeed.
7. Additional context and optional setup planning
Optional Fibonacci retracements, an OTE region, extension levels, and previous daily/weekly/monthly/quarterly highs and lows provide additional reference points.
The optional setup layer combines structural events with configurable checks such as liquidity sweeps, order-block or imbalance interaction, displacement, higher-timeframe direction, EMA alignment, volume, and RSI. Score and Strict modes control how these conditions are evaluated.
When enabled, the trade layer can display a hypothetical entry, stop, and up to three targets using configurable zone, structure, ATR, or risk-multiple methods. These are rule-based planning levels, not executed orders or verified performance results. The default mbedaiwi profile suppresses the trade layer.
How to use
Add the indicator to a standard candlestick chart and choose an analysis profile. The default mbedaiwi profile uses internal length 5, swing length 50, and close-based structural breaks. Select Custom or enable Override profile lengths when you want the manual lengths to take effect.
Choose the internal and swing events you want to see. Start with structure and a small number of zones before enabling additional modules.
Enable order-block metrics if you want volume comparisons. Select the accumulation method and overlay/side-chart layout appropriate for your analysis.
Enable Liquidity Grabs and select detection sensitivity. Distinguish a live preview from a completed event.
Choose an imbalance type and its mitigation method. Add premium/discount bands or prior-period levels if they help define context.
Enable Patterns only when studying pivot-based formations, and check the actual candles against the displayed boundaries.
Use Clean chart mode, individual visibility switches, label sizes, and zone-count controls to manage clutter. The Show tables switch controls on-chart tables.
If using the optional setup layer, choose a compatible profile, review all filters and risk settings, and evaluate its behavior before relying on the planning levels.
Reading entries, stops, targets, and exits
Use the indicator as a sequence of observations: structural direction, an area to monitor, confirmation, and a predefined risk/target plan. A BOS, CHoCH, or Liquidity Grab on its own is not an automatic instruction to buy or sell.
Step 1 - Read the structural context
Start with Swing Structure for the broader context, then use Internal Structure to examine shorter movements. Higher highs and higher lows describe an upward structure; lower highs and lower lows describe a downward structure. A bullish BOS is classified as continuation, while a bullish CHoCH marks a potential change from the preceding bearish structure. CHoCH+ adds the script's supporting pivot-sequence condition; it does not guarantee a reversal.
An internal bullish change can occur while swing structure remains bearish. Always identify which structure level produced the label. Pivot confirmations can arrive after the turning point and be drawn back at the earlier pivot bar.
Step 2 - Identify an area to monitor
A bullish order block, bullish FVG, discount band, previous low, or Equal Lows can provide a reference area for studying a possible bullish reaction. Price entering an area only establishes an interaction; it does not confirm that a rebound has started. Order-block volume percentages are calculated volume shares, not probabilities that the area will hold.
Step 3 - Observe confirmation
The following is an illustrative manual reading sequence, not the mandatory algorithm behind every setup generated by the script:
Price reaches a previously identified reference area.
Price moves below a tracked low and closes back above it, producing a confirmed bullish Liquidity Grab if the detection conditions are met.
Price subsequently breaks an internal structural level upward, producing a bullish CHoCH or CHoCH+ under the script's rules.
The user evaluates the completed confirmation candle or a later retest of the broken level, together with the broader structure and the planned invalidation level.
A retest may never occur, and confirmation can still fail. Do not assume that a marker anchored to an earlier candle was available in real time on that candle.
Step 4 - Understand the optional planning layer
The planning layer displays hypothetical levels when its setup conditions are satisfied:
Entry method: Market, Fibonacci, or Zone determines the entry-reference calculation.
Stop method: Structure, ATR, or Zone determines the stop-reference calculation. The selected invalidation level defines where the planned idea no longer applies.
Target method: Risk multiple, Smart money, or Hybrid determines how target references are calculated.
TP1, TP2, and TP3: up to three target references, according to the selected method.
Move stop to breakeven after TP1: updates the hypothetical stop to the entry reference after the first-target condition is met.
These are chart calculations. They do not send orders to a broker, establish actual fills, or move a real stop order.
To make this layer available, choose a profile such as Custom, enable Show trade layer (entry / SL / TP), and disable Structure only. The default mbedaiwi profile suppresses the trade layer. Enabling the display does not guarantee that levels appear immediately: the selected signal conditions and filters must also be satisfied.
Step 5 - Read risk multiples: a numerical example
Consider a hypothetical entry at 100 and a stop at 98. The distance between them is 2 per share, so 1R equals 2. In Risk multiple target mode:
Entry reference: 100.
Stop reference: 98.
1R target: 102.
2R target: 104.
3R target: 106.
This example explains arithmetic only. It is not a trade recommendation, a prediction, or a result produced by a backtest. It excludes fees and slippage. A real fill can differ from the plotted reference, and an actual exit can differ from the stop price. If the hypothetical breakeven option is enabled, a qualifying TP1 event changes the plotted stop reference to 100; this does not guarantee a cost-free exit in actual trading.
Step 6 - Interpret exits and changes in structure
A TP reached alert means that the script's target condition has been met. A Stop-loss reached alert means that its stop condition has been met. Neither confirms that a broker executed an order.
A bearish CHoCH during an upward move provides information about a structural change. It does not automatically mean that the planning layer closed a position, nor that every internal change requires the same response. Target exits, invalidation exits, and any discretionary response to opposing structure should be defined before acting on a setup. The script does not automatically carry out partial sales or discretionary exits described by a user's plan.
Manual analysis versus calculated setups
The manual sequence above explains how the visual components can be read together. The optional planning layer instead evaluates its configured rules, filters, and calculation methods. It does not necessarily require that exact sequence. Neither workflow supplies verified profitability or guarantees that a displayed setup will succeed.
Alerts
Available conditions cover internal and swing BOS/CHoCH/CHoCH+, liquidity grabs and sweeps, equal highs/lows, imbalance formation, zone interactions, order-block breaks, trendline breaks, detected patterns, and optional setup/target/stop events.
Select this indicator in TradingView's Create Alert dialog, then choose the event. Use Once Per Bar Close when you want close-confirmed notifications. General CHoCH alerts also include supported changes; separate CHoCH+ conditions are available. Some touch conditions can remain true across consecutive bars, so they should not be interpreted as one notification per zone for its entire lifetime.
Timing, historical drawings, and limitations
Pivot-based features require later bars to confirm earlier turning points. Labels and zones may be anchored back to those earlier bars, although the information was not available at that time.
Live candles and enabled previews can change before close. This indicator is not presented as universally non-repainting.
Zone removal depends on mitigation, age, overlap, and retention settings. Older drawings can disappear as new observations replace them.
Results depend on the symbol, timeframe, session, available history, and settings. Different indicators can use different definitions and produce different results.
The confluence score is a rule-based score, not a calibrated probability. Volume percentages and Strong/Weak labels are not measures of signal accuracy.
The planning layer does not provide a broker execution model, Strategy Tester results, or verified profitability. No accuracy, return, or future-performance claim is made.
Source acknowledgment
The hierarchical pivot-detection logic used in the Liquidity Grabs module is adapted from LuxAlgo's open-source "Pure Price Action Liquidity Sweeps", licensed under CC BY-NC-SA 4.0. Modifications include wick-frame rendering, display controls, and alert handling. Credit for the adapted source logic belongs to LuxAlgo.
This acknowledgment concerns the identified open-source component and does not imply access to LuxAlgo's closed-source Price Action Concepts indicator. This publication is not affiliated with or endorsed by LuxAlgo.
Intended use
For educational chart analysis and discretionary decision support. Users remain responsible for validating the settings, interpreting signals, and managing risk. No displayed zone, pattern, or setup guarantees a particular market outcome.
Индикатор

IV vs RV Volatility ConesWhat it does
It draws two cones around the same anchor price. One is built from implied volatility, read from India VIX. The other is built from realized volatility, measured on weekly bars of the chart symbol. Both are scaled to the same horizon and drawn with the same geometry, so their widths are directly comparable.
Where the implied cone is wider than the realized cone, the option market was charging for more movement than the index actually delivered. Where it is narrower, the index outran what options were priced for. That gap is the variance risk premium, and it is the whole point of the indicator.
Two cones, two jobs
The historical cone is anchored to a weekly close one horizon in the past, so the whole four-week journey sits inside it and you can see how it resolved. Price finishing outside the realized cone means the index moved further than its own recent volatility said it usually does. Price finishing outside the implied cone means it moved further than options had paid for.
The forward cone starts at the current bar and projects one horizon ahead, using the latest confirmed weekly volatility reading. It is a distribution, not a forecast of direction.
How it is calculated
Implied leg. India VIX is an annualised implied volatility quoted in percentage points. It is rescaled to the horizon by the square root of the horizon over 52.
Realized leg. Weekly log returns are measured over the lookback, then scaled to the horizon by the square root of the number of weeks. Three estimators:
Yang-Zhang, the default. It combines the weekend-gap variance, the open-to-close variance and the Rogers-Satchell range term, weighted by the standard k factor. It uses the whole weekly bar and is the most efficient and most drift-independent of the three.
Std Dev. Sample standard deviation of weekly close-to-close log returns. Simple, and blind to everything inside the week.
ATR%. Weekly Average True Range as a fraction of price, times a user-set factor. Range-aware, but the factor is a convention rather than a derivation.
Both cones use the same geometry, lognormal by default, so a difference in width is a difference in volatility and nothing else.
Reading the panel
The readout gives the one-sigma figure for each leg in percent, the resulting price cone for each, and the ratio of the two. A verdict line calls the ratio rich, fair or cheap against thresholds you set. Rich means implied is running above realized. That is the normal state for an index, so the useful signal is the size of the gap and its direction of travel, not its sign.
Timeframes
All volatility maths runs in the weekly context, so the values are identical on a 15-minute chart and a weekly chart. Use any timeframe up to Weekly. Above Weekly the indicator disables itself and says so, because a weekly request from a monthly chart returns partial bars.
Alerts
Four are provided: implied crossing above the rich threshold, implied crossing below the cheap threshold, and price closing outside the realized cone in either direction.
Limitations, stated plainly
India VIX measures implied volatility on NIFTY 50. Point the implied source at something else and you are comparing one instrument's implied volatility against another's realized volatility, which means nothing. The input exists so you can pair a different index with its own volatility index, not so you can run this on any symbol.
One sigma is a description of a distribution, not a boundary. Roughly one period in three should finish outside a well-calibrated one-sigma cone. Bands being broken is expected behaviour, not a signal.
Square-root-of-time scaling assumes weekly returns are independent. Real index returns cluster in volatility, so the scaling understates the tails during a stress regime and overstates them coming out of one.
The implied leg uses a single at-the-money-ish volatility number and ignores skew, so it will understate downside and overstate upside relative to what the option surface actually prices.
Realized volatility is backward-looking by construction. It tells you what just happened, not what is about to.
This plots volatility. It produces no directional signal, no entries and no exits.
Not financial advice. For education and research only. Индикатор

TF: Trend Participation Monitor (TPM)TradingFlow: Trend Participation Monitor (TPM)
TradingFlow: Trend Participation Monitor (TPM) combines price behavior and relative volume in a separate pane to show recent directional pressure and whether that pressure is improving or deteriorating relative to its recent average.
TPM is designed to track relatively short-term changes in price/volume pressure. The time horizon depends on the chart timeframe and lookback settings.
TPM separates the level of pressure from the change in pressure. Positive pressure can be weakening, while negative pressure can be recovering. This helps traders distinguish the direction of recent price/volume behavior from changes in its strength.
TPM is a pressure monitor, not a predictive reversal indicator or a standalone entry and exit system.
Price and Participation Model
The model combines two components with equal weight: directional price efficiency and relative-volume-weighted bar pressure.
Price efficiency compares net price movement with the total distance traveled by consecutive closes. Bar pressure combines the close-to-close move, normalized by the previous bar's ATR, with the close's position within the candle range. Close-to-close movement includes gaps; closing near the high after a gap down does not automatically make the bar positive.
Relative volume compares each bar's volume with the average of preceding bars. Its contribution is capped to limit the influence of isolated volume spikes. The result is smoothed into a pressure score bounded between -100 and +100. This is a price/volume proxy, not actual buy/sell volume or measured capital flows.
Pressure and Reference Lines
The blue line shows pressure. Values above zero indicate positive pressure within the model, while values below zero indicate negative pressure. The gray line is a slower average of that pressure, providing a reference for recent change.
Recent Change Histogram
The histogram equals half the difference between pressure and its reference. It measures pressure relative to its recent average, rather than price direction or the change from just one bar ago.
With default settings, a change score must remain at or above +5, or at or below -5, for two consecutive bars to receive a confirmed directional color.
Four-Shade Color System
Purple represents confirmed improvement; gold represents confirmed deterioration.
Gray: the threshold or confirmation requirement has not been met.
Darker shades indicate columns growing away from zero; lighter shades indicate columns shrinking toward zero or remaining unchanged, compared with the preceding bar. Gray does not mean price is stable, and a lighter gold column can still represent confirmed deterioration even as its magnitude decreases.
Compact Dashboard and Activity Context
The compact table shows the displayed bar status, recent condition, and pressure/change values. The optional detailed view adds volume, rolling relative volume, estimated stock traded value, optional free-float turnover, and data status.
Estimated traded value uses typical price multiplied by volume. Turnover requires a manually supplied free-float figure in millions of shares. Both are stock-only context measurements and do not contribute additional votes to the pressure score. A fixed float figure may not represent historical share counts accurately.
Closed-Bar Display and Alerts
By default, the indicator holds the last completed bar's readings while the current candle forms. Disabling this option displays provisional live values and colors that may change before the bar closes. Alerts remain restricted to bar close and identify newly confirmed improvement or deterioration. They confirm observed pressure changes; they do not identify the start of a price trend.
Volume Data Handling
Missing or invalid volume, a zero-volume evaluated bar, and insufficient usable activity suppress pressure output and alerts. The pressure window needs at least two bars with usable positive volume weights. After missing data, a valid recovery window is required before output resumes. Small positive volume is supported, but thin trading can still produce noisy readings.
How to Read the Chart
Positive pressure with purple columns means pressure is positive and sufficiently above its reference. Positive pressure with gold columns means it remains positive but has weakened relative to that reference.
Negative pressure with purple columns indicates recovery within negative pressure, not a confirmed bullish reversal. A histogram near zero means pressure is close to its reference; it does not establish a sideways price trend.
Flexible Configuration
Users can adjust the activity baseline, pressure window, smoothing, reference length, ATR length, volume cap, change threshold, confirmation period, histogram colors, and dashboard display.
The defaults are intended as a starting point for daily stock charts. All lengths count chart bars. On intraday charts, relative volume uses a rolling-bar comparison, not a same-time-of-day comparison, so session openings, closings, and extended hours can affect readings. Use standard candles and consider the meaning of the symbol's volume feed.
Practical Use
TPM is best approached as a short-term reference when considering entry and exit timing. Its relatively responsive readings can change frequently within an ongoing move, so using every change to reassess an open position may encourage unnecessary second-guessing. For holding decisions, give greater weight to your trading timeframe, broader price structure, and original trade plan. A change in TPM alone is not a reason to enter or exit.
TPM can help assess changes in price/volume pressure during advances, pullbacks, and consolidations. Read it alongside price structure and market context. Smoothing and confirmation introduce delay; faster settings can increase noise. Scores are not probabilities, and TPM does not guarantee future price direction or trading profitability.
---
TradingFlow: Trend Participation Monitor (TPM)
TradingFlow: Trend Participation Monitor (TPM) 結合價格行為與相對成交量,在獨立窗格中呈現近期的方向性壓力,以及壓力相對於近期平均值正在改善還是惡化。
TPM 著重觀察相對短期的量價壓力變化,實際涵蓋的時間範圍取決於圖表週期與回看設定。
TPM 將「壓力的正負」與「壓力的變化」分開呈現。正向壓力可能正在減弱,負向壓力也可能正在回升,讓交易者能區分近期量價表現的方向與強弱變化。
TPM 是壓力觀察工具,並非預測反轉的指標,也不是獨立的進出場系統。
價格與成交參與模型
模型以相同權重結合兩個部分:價格方向效率,以及相對成交量加權的單根 K 線壓力。
價格方向效率比較價格淨變化與連續收盤價的總移動距離。單根 K 線壓力則結合「以前一根 ATR 標準化的收盤價變化」與「收盤價在當根高低區間中的位置」。收盤價之間的變化包含跳空,因此向下跳空後收在當根高點附近,不一定會得到正向判定。
相對成交量比較當根成交量與先前數根 K 線的平均成交量,並限制其權重上限,避免單次爆量過度主導結果。模型經平滑後形成介於 -100 至 +100 的壓力分數。這是根據量價推算的數值,並非實際買賣方成交量或資金流入流出。
壓力線與參考線
藍線代表壓力。高於零表示模型中的正向壓力,低於零則表示負向壓力。灰線是壓力的較慢平均值,用來比較近期變化。
近期變化柱狀圖
柱狀圖等於壓力與參考線差值的一半。它衡量壓力相對近期平均值的位置,並非直接表示價格方向,也不只是與上一根 K 線相比的變化。
預設情況下,變化分數需要連續兩根達到 +5 或以上,或 -5 或以下,才會顯示已確認的方向顏色。
四色深淺設計
紫色代表已確認的改善;金色代表已確認的惡化。
灰色:尚未符合門檻或連續確認條件。
與前一根相比,較深色表示柱體朝遠離零軸的方向增長;較淺色表示柱體朝零軸縮短或持平。灰色不代表價格穩定;淺金色即使正在縮短,仍可能處於已確認的惡化狀態。
精簡資訊表與成交背景
精簡資訊表顯示目前採用的 K 線狀態、近期狀況,以及壓力與變化分數。詳細模式另顯示成交量、滾動相對成交量、股票估算成交額、可選的流通股換手率與資料狀態。
估算成交額以典型價格乘以成交量計算。換手率需手動輸入流通股數,單位為百萬股。這兩項僅提供股票的成交背景,不會額外加入壓力分數,避免重複計入成交量。固定的流通股數也未必能準確反映歷史股數變化。
收盤顯示與提醒
預設在當根 K 線形成期間,維持上一根已收盤 K 線的讀值。關閉此選項後,會顯示即時數值與顏色,兩者在當根收盤前都可能改變。提醒仍只在收盤時觸發,用來通知新確認的改善或惡化。這些提醒確認的是已發生的壓力變化,不代表價格趨勢剛剛開始。
成交量資料處理
當成交量缺失或無效、被評估的 K 線成交量為零,或有效成交活動不足時,指標會停止顯示壓力讀值並抑制提醒。壓力窗口內至少需要兩根具有有效正成交量權重的 K 線。資料缺失後,需累積完整的有效恢復窗口才會重新輸出。極小的正成交量仍可計算,但交投清淡時的讀值可能較嘈雜。
如何閱讀圖表
正向壓力搭配紫色柱,表示壓力為正,且已充分高於參考線。正向壓力搭配金色柱,表示壓力仍為正,但相對參考線已轉弱。
負向壓力搭配紫色柱,代表負向壓力正在回升,並非已確認的多頭反轉。柱狀圖接近零,代表壓力接近參考線,不代表價格必然處於橫盤。
彈性設定
可調整成交量基準期、壓力窗口、平滑期、參考期、ATR 週期、成交量權重上限、變化門檻、確認根數、柱狀圖顏色與資訊表顯示方式。
預設參數以股票日線作為起點,所有週期均按圖表的 K 線根數計算。日內相對成交量採用滾動比較,並非與過往相同時段比較,因此開盤、收盤與延長交易時段可能影響讀值。請使用標準 K 線,並留意商品所提供的成交量資料類型。
實際使用方式
TPM 的定位較適合作為評估進出場時機的短期輔助參考。由於反應較快,即使同一段走勢仍在延續,讀值也可能頻繁變化;持倉期間若每次變化都重新判斷是否續抱,容易反覆猶豫,打亂原有節奏。是否繼續持有,應更重視自己的交易週期、較大範圍的價格結構與原先的交易計畫,不宜僅因 TPM 的變化就決定進出場。
TPM 可協助觀察上漲、回調與整理期間的量價壓力變化,適合搭配價格結構與市場背景使用。平滑與確認機制會帶來延遲;較快的設定也可能增加雜訊。分數並非機率,TPM 不保證未來價格方向或交易獲利。
---
TradingFlow: Trend Participation Monitor (TPM)
TradingFlow: Trend Participation Monitor (TPM) は、値動きと相対出来高を組み合わせ、直近の上昇・下落圧力と、その圧力が最近の平均に対して改善しているか、悪化しているかを別のペインに表示するインジケーターです。
TPM は、価格と出来高から読み取れる比較的短期の圧力変化を捉えることを目的としています。対象となる時間の長さは、チャートの時間足と計算期間の設定によって変わります。
圧力の水準と、その変化を分けて見ることで、プラス圏にありながら勢いが弱まっている状態や、マイナス圏から持ち直している状態を把握できます。
TPM は圧力の変化を観察するためのツールです。反転を予測するものではなく、単独で売買のタイミングを判断するためのシステムでもありません。
価格と出来高を組み合わせたモデル
モデルは「値動きの方向効率」と「相対出来高で加重した各足の圧力」を、同じ比率で組み合わせています。
値動きの方向効率は、期間中の始点と終点の価格差を、終値が上下に動いた距離の合計と比較します。各足の圧力は、前の足の ATR で調整した終値の変化と、その足の高値・安値の範囲内での終値の位置から計算します。終値間の変化には窓開けも含まれるため、下に窓を開けた後にその足の高値付近で引けても、必ずしもプラスの評価にはなりません。
相対出来高は、各足の出来高をそれ以前の足の平均出来高と比較したものです。単発の出来高急増に左右されすぎないよう、計算に使う重みには上限を設けています。計算結果を平滑化し、-100 から +100 の圧力スコアとして表示します。このスコアは価格と出来高に基づく推定値であり、実際の買い・売り別出来高や資金流出入を測定したものではありません。
圧力ラインと基準ライン
青いラインは圧力スコアです。ゼロより上はモデル上の上昇圧力、ゼロより下は下落圧力を示します。グレーのラインは圧力をより長い期間で平均したもので、直近の変化を判断する基準になります。
直近の変化を示すヒストグラム
ヒストグラムは、圧力スコアと基準ラインの差を 2 で割った値です。価格そのものの方向や、単純な前の足との差ではなく、圧力が最近の平均に対してどの位置にあるかを示します。
初期設定では、変化スコアが 2 本連続で +5 以上、または -5 以下になると、条件成立を示す色が付きます。
色と濃淡の見方
紫は改善条件の成立、ゴールドは悪化条件の成立を示します。
グレーは、しきい値または連続確認の条件を満たしていない状態です。
前の足と比べてゼロから離れる方向に棒が伸びると濃い色、ゼロに向かって縮むか横ばいになると薄い色で表示します。グレーは価格が安定していることを意味しません。また、薄いゴールドの棒がゼロに向かって縮んでいても、悪化の判定条件は引き続き満たしている場合があります。
コンパクトな情報テーブル
通常表示では、表示対象の足の状態、直近の判定、圧力スコアと変化スコアを確認できます。詳細表示では、出来高、相対出来高、株式の推定売買代金、任意設定の浮動株回転率、データの状態も表示します。
推定売買代金は、代表価格(高値・安値・終値の平均)に出来高を掛けて計算します。浮動株回転率を表示するには、浮動株数を百万株単位で手入力してください。いずれも株式向けの参考情報であり、圧力スコアには加算しません。なお、固定の浮動株数では、過去の株数の変化を正確に反映できない場合があります。
確定足の表示とアラート
初期設定では、現在の足が形成されている間も、直前の確定足の値を表示します。この設定をオフにすると、リアルタイムの値と色を表示しますが、どちらも足が確定するまでは変わる可能性があります。アラートは設定にかかわらず足の確定時にのみ発生し、改善または悪化の条件が新たに成立したことを通知します。すでに生じた圧力変化を確認するものであり、価格トレンドの始まりを示すものではありません。
出来高データの扱い
出来高の欠損・無効値、判定対象の足の出来高がゼロの場合、または計算に使える取引データが不足している場合は、圧力の表示とアラートを停止します。圧力の計算期間内には、有効な正の出来高ウェイトを持つ足が少なくとも 2 本必要です。データ欠損後は、所定の期間にわたって有効なデータがそろうと表示を再開します。ごく少量の出来高でも計算できますが、取引が少ない銘柄では値が不安定になることがあります。
チャートの読み方
圧力がプラスで紫の棒が出ている場合は、圧力がプラス圏にあり、基準ラインを十分に上回っている状態です。圧力がプラスでもゴールドの棒が出ている場合は、プラス圏を維持しながらも、基準ラインに対して弱まっていることを示します。
圧力がマイナスで紫の棒が出ている場合は、マイナス圏からの持ち直しを示します。上昇トレンドへの転換が確定したわけではありません。ヒストグラムがゼロ付近にある場合は、圧力が基準ラインに近い状態であり、価格が横ばいであるとは限りません。
カスタマイズ
出来高の比較期間、圧力の計算期間、平滑化期間、基準ラインの期間、ATR の期間、出来高ウェイトの上限、変化のしきい値、確認本数、ヒストグラムの色、テーブルの表示を調整できます。
初期設定は株式の日足を想定しています。各期間は、チャート上の足の本数で数えます。日中足の相対出来高は直前の一定本数との比較であり、過去の同じ時間帯との比較ではありません。そのため、寄り付き・引け・時間外取引の影響を受けます。通常のローソク足で使用し、対象銘柄の出来高データが何を表しているかも確認してください。
活用方法
TPM は、エントリーや決済のタイミングを検討する際の、短期的な補助指標としての利用を想定しています。比較的反応が速く、一つの値動きが続いている途中でも表示が頻繁に変わることがあります。保有中にその変化を追いすぎると、判断がぶれたり、当初の売買計画を必要以上に見直したりする原因になりかねません。保有を続けるかどうかは、ご自身の取引時間軸、より大きな値動きの流れ、当初の売買計画を軸に判断し、TPM の変化だけを理由に売買しないことが大切です。
TPM は、上昇局面、押し目、もみ合いの中で、価格と出来高から読み取れる圧力がどう変化しているかを確認するのに役立ちます。高値・安値の位置関係や相場全体の状況と併せて判断してください。平滑化と確認処理には遅れが伴い、反応を速くする設定ではノイズが増えることがあります。スコアは確率ではなく、将来の値動きや取引の利益を保証するものではありません。
Индикатор

Индикатор

Candle Range [MMT]Candle Range maps active candle ranges across an execution timeframe and higher-timeframe context.
A range uses the seed candle’s full wick high/low and remains active until a candle closes strictly above the high or below the low. That breakout candle becomes the new range, with bullish or bearish direction assigned from the reset. Treat the range like a mother bar. Any candle that doesn't close out side of the mother bar remains as children bars.
Features :
• Execution and context range grids
• High, low, midpoint, 25%, and 75% levels
• Bullish/bearish or single-color styling
• Optional fills, labels, historical grids, and forward projection
• Sweep markers when price wicks outside the execution range and closes back inside
• Optional execution midpoint reclaim/loss markers
• Context/execution alignment and confirmation read
• Range position, breakout strength, and range age
• Historical transition statistics with sample counts
• Data Window outputs for all key range levels and readings
• Alerts for range resets, sweeps, and midpoint events
How To Use It
• Define your context range (1hr for example).
• Move down to your preferred execution timeframe.
• If context range is bullish, only trade long when execution timeframe is also bullish. Vice versa for shorts.
• Preferred entry is at 50% of the execution timeframe.
• Target can be the high/low of the execution timeframe for quick scalp, or aim to hit context range high/low.
• Exit when range is flipped in execution timeframe.
• Don't trade against execution timeframe range direction, i.e DO NOT shorts when range is bullish, even when context range is bearish. This ensures you have higher probability of hitting the trade.
Use the context range for broader directional structure and the execution range for shorter-term confirmation, pullbacks, sweeps, and range transitions.
Statistics are descriptive historical readings based only on confirmed range transitions available on the chart; they are not predictions or trading advice. Индикатор

Индикатор

ORB+VWAP NY BounceORB + VWAP Bounce — opening-range break with a resting VWAP retest
An intraday entry model for the 1-minute chart on index futures. It
combines an opening-range breakout filter with a mean-reversion entry,
and it only ever takes one trade per session.
THE IDEA IN ONE SENTENCE
The opening range breaks; a resting LIMIT order then waits at the
session VWAP and fills the moment price retests it in the direction of
that break.
HOW IT WORKS
Each session runs through three phases.
1. RANGE — the script records the high and low of the opening-range
window (09:30–10:00 New York by default). Nothing is armed until
this window closes.
2. BREAK — when price closes beyond that high or low, the side of the
break sets the direction for the rest of the day. Broke up = long
only. Broke down = short only. This is the only thing that decides
direction.
3. RETEST — from the start of the entry window, a limit order rests on
the session VWAP, anchored at the RTH open. A long fills on the
pullback down to it; a short fills on the rally up to it.
WHY THE ENTRY IS A RESTING LIMIT, NOT A MARKET ORDER
This is the part worth understanding before using it.
A buy limit can only rest BELOW the market, and a sell limit only
ABOVE it. So "price is on the correct side of VWAP" is not something
the script has to check — it is inherent to the order type itself. A
long only exists if price is above the VWAP and pulls back into it; a
short only exists if price is below and rallies into it.
That is why there is no separate trend filter or bias input in this
script: there would be nothing left for it to decide. The break sets
direction, the order type enforces location.
The trade-off is real and you should know it: a resting limit fills at
a known price but is not guaranteed to fill at all. Days where price
breaks and never returns to the VWAP simply produce no trade. The
script is designed to sit out far more often than it trades.
SETTINGS
Session / Time — timezone, the RTH session that defines the trading
day, the opening-range window, the entry window, and a forced flat
time. No position is ever carried overnight.
Entry Logic — direction (long only / short only / both), which VWAP
anchor the limit rests on (RTH open or Globex open), an optional tick
offset so the limit sits a hair on the approach side, and the maximum
number of trades per day.
Filters / Seasonality — day-of-week switches, month exclusions, and
separate gates for the short side only (a time cut-off, weak months,
and a weekday block). All of these are OFF or neutral by default. They
exist so you can test whether your own instrument and session show
asymmetries, not because any particular setting is recommended.
Setup Quality — an optional gate on the size of the opening range,
measured either in points or as a multiple of the previous day's ATR.
The ATR mode is self-scaling, so one setting holds across changing
volatility regimes. OFF by default.
Stop / Target — the stop can be a fixed tick distance, a multiple of
the daily ATR, the VWAP line itself, the opposite side of the opening
range, or a retest swing. Targets can be an R multiple, a multiple of
the range, a fixed tick distance, or none at all.
Trailing Stop — optional, by R multiple or by points, with a
configurable activation threshold. There is a switch to remove the
fixed target once the trail is active, so a runner is not capped.
Risk Management — position size derived from a fixed dollar risk and
the actual stop distance, or a fixed contract count. Note that the
derived size is a step function: contracts = floor(risk / (stop
distance x point value)). Small changes in risk can leave the contract
count unchanged, and then jump it by a whole contract.
WHAT ELSE IS ON THE CHART
A Market Positioning table compares price against five VWAPs (session,
overnight, previous session, high-of-day, low-of-day) plus the opening
range, for the chart symbol and two correlated tickers you choose. It
also reports the opening-range size in points and in ATR multiples,
and the daily ATR itself.
There is an optional risk:reward box drawn on each entry, and an
optional prop-firm tracker that reports balance, distance to a
trailing drawdown line, worst margin reached, and a consistency
measure.
Every order carries a JSON alert_message suitable for automation
platforms that parse webhook payloads.
BACKTESTING NOTES — PLEASE READ
Two Properties settings change results substantially on this script,
and both default to values that flatter it:
- Limit order execution. Every entry here is a limit order resting on
the VWAP. The "Requested price" setting assumes a fill the moment
price grazes the line without trading through it, which is
optimistic for a resting order. Use "Standard".
- Bar detalization. Set it to High. On a 1-minute chart with intrabar
stop and target logic, the default resolution is too coarse.
Also apply realistic commission and slippage for your instrument
before drawing any conclusion.
LIMITATIONS
This script takes at most one trade per session and requires both a
range break and a retest, so it trades infrequently. On any given
instrument the sample it produces over a few years may be small enough
that ordinary variance dominates. Treat any backtest of it as a
description of one particular past, not as an expectation.
Seasonal and day-of-week filters are especially easy to overfit: with
a handful of trades per month, apparent patterns appear by chance.
They ship neutral for that reason. If you turn them on, check that the
effect holds in every year of your sample independently, not just in
the total.
Defaults are a starting point for the instrument and session they were
written around. They are not tuned for yours.
Nothing here is financial advice. Стратегия

Relative Strength Screener [TradingFinder] RS Rotation Matrix🔵 Introduction
There are times when several markets or symbols move higher at the same time, but that does not mean they are showing the same level of strength. An asset may rise and appear strong at first glance, while its benchmark has performed even better over the same period. In that situation, simply knowing which symbol is moving higher is not enough. The more important question is which asset is actually outperforming the market and which one is beginning to lose relative strength.
This is where Relative Strength analysis becomes useful. Instead of evaluating each symbol independently, a group of assets can be compared against the same benchmark to identify where relative strength is concentrated. This approach can be applied to stocks, indices, funds, currencies, commodities, cryptocurrencies, or any other comparable group of symbols.
Alongside Relative Strength, Relative Momentum adds another important layer because a current leader may still look strong while its relative momentum is starting to weaken, while a weaker symbol may already be entering an improving phase.
The Relative Strength Screener is designed to make these changes easier to identify. It compares multiple symbols against a common benchmark, ranks them using Relative Strength and Relative Momentum, and organizes the results inside a Ranking Dashboard. At the same time, the Rotation Matrix classifies each symbol as Leading, Improving, Weakening, or Lagging, making it easier to distinguish current leaders, emerging strength, weakening leadership, and persistent relative weakness.
This structure helps traders understand where relative strength is currently concentrated and where that strength may be moving next without manually reviewing a large number of charts. The purpose of the screener is not to generate direct Buy or Sell signals. Its main role is to support asset selection, Market Leadership analysis, Market Rotation analysis, and the creation of a more focused watchlist for further technical analysis.
🔵 How to Use
After adding the Relative Strength Screener to the chart, the first step is to define the group of assets that will be compared with one another. This group, or universe, should ideally contain instruments that make sense to evaluate within the same context. For example, users can compare stocks from the same industry, different market indices, funds, commodities, currencies, cryptocurrencies, or any other group of related assets. The indicator supports between 2 and 10 active symbols, and all Relative Strength and Relative Momentum calculations are based on this selected universe.
By default, the screener includes 10 sector funds from the US stock market and uses AMEX:SPY as the Benchmark. This setup provides a practical example of Sector Rotation analysis. AMEX:XLK represents Technology, AMEX:XLF represents Financials, AMEX:XLE represents Energy, AMEX:XLV represents Health Care, and AMEX:XLY represents Consumer Discretionary. The remaining symbols are AMEX:XLP for Consumer Staples, AMEX:XLI for Industrials, AMEX:XLB for Materials, AMEX:XLU for Utilities, and AMEX:XLRE for Real Estate.
These default symbols are only an example universe. The Relative Strength Screener is not limited to sector funds or the US market. Users can replace every symbol and the Benchmark to build a universe that matches their own analysis.
For example, several stocks from the same industry can be compared against a sector index, global equity indices can be compared against a broader market benchmark, or a group of cryptocurrencies can be evaluated relative to a selected crypto market reference. The important point is that all selected instruments should belong to a meaningful comparison framework.
🟣 Benchmark and Scan Timeframe
The Benchmark is the reference point for all Relative Strength calculations. With the default settings, SPY serves as this reference. This means the screener does not simply measure whether a symbol has risen or fallen. Instead, it evaluates how that symbol performed relative to SPY.
For example, an asset may gain 3 percent during the selected period and appear strong when viewed independently. However, if the Benchmark gains 5 percent over the same period, the asset has still underperformed the broader market. This distinction separates Absolute Performance from Relative Performance and helps identify assets that are truly gaining leadership rather than simply moving in the same direction as the market.
The Scan Timeframe determines the timeframe used by the ranking engine. If the Scan Timeframe is set to Daily, for example, the Performance Length and Momentum Length are calculated using daily scan bars. When the Scan Timeframe is equal to or higher than the chart timeframe, the screener uses confirmed scan data. When the Scan Timeframe is lower than the chart timeframe, the indicator uses the latest available intrabar information to create the current snapshot.
The current data mode is displayed directly in the Ranking Dashboard. If lower timeframe data is unavailable or incomplete, the screener displays a visible NO DATA or LIMITED DATA message rather than presenting a potentially misleading ranking.
🟣 Relative Strength and Relative Momentum
The core model of the screener is built around two measurements : Relative Strength and Relative Momentum.
Relative Strength measures how each symbol has performed compared with the Benchmark over the selected Performance Length. A positive Relative Return means the symbol has outperformed the Benchmark, while a negative value means the symbol has underperformed it. This information is displayed directly in the vs Benchmark column.
For example, if the dashboard shows 0.80% ahead, the symbol has delivered approximately 0.80 percent more relative performance than the Benchmark over the selected period. If the table shows 0.45% behind, the symbol has underperformed the Benchmark by approximately 0.45 percent on a relative basis.
Relative Strength describes the current position of an asset, but that alone does not show whether the situation is improving or deteriorating. This is why the indicator also calculates Relative Momentum. Relative Momentum measures how Relative Return has changed compared with its value a specified number of scan bars earlier.
A symbol can therefore remain ahead of the Benchmark while its Relative Momentum becomes negative. In this case, the asset is still an outperformer, but its previous advantage is beginning to fade. In the opposite situation, a symbol may still be behind the Benchmark while Relative Momentum becomes positive. This can be an early sign that its previous weakness is starting to reverse.
🟣 Ranking Dashboard
The Ranking Dashboard is the main analytical component of the Relative Strength Screener. It ranks the selected symbols using a combination of Relative Strength and Relative Momentum, while also showing the evidence behind each position.
The purpose of the table is not simply to tell the user which symbol ranks first or last. It is designed to answer several more useful questions. Which assets deserve further attention? Which leaders are maintaining their strength? Which symbols are improving? Which leaders are beginning to fade? And how persistent has the current relative strength been?
🟣 Rank
The Rank column shows the current position of each valid symbol within the selected universe.
If a symbol displays 1 of 10, it currently has the highest Composite Score among the 10 valid symbols. A reading of 6 of 10 means that five other assets currently have a higher score.
Rank is useful for quickly identifying the strongest members of the universe, but it should not be interpreted in isolation. Ranking is relative to the selected symbols. A symbol can rank first and still be underperforming the Benchmark if the entire universe is weak.
For this reason, Rank should normally be analyzed together with the vs Benchmark column.
🟣 Takeaway and Evidence
The Takeaway / Evidence column converts several underlying calculations into a more readable conclusion. Instead of requiring the user to interpret Relative Return, Momentum, Rank, Rank Change, and Persistence separately, the screener combines these conditions into descriptive states.
Sustained Leadership indicates that the symbol is ahead of the Benchmark, its Relative Momentum is not negative, it is ranked inside the top group, and it has maintained that position for the required Leadership Confirmation period. This condition represents established relative leadership and can identify assets that deserve further technical analysis.
Outperforming, Fading appears when the symbol is still ahead of the Benchmark but its Relative Momentum has turned negative. The asset remains relatively strong, but its advantage is shrinking. This can provide an early warning that an existing market leader is losing strength.
Climbing the Ranks indicates positive Relative Momentum together with an improvement in Rank. A symbol that moves from Rank 8 to Rank 6 and then to Rank 4 is progressively strengthening compared with the other members of the universe.
Recovering, Still Behind describes a symbol that continues to underperform the Benchmark but is showing positive Relative Momentum and improving Rank. This is not confirmed leadership. Instead, it represents an early recovery phase that may justify placing the asset on a watchlist.
Behind, No Recovery indicates that the symbol is behind the Benchmark and is not showing meaningful improvement in either Momentum or Rank. In a Relative Strength based selection process, these assets would normally receive lower priority.
Mixed Evidence is displayed when the available signals do not point in the same direction. Momentum may be improving while Rank remains weak, or other confirmation conditions may not yet be satisfied. The indicator intentionally keeps the conclusion neutral in these situations rather than forcing a stronger interpretation.
If one or more symbols in the universe lack valid data, the dashboard can display Incomplete Comparison. If the individual symbol itself does not have enough valid history, the result becomes Insufficient Data. Since Percentile and Rank calculations depend on cross sectional comparison, the indicator avoids producing strong conclusions when the available universe is incomplete.
🟣 vs Benchmark
The vs Benchmark column shows the actual relative performance of each symbol against the selected Benchmark.
An ahead value means the asset has outperformed the Benchmark over the configured Performance Length. A behind value means it has underperformed.
This column is especially important because it prevents a high Rank from being mistaken for genuine market outperformance. A symbol may rank first among the selected assets while still showing 0.20% behind. In that case, it is the strongest member of the selected universe, but it has not yet outperformed the Benchmark itself.
🟣 Score
The Score column combines Strength Percentile and Momentum Percentile into a single comparison score.
With the default settings, 65 percent of the score is assigned to Strength and 35 percent is assigned to Momentum. A higher score means the symbol has a stronger combination of Relative Strength and Relative Momentum compared with the other members of the universe.
The score is not a probability measurement. A value of 90 does not mean there is a 90 percent probability of a profitable trade, a 90 percent win rate, or a 90 percent probability that the asset will rise. It is simply a relative comparison metric used to rank the selected symbols.
🟣 Top Group Streak
The Top Group Streak shows how long a symbol has remained inside the strongest portion of the selected universe.
The top group is defined using the top quartile. In a universe of 10 symbols, this generally corresponds to the top three ranked assets.
If a symbol displays 8 scans, it means that the asset has remained in the top group for eight consecutive ranking checks. This helps distinguish a temporary jump in Rank from more persistent market leadership.
Top Group Streak does not count how many consecutive times a symbol has outperformed the Benchmark. It only measures persistence inside the top ranking group.
🟣 Rank Change
The Rank Change column shows how the position of a symbol has changed since the previous completed ranking check.
A value such as ↑ 2 places means the symbol improved by two ranking positions. A value of ↓ 2 places means it dropped by two positions. Unchanged means the ranking remained the same.
Current Rank shows where the asset is now, while Rank Change helps show the direction in which it is moving.
For example, a symbol currently ranked fifth may have improved from Rank 9 over the previous scans. This can indicate strengthening relative performance. Another symbol may still hold Rank 3 but may have fallen from Rank 1, suggesting that its leadership is beginning to deteriorate.
🟣 Rotation Matrix
The Rotation Matrix provides a faster and more visual summary of the entire universe. While the Ranking Dashboard shows detailed numerical evidence for every symbol, the Rotation Matrix focuses on the relationship between Strength and Momentum.
The matrix compares Strength Percentile and Momentum Percentile using the 50th percentile as the default boundary. Every valid symbol is then classified as Leading, Improving, Weakening, or Lagging.
A symbol in the Leading state has both Strength and Momentum in the stronger half of the universe. These assets represent the current relative leaders. If a symbol remains in Leading for several scans and the Ranking Dashboard also confirms Benchmark outperformance and a strong Top Group Streak, the evidence for persistent leadership becomes stronger.
An Improving symbol still has Strength in the weaker half of the universe, but its Momentum has moved into the stronger half. This state is particularly useful for identifying Emerging Leadership. The asset is not yet a confirmed leader, but its Relative Performance has started to improve.
One of the most important positive rotation sequences is : Lagging → Improving → Leading
This progression shows an asset moving from relative weakness into improving momentum and eventually into relative leadership.
A Weakening symbol still has above median Strength but below median Momentum. The asset remains relatively strong, but the quality of that strength is deteriorating.
A Leader moving into Weakening may be showing the first signs of losing its previous advantage.
If the deterioration continues, the sequence may become : Leading → Weakening → Lagging
However, a Weakening symbol can also return to Leading if Momentum recovers. For this reason, Weakening should be treated as a change in relative conditions rather than an automatic Sell signal.
A Lagging symbol has both Strength and Momentum in the weaker half of the universe. These assets usually receive lower priority in a Relative Strength selection process. However, movement out of Lagging can be important. A transition from Lagging to Improving can be the first indication that the relative trend is beginning to change.
🟣 Combining the Ranking Dashboard and Rotation Matrix
The most useful way to analyze the indicator is to read the Rotation Matrix and Ranking Dashboard together.
The Rotation Matrix provides the first overview. It shows where Relative Strength is concentrated and which assets are currently Leading, Improving, Weakening, or Lagging. The Ranking Dashboard then provides the numerical evidence needed to understand the quality of each state.
For example, if a symbol appears in Leading, the trader can check the Dashboard to determine whether it is actually ahead of the Benchmark, how high it ranks, how strong its Score is, how long it has remained in the top group, and whether its Rank is improving or deteriorating.
Two symbols can both appear in Leading while having very different profiles. One may be ahead of the Benchmark, ranked first, and have a long Top Group Streak. Another may have only recently entered the stronger half of the universe and have little persistence. The Rotation Matrix places both in the same broad state, while the Ranking Dashboard explains the difference between them.
The same principle applies to Improving. A symbol may be improving while still remaining behind the Benchmark. Another may already have crossed into relative outperformance. Rank Change can then show whether the improvement in Momentum is also beginning to affect its broader ranking.
For Weakening assets, the combination of negative Relative Momentum, declining Rank, and lower persistence can provide stronger evidence that leadership is deteriorating. If Rank remains stable and Momentum weakness is temporary, the condition may simply represent a short pause in relative strength.
It is important to understand that the Dashboard conclusions and Rotation Matrix do not use identical logic. The Rotation Matrix is based only on Strength Percentile and Momentum Percentile. The Dashboard also considers Relative Return, Relative Momentum, Rank Change, and Persistence.
For this reason, a symbol can appear as Improving in the Rotation Matrix while its Dashboard conclusion still shows Mixed Evidence. These outputs are not contradictory. They describe different dimensions of the same relative strength analysis.
🟣 Practical Workflow
A practical workflow begins by selecting a meaningful universe and an appropriate Benchmark. The Scan Timeframe, Performance Length, and Momentum Length can then be adjusted according to the intended analysis horizon.
The Rotation Matrix can first be used to identify current leaders, emerging strength, weakening leadership, and persistent laggards. The Ranking Dashboard can then be used to verify Benchmark Relative Performance, Rank, Score, Rank Change, and leadership persistence.
Symbols in Leading can be examined for current market leadership. Improving assets can be monitored for emerging Relative Strength. Weakening can help identify existing leaders that are beginning to lose Momentum, while Lagging identifies the weaker part of the selected universe.
The strongest or most interesting candidates can then be moved into a focused watchlist for further analysis of Price Structure, Trend, Liquidity, Entry Conditions, and Risk Management.
🔵 Settings
Number of Symbols : Determines how many symbols are included in the Relative Strength Screener. Users can select between 2 and 10 symbols. Only the first selected number of symbol inputs will be included in the Ranking Dashboard and Rotation Matrix.
Symbol 1 to Symbol 10 : Defines the assets used in the Relative Strength comparison. Each symbol can be replaced with any preferred stock, index, fund, currency, commodity, cryptocurrency, or other supported TradingView symbol. For more meaningful results, the selected symbols should belong to a logically comparable market universe.
Benchmark : Defines the reference asset used for all Relative Strength calculations. Each selected symbol is compared with this Benchmark to determine whether it is outperforming or underperforming the reference market. The default Benchmark is SPY.
Scan Timeframe : Determines the timeframe used by the Relative Strength ranking engine. The Scan Timeframe can be higher than, equal to, or lower than the chart timeframe. Higher and equal timeframe calculations use confirmed data, while lower timeframe settings use the latest available intrabar data.
Performance Length : Defines the number of Scan Timeframe bars used to calculate Benchmark Relative Performance. Higher values measure Relative Strength over a longer period, while lower values make the calculation more responsive to recent performance changes.
Momentum Length : Determines the period used to measure changes in Relative Performance. It compares the current Relative Return with its previous value to identify whether Relative Strength is improving or deteriorating.
Momentum Weight % : Defines how much influence Relative Momentum has on the final Score. The remaining percentage is automatically assigned to Relative Strength. For example, the default value of 35 percent creates a Score based on 35 percent Momentum and 65 percent Strength.
Leadership Confirmation : Defines how many consecutive Top Group checks are required before a symbol can be classified as having Sustained Leadership. Higher values require longer persistence before leadership is confirmed.
Symbol : Selects the asset displayed in the Relative Performance Oscillator. The selected symbol should be one of the active screener symbols. If another symbol is selected, Symbol 1 is used automatically.
Performance Length : Determines the lookback period used to calculate the selected symbol's performance relative to the Benchmark in the oscillator. Unlike the Ranking Dashboard, this setting is calculated using chart timeframe bars.
Smoothing : Defines the smoothing period applied to the Relative Performance line. Higher values create a smoother oscillator with less short term fluctuation, while lower values make the line more responsive.
Signal Length : Determines the EMA period used for the oscillator Signal Line. The relationship between the Relative Performance line and its Signal Line can be used to evaluate short term acceleration or deceleration in relative performance.
Show Signal : Enables or disables the oscillator Signal Line and the Relative Acceleration ribbon.
Show Last Value : Enables or disables the label showing the selected Symbol and Benchmark pair together with the latest Relative Performance value.
Send Alerts : Enables or disables the Relative Strength event engine. When enabled, alerts can be generated for Leader Group entries, Rotation State changes, Leadership Loss, and Leadership Confirmation events.
Leader Rank : Defines the Top N ranking group used for Leader Entry and Leadership Loss alerts. For example, when this value is set to 3, a symbol entering the Top 3 can trigger a Leader Entry event, while leaving the Top 3 can trigger a Leadership Loss event.
Show Ranking Table : Shows or hides the Relative Strength Ranking Dashboard on the chart.
Ranking Table Size : Adjusts the visual size of the Ranking Dashboard. Available options include Tiny, Small, Normal, and Large.
Ranking Table Position : Determines where the Ranking Dashboard appears on the chart. Users can select from nine positions using Top, Middle, or Bottom combined with Left, Center, or Right.
Show Rotation Matrix : Shows or hides the Rotation Matrix on the chart.
Matrix Table Size: Adjusts the visual size of the Rotation Matrix. Available options include Tiny, Small, Normal, and Large.
Matrix Table Position : Determines where the Rotation Matrix appears on the chart. Users can select from nine available positions. A different position from the Ranking Dashboard should be selected when both tables are enabled to prevent overlap.
🔵 Conclusion
Markets rarely move in a perfectly uniform way. While one group of assets is gaining leadership, another may be losing momentum, and somewhere else a previously weak symbol may already be starting to recover. Looking at price alone can make these shifts difficult to recognize, especially when several assets are moving in the same direction at the same time.
The Relative Strength Screener is built to make that rotation easier to see. By comparing a selected group of symbols against a common Benchmark, the indicator helps reveal which assets are truly outperforming, which ones are improving, and which current leaders are beginning to fade. The Ranking Dashboard adds the numerical evidence behind that comparison, while the Rotation Matrix turns the same market into a clearer picture of Leading, Improving, Weakening, and Lagging assets.
The goal is not to replace chart analysis or generate an automatic Buy or Sell signal. The value of the screener comes earlier in the decision process, when the trader is still asking which symbols deserve attention in the first place. Once the stronger, improving, or weakening assets have been identified, the next step is to return to the chart and evaluate Price Structure, Trend, Liquidity, Entry Conditions, and Risk Management.
Индикатор

Divergence Scanner - Multi-Oscillator Confirmation [Dots3Red]📉 DIVERGENCE SMART SCANNER — MULTI-OSCILLATOR CONFIRMATION STATS
A single-oscillator divergence — price makes a new high while RSI doesn't confirm it — is treated as a reversal warning almost everywhere. Whether adding a second or third oscillator's agreement actually makes that warning more reliable is rarely tested. This script tests it, directly, on the chart in front of you.
✨ WHY THIS MATTERS
"More confirmation means more reliable" is one of the most repeated pieces of trading folklore. This script checks whether that's actually true here, rather than assuming it. Every divergence is checked against three separate oscillators — RSI, MACD histogram, and Williams %R — and graded by how many of them agreed. The outcome of every divergence is then tracked, sorted by that confirmation count:
📊 1 oscillator confirms: 54% reversed (n=28)
📊 2 oscillators confirm: 63% reversed (n=19)
📊 3 oscillators confirm: 71% reversed (n=9)
If confluence genuinely matters on this chart, these numbers should step upward. If they don't, that's useful information too — either way, it's measured, not assumed.
⚙️ HOW IT WORKS
📐 Swing detection — confirmed pivot highs and lows, each stored alongside the value every oscillator held at that exact moment, so structure is compared pivot-to-pivot rather than pivot-to-current-bar.
📊 Multi-oscillator confirmation — a bearish divergence requires price making a higher high; each oscillator that simultaneously makes a *lower* high adds one to the confirmation count. Bullish divergence is the mirror case at swing lows. The count (1, 2, or 3) is shown directly on the chart label.
🎯 Tiered outcome grading — every divergence is tracked forward. If price genuinely moves in the expected reversal direction by a meaningful distance within a set window, it's graded as reversed; otherwise it isn't. The result feeds into that specific confirmation tier's running statistic — 1-oscillator divergences are never mixed together with 3-oscillator ones, since that's exactly the comparison the whole tool exists to make.
🔒 Non-repainting — all detection and grading happens strictly on confirmed bars.
🧭 HOW TO USE
1️⃣ Read the confirmation count on the label before reacting to a divergence. "▼ 1/3 confirm" and "▼ 3/3 confirm" look like the same event on the chart but carry very different weight once you check their respective tiers.
2️⃣ Check the dashboard's tier stats, not just the current divergence. The measured reversal rate and sample size (n=) for that specific tier tell you how much history actually backs it up on this chart.
3️⃣ Let the sample size guide your confidence. A tier with 4-5 recorded events is still forming; one with 30+ is telling you something real about how this instrument has behaved.
4️⃣ Use the tier comparison to decide whether waiting for more confluence is worth it. If reversal rates climb clearly from 1 to 2 to 3 oscillators, holding out for stronger confirmation is justified here. If the tiers are flat or don't separate meaningfully, a single-oscillator divergence is just as informative as a rarer triple-confirmed one — and waiting for 3/3 may just mean missing setups for no real benefit.
5️⃣ Treat it as context, not a trigger. Like every tool in this catalog, it describes what has already happened — it doesn't predict what happens next.
⏱️ WHICH TIMEFRAMES WORK BEST
Divergence needs enough bars between swings to form and then resolve meaningfully, which generally makes 15-minute through 4-hour the most effective range — the same window where most swing-based structure tools perform best.
On very short timeframes (1-3 minute), pivots form so frequently that many flagged divergences will be closer to noise than genuine structure — the tier sample sizes will grow quickly, but individual signals may carry less weight. On daily or weekly charts, genuine divergence setups are naturally rarer, so expect fewer signals and a longer wait before any tier's sample size becomes large enough to trust. The tool still functions on both ends of that range — it simply takes longer, or shorter, for its statistics to become genuinely informative.
🛠️ SETTINGS
📐 Swing Detection — Pivot Leg (bars required on each side to confirm a pivot)
📊 Oscillators — independent length settings for RSI, MACD, and Williams %R
🎯 Outcome Grading — Reversal Confirmation distance (in ATR) and Outcome Window (bars)
🎨 Visualization — toggle divergence lines and confirmation labels independently; line width, line style, label size, and label position style (natural above/below placement, or pointing left)
🎨 Colors — independent bullish/bearish line and label text colors, label background, and full dashboard color control including separate good/bad outcome indicators
🖥️ Dashboard — show/hide, position — all three confirmation tiers with their measured reversal rates and total signal count
📝 NOTES
Statistics accumulate from when the indicator is added to the chart. Higher-confirmation tiers (2 and especially 3 oscillators) will naturally take longer to build a meaningful sample than the 1-oscillator tier, since triple-confirmed divergences are rarer by definition.
⚠️ DISCLAIMER
This is an analytical and visualization tool. It does not generate trade signals and does not constitute financial advice. Historical reversal rates do not guarantee how any future divergence will resolve. Индикатор

Multi Anchored VWAP - Automatic Session and Custom AnchorsThis indicator was built to remove the daily manual work involved in resetting multiple anchored VWAPs.
It automatically maintains a set of recurring VWAPs based on key market/session events, while also providing discretionary anchor slots for events or levels you want to track manually.
Default automatic VWAPs
Asia — 01:00 Europe/London
Frankfurt Open (FFO) — 07:00 Europe/London
London Open (LDO) — 08:00 Europe/London
New York Open — 09:30 America/New_York
Weekly — Friday 21:00 Europe/London
Gold Auction — 15:00 Europe/London, disabled by default
Each automatic VWAP continues running until its next scheduled anchor. For example, the New York VWAP remains active overnight and through the following European session, only resetting when the next New York cash open occurs.
Timezone-aware anchors
Each VWAP uses an explicit market/event timezone rather than the trader's local timezone. This means traders in different countries can use the same settings and see the same anchored VWAPs.
The timezone and anchor time for every automatic VWAP can also be changed from the settings menu.
IANA timezones such as Europe/London and America/New_York are used so daylight-saving changes are handled automatically.
Discretionary anchored VWAPs
Three additional custom VWAP slots are included and disabled by default.
Each custom VWAP allows you to specify:
Enable/disable
Custom name
Exact anchor date/time
Colour
Line thickness
These can be useful for anchoring from events such as CPI, FOMC, major highs/lows, news events, breakout points, or any other discretionary reference.
Unlike the automatic session VWAPs, custom VWAPs do not reset automatically and remain anchored until changed or disabled.
Visual settings
Each VWAP can be individually enabled or disabled and has configurable colour and line thickness.
Right-edge labels can also be customised for size, transparency and offset, making it easy to identify each VWAP directly on the chart.
Intended use
I mainly use this on NQ, ES and Gold for intraday context, mean-reversion/reference areas, confluence and tracking how price interacts with session and event-based value.
This indicator is intended as a charting/context tool rather than a standalone entry or trade signal. Индикатор

TPO Market Profile, Value Area, POC & Initial Balance [LunqFX]A volume profile answers how MUCH traded at each price. A Market Profile answers a different question: how LONG price stayed there. This indicator draws the second one — a TPO profile, built letter by letter from the session's own half-hour brackets, with the Point of Control, the Value Area and the Initial Balance that come with it.
That distinction is the whole reason Market Profile exists as a separate discipline. Price can sit on a level for four hours on thin volume, and a volume profile will draw a narrow bar there while the auction was in fact spending most of its day at that price. Time at price and volume at price are two different maps of the same session, and they routinely disagree about where value actually is.
TPO stands for Time Price Opportunity, and the profile is the shape those opportunities build. It is the same structure floor traders assembled by hand before screens existed, which is why the Point of Control, the Value Area and the Initial Balance are named the way they are rather than the way a modern indicator would name them.
Included: TPO letters per session, the Point of Control, a value area at a percentage you choose, the Initial Balance of the first hour, levels extended to the right, a dashboard reading where price sits against that structure, and alerts on acceptance outside value and on the initial balance breaking.
❶ THE PROFILE AND WHAT IT COUNTS
The session is split into brackets of thirty minutes by default. Bracket one is A, bracket two is B, and so on. A bracket is credited to a price row when it traded anywhere inside that row, and each row is then drawn to the length of the count it collected.
The counting rule matters more than it sounds: a bracket counts ONCE for a row however many bars of that bracket touched it. That single rule is what makes the result a measure of time rather than of activity, and it is the entire difference from the volume profile beside it on your chart.
Brackets are cut from elapsed session time rather than from bar count, so the same profile appears whether you run the chart on 5 minutes or on 15.
A bracket can never be finer than a bar, and the script enforces that rather than letting you ask for something the chart cannot deliver. Request thirty-minute brackets on a one-hour chart and every bar would jump the counter by two, leaving half the brackets empty and the letter view printing A, C, E with the gaps missing. The bracket size is floored at the chart's own timeframe, and the dashboard shows the size actually in use.
The classic letter view — A, B, C printed at every price the bracket reached — is in the settings, and it is worth knowing why it is not the default. A true TPO grid needs one text object per row per bracket: forty rows across twenty-six brackets is more than a thousand objects for one session, against a platform cap of five hundred for the whole script. Packing each row's letters into a single text object instead runs into a second wall, because Pine centres a label's text on its anchor and gives no way to left-align it, so the profile spreads both ways from the anchor and lands on top of price. Rows drawn to their own length say the same thing and can be read at a glance. Both views are one setting apart, and there is a shift control for moving either clear of the candles.
❷ POINT OF CONTROL — THE POC
The price row that collected the most brackets — the price the session spent the most time at. It is drawn as a solid line and its row of letters is coloured gold.
A volume profile has a POC too, and the two are frequently at different prices on the same day. That gap is worth looking at: a volume POC well away from the time POC means the heavy trading and the long acceptance happened in different places, which is usually where the day's argument was.
The POC is where the auction found agreement. Traders use it as the session's magnet: price that leaves it tends to come back to it, and a session whose POC is far from its close often has unfinished business there.
❸ VALUE AREA
The band containing the chosen share of the session's total time, seventy percent by convention. It is built the classic way: start at the Point of Control, then step outward one row at a time, always taking whichever neighbouring row holds more time, until the target is enclosed.
Rows inside the value area are drawn bright; rows outside are dimmed. What you are looking at is the difference between where the market agreed on price and where it merely passed through.
❹ INITIAL BALANCE
The high and low set during the first two brackets — the first hour of the session on default settings. Drawn as two dotted lines.
The Initial Balance is the day's opening statement. A session that spends the rest of the day inside it is balanced and rotational, and its edges are the fade. A session that leaves it early has found a direction, and the break level becomes the reference for the rest of the day. The dashboard says which of the two is happening.
❺ THE DASHBOARD
A header that reads IN VALUE, ABOVE VALUE or BELOW VALUE according to where price sits against the developing profile, the number of brackets built so far, the Point of Control, both value area edges, the Initial Balance range, and whether that balance is still holding.
HOW TO USE IT
1 — Read the header first. In value means the session is balanced and the edges are the trade. Above or below value means price is away from agreement and either seeking a new one or coming back.
2 — Use the Point of Control as the session's magnet. It is the single most-referenced price of the day and the most common target for a return move.
3 — Watch the Initial Balance in the first two hours. Holding inside it points to a rotational day; leaving it early points to a directional one, and that judgement changes which of the levels above are worth trading.
4 — Compare today's value area with yesterday's. Higher value against lower value is the cleanest read of whether the auction is migrating, and it is visible at a glance once several sessions are on the chart.
5 — Read it beside a volume profile, not instead of one. Where the two disagree — heavy volume at a price the market barely spent time at, or the reverse — is where the most information is.
HOW IT WORKS
Sessions come from the symbol's own trading day, so nothing has to be configured per market. Elapsed session time in minutes divided by the bracket size gives each bar its bracket number, which keeps letters tied to the clock rather than to bar count.
When a session closes, its range is divided into the chosen number of rows. For every row the script walks the session's bars and marks which brackets overlapped that row, then counts the distinct brackets and builds the letter string. The row with the highest count becomes the Point of Control. The value area grows outward from it, one row at a time toward whichever neighbour holds more, until the chosen share of total brackets is enclosed. The Initial Balance is the extreme high and low among bars belonging to brackets one and two.
A completed session is drawn once and never touched again. The developing session is rebuilt once per closed bar.
Best used on intraday charts from 5 to 30 minutes, on instruments with a defined session — index futures and CFDs, gold, forex majors, large-cap crypto.
LIMITATIONS — read before relying on any of it
▸ This is a bar-based approximation of a floor-based technique. Classic TPO is built from every price the market printed during a bracket; here a bracket is credited to a row when any bar of that bracket overlapped the row. On low timeframes the two are nearly identical; on higher ones a single wide bar credits its bracket to more rows than the market may truly have spent time in, and the profile widens accordingly. Use 5 to 30 minute charts and the difference stays small.
▸ It needs an intraday chart. A profile is built from many bars inside one session, so on a daily chart or higher a single bar IS the session and there is nothing to divide. The script draws nothing there and the dashboard says so rather than printing a meaningless block. Use 5 to 30 minutes.
▸ Sessions are the symbol's own trading day. On a market that trades around the clock that is the calendar day in exchange time, which is a convention rather than a real auction boundary. Crypto profiles are therefore useful for structure but not for session theory in the futures sense.
▸ Only the most recent sessions are built. Older sessions are skipped entirely rather than drawn and discarded, because building every session of a long history is enough to time the script out. Scroll back far enough and the profiles stop.
▸ The first session on a freshly loaded chart can be partial. The script starts counting a session from the first bar it is given, and if the chart begins in the middle of a trading day that profile covers only the part it could see. It is normally out of range of the sessions actually drawn, but on a very short chart it is the one to distrust.
▸ The row count changes the shape. More rows give a finer profile with a more precise Point of Control; fewer rows smooth it. Two readings are only comparable at the same row count.
▸ The letter view is a compromise, and the default block view exists because of it. Pine caps a script at five hundred drawing objects and centres a label's text on its anchor with no way to left-align it, so neither a true letter grid nor a clean left-anchored letter column is possible. If you switch the letters on, expect them centred on the anchor rather than laid out as a terminal would lay them out.
▸ There is a hard platform limit on drawings. With the default forty rows and five sessions the script stays well inside it, but raising both together will start dropping the oldest rows.
▸ The Initial Balance is the first two brackets, which is one hour on default settings. Traders who define it differently should change the bracket size rather than expect the level to move.
▸ None of this predicts anything. A profile describes an auction that has already happened.
WHY IT IS ORIGINAL
Time at price and volume at price are different measurements, and this publication implements the first. The counting rule — one credit per bracket per row regardless of how many bars touched it — is what separates the two, and it is stated openly here rather than left inside the code.
The parts belong together because they are one object read at four resolutions. The letters are the raw shape. The Point of Control is its densest point. The value area is the band that shape encloses. The Initial Balance is the first hour of it, kept separate because the day's character is decided there. Remove the letters and the levels float above nothing; remove the levels and the shape has to be read by eye.
SETTINGS
▸ Profile — bracket size in minutes, price rows per session, value area percentage, how many sessions to keep. The bracket size is floored at the chart's timeframe, and the profile width is capped at the session's own bar count, so neither setting can be pushed into a state the chart cannot render honestly. ▸ Levels — Point of Control, value area edges, initial balance, and how far levels extend to the right. ▸ Visuals — blocks or letters, profile width and transparency, letter size, how far to shift the profile sideways, neon candles, dashboard and its position.
ALERTS — accepted above value, accepted below value, initial balance broken up, initial balance broken down. All fire on closed bars.
NON-REPAINTING — a completed session's profile is drawn once from closed bars and is never recalculated. Only the developing session updates, and it rebuilds once per closed bar rather than tick by tick.
This indicator is an educational market-analysis tool, not financial advice. It describes the structure of sessions that have already completed and does not predict future prices. Always confirm with your own analysis and manage your risk. Индикатор

Rotation Radar - Theme Sentiment Board# Rotation Radar - Theme Sentiment Board
**What it is:** an at-a-glance dashboard of market *sentiment and capital rotation* across regime, growth, physical/policy, cycle, and speculative (“froth”) thermometers.
**What it is not:** a buy list, a ranking of “best ETFs to own,” or a trading signal. Rows tell you where money is moving. They do not tell you where yours should go.
The table is built for one job: name the regime, name the leading layer, then open a chart. If you cannot do that in 30 seconds, you are staring at colors instead of using the tool.
--------------------
## What the table shows
Each row is a liquid US-listed ETF used as a thermometer for a theme.
**Ticker** - symbol actually requested (exchange prefix stripped; hover the cell for EXCHANGE:TICKER).
**Theme** - short label for the bid this fund is meant to represent.
**1D / 1W / 1M / 3M / YTD** - absolute total return on the *daily* series.
• 1W = 5 sessions
• 1M = 21 sessions
• 3M = 63 sessions
• YTD = vs first daily close of the calendar year
**1M vs B / 3M vs B** - absolute return minus the same-window return of SPY or QQQ (setting: Relative vs).
**Align** - how many of the five absolute windows are greater than 0% (see Align section).
Heat colors scale with the size of the move: deeper green / red = larger percentage. Grey = missing data or a mixed Align score.
Returns are always computed on daily bars, regardless of the chart timeframe you drop the indicator on.
--------------------
## Layers
Rows are grouped on purpose. Do not read the board as one flat leaderboard.
**REGIME** - the legend for everything below
SPY, QQQ, IWM, UUP, TLT, HYG, GLD
**GROWTH** - digital / software / compute stack
SMH, IGV, HACK, DTCR (data-center REITs *and* tower landlords)
**PHYSICAL / POLICY** - electrons, metals, fiscal, defence
XLE, OIH, URA, NLR, XLU, GRID, PAVE, COPX, REMX, GDX, SIL, SHLD
**CYCLE** - old-economy, credit, EM, batteries
XLI, IYT, KRE, XLF, XLV, EEM, EWY, KWEB, LIT
**FROTH** - speculative positioning, not structural themes
IBIT, WGMI, XBI, UFO, QTUM, BOTZ, ICLN
Hiding a layer in settings only hides rows. Pine still requests every symbol (TradingView limit: 40 unique request.*() calls).
--------------------
## Align
Align is a 0–5 *count*, not a score and not relative to the benchmark.
Each of 1D, 1W, 1M, 3M, YTD that is strictly positive adds 1. Missing or ≤ 0% adds 0. Displayed as n/5.
• 4/5 or 5/5 - green: most horizons up
• 0/5 or 1/5 - red: most horizons down
• 2/5 or 3/5 - grey: mixed
It does **not** use the vs-benchmark columns.
It does **not** treat +0.2% differently from +40%. Magnitude lives in the heat cells.
Read Align as consistency:
• 5/5 - bid across the whole lookback, not a one-day spike
• 4/5 - same idea; usually YTD or 1D is the odd window
• 1D/1W green and 3M/YTD red → often Align 2/5 → bounce in a loser
• 1D/1W red and 3M/YTD green → often Align 3/5 → pullback in a leader
Do not sort the published default by Align. Sort by 1M or 3M. Use Align as a filter on that sort.
--------------------
## How to use it
Work in this order every time: **header → layer vs layer → one ticker**. Never start at the hottest 1D cell.
### 1. Read REGIME first
• QQQ and IWM green, TLT red, HYG green → risk-on. Growth/froth greens are real bids, not squeezes.
• TLT and GLD green, HYG and IWM red → risk-off. Ignore a green SMH 1-day print.
• UUP ripping, EEM / KWEB / COPX red → dollar squeeze. Physical and EM strength is suspect until the dollar rolls.
• HYG red, KRE red, XLF holding → credit stress starting in regionals, not a full bank crisis yet.
• GLD green, GDX flatter → bullion bid (rates / geopolitics), not a miners cycle.
If REGIME is mixed, do not invent a narrative from PHYSICAL or FROTH. Mixed header = two-way tape.
### 2. Ask which layer is winning
The sections exist so you compare *layers*, not 39 unrelated lines.
• GROWTH > PHYSICAL - digital capex / multiple expansion (semis, software, cyber)
• PHYSICAL > GROWTH - bottleneck left the chip (power, grid, metals, defence, oil services)
• CYCLE green, GROWTH flat - old-economy / credit / industrial mid-cycle, not an AI melt-up
• FROTH Align 4–5 while HYG and IWM are red - speculative bid on a weak base. Positioning, not confirmation
A useful weekly habit: write one sentence.
Example: “Grid + uranium + copper beating SMH; XLV quiet; froth dead.”
That sentence is the output. The cells are evidence.
### 3. Prefer relative columns
Sort by **1M** or **3M**, not 1D.
• Green 1M vs B / 3M vs B = beating the benchmark you chose. That is leadership.
• Absolute +8% when SPY is +9% is camouflage. Align can still print 5/5.
• Set Relative vs to **QQQ** when the question is “is this beating growth?” GRID vs QQQ is the AI-power question. GRID vs SPY is “is anything working?” Those are different questions.
1D answers “what is being chased into the close.” Useful after you already know the regime. Dangerous as a sort key.
### 4. Watch pairs that are supposed to diverge
If a pair moves together, you learned nothing. If they split, you did.
• SMH vs GRID / XLU / NLR - bottleneck still in chips, or already in power
• URA vs NLR - spot uranium / miners vs nuclear utilities and PPAs
• COPX vs XLI - copper-specific / China+grid vs broad industrials
• GDX vs GLD - miner leverage vs bullion
• SIL vs GDX - silver / industrial kicker vs gold
• KRE vs XLF - regional credit vs megabanks
• XLV vs SMH - defensive equity rotation
• PAVE vs GRID - US construction / fiscal vs electrical equipment
• DTCR vs SMH - towers / REIT rates vs compute hardware
• EWY vs SMH - Korea / memory satellite vs US-listed semis
• XBI vs XLV - speculative biotech vs healthcare cash-flow
• IBIT vs WGMI - coin bid vs miner leverage (same idea as GLD / GDX)
• HACK vs IGV - security spend vs broad software
### 5. A practical cadence
**Weekly (Monday or Sunday night)**
Sort by 1M. Note the top three and bottom three per layer. Write one sentence on regime.
**During the week**
Look at 1D only if you already have a thesis. “Is the PHYSICAL bid still there today?” - not “what’s hot.”
**After a shock** (CPI, FOMC, geopolitics)
REGIME first: TLT, UUP, HYG, GLD, IWM. Then see which theme *layer* flipped. Froth will whip; ignore it for two or three sessions.
Do not rebalance a portfolio off this table. A theme can lead for months and still be a bad holding.
--------------------
## When the board is lying
• Everything green - beta rally. Use vs-QQQ and look for the *least* extended layer, or do nothing.
• Everything red except gold / TLT - de-risking. “Cheap” physical names can still fall.
• One name 5/5, rest of its layer 1/5 - idiosyncratic (contract, squeeze, ETF flow). Not a theme.
• YTD Align still high after a three-month collapse - leftover from January. Trust 1M / 3M more than YTD in the back half of the year.
--------------------
## How people misuse it
• Treating 5/5 as a buy. That is often late.
• Adding risk because 1D is the greenest cell. That is the crowded chase.
• Reading ICLN, UFO, QTUM, BOTZ as structural themes. They sit in FROTH on purpose: they confirm risk appetite; they do not define the cycle.
• Forcing a story when REGIME and the winning layer disagree. Dollar up + COPX 5/5 is usually a trap until one of them yields.
• Watching all 39 rows equally. Semis, copper, HYG, and TLT explain more of global risk appetite than space, quantum, and clean energy combined.
--------------------
## Settings
• **Layer toggles** (default: all on) - display only. Requests still run.
• **Sort by** (default: 1M) - use 1M or 3M for rotation; 1D for tape-reading; OFF to keep listed order.
• **Strongest first** (default: on) - sorts inside each layer, not across the whole universe.
• **Relative vs** (default: SPY) - switch to QQQ to test leadership against growth.
• **Show vs benchmark** (default: on) - hide if you want a narrower table.
• **Table position / text size / colors** - cosmetic.
If a row prints "-", TradingView did not resolve that EXCHANGE:TICKER. Open the fund on a chart and copy the exact symbol from the header (AMEX:, NASDAQ:, BATS:, NYSE:). NYSE Arca ETFs usually resolve as AMEX: on TradingView. TLT is NASDAQ:TLT.
--------------------
## Design notes (why these funds)
Thermometers were chosen for *liquidity and distinct tapes*, not for “best theme ETF to own.”
• SMH, not SOXX - same semiconductor complex, one slot.
• No SKYY - too close to QQQ via AMZN / MSFT / GOOGL. IGV covers software.
• DTCR is labeled “data ctr / towers” because towers (AMT, CCI, SBAC) are a large weight. It is not a pure AI data-center developer fund.
• URA and NLR both stay: miners / spot uranium vs nuclear utilities and the fuel cycle.
• PAVE and GRID both stay: US construction / fiscal vs electrical equipment and smart grid.
• XLF and KRE both stay: megabanks vs regionals (credit-stress split).
• XBI instead of ARKG, UFO instead of ARKX - index / rules-based tapes, not an active manager’s book. ARK funds measure Cathie Wood + ARK flows. That is a positioning gauge, not a theme.
• ICLN stays in FROTH: it is a rates-and-China-solar punchbag, not a clean “energy transition” pulse.
Known gaps (left empty on purpose, given the 40-request cap): no dedicated HBM/memory ETF (infer from SMH vs EWY), no pure Europe-defence line (SHLD is global primes + defence tech), no water line.
--------------------
## Disclaimer
This script is for research and tape-reading. It is not investment advice, a recommendation, or an offer to buy or sell any security. Theme ETFs are concentrated, often expensive, and often correlate with Nasdaq even when the label says otherwise. Past returns shown in the table are not a forecast. You are responsible for symbol availability on your data feed and for any decision you make after looking at the board.
Индикатор

Crossover Whipsaw Guard**Crossover Whipsaw Guard**
**What it does**
Turns a moving-average crossover into a two-step state: *pending* the moment the fast MA crosses the slow one, *confirmed* once the two averages have separated by at least a minimum percentage (default 0.30 % of the slow MA). Optional extra conditions for confirmation: volume above its 20-bar average, and a higher high plus higher low over the last N bars (mirrored for bearish crosses). A confirmed state holds until the averages cross back; it is never downgraded.
**What you see**
- Both averages (defaults EMA 9 and DEMA 200; EMA, SMA and DEMA selectable for each).
- The area between them filled gray while pending, teal or red once confirmed.
- A small dot on the bar where confirmation happened.
- A table with the current separation, the threshold, active extra filters and the state.
- Alerts for each of the four transitions: bullish pending, bullish confirmed, bearish pending, bearish confirmed.
**Why I built it — the measurement behind it**
Crossovers of a fast and a slow average produce many entries that get stopped out within days. I measured which conditions at the crossover bar reduced that, on 47,013 daily bullish crossovers (EMA 9 over DEMA 200) across 1,758 US stocks, 2014–2026, including later-delisted names, each followed by the same trailing exit:
| Condition at the crossover bar | Share of crossovers kept | Share of trades ending positive | vs. the crossovers it removed |
|---|---:|---:|---:|
| none (all crossovers) | 100 % | 31.0 % | — |
| separation ≥ 0.10 % | 77 % | 31.8 % | 28.6 % |
| separation ≥ 0.30 % | 45 % | 33.1 % | 29.4 % |
| volume > 1.1 × 20-bar average | 36 % | 32.8 % | 30.1 % |
| higher high & higher low (10 bars) | 85 % | 31.5 % | 28.8 % |
All four held in the second half of the sample (from September 2020, +2.1 to +2.8 points each). The filters overlap: combining separation with volume kept 20 % of crossovers at 33.5 %, not more.
**What the measurement does not show — please read**
- The improvement is in *fewer stop-outs*, not in better returns afterwards. Measured without any exit, 20 and 60 bars after the crossover, the separation and volume conditions left the kept and removed groups within a point of each other; the higher-high/higher-low condition improved the 20-bar outcome (+3.4 points) but not the 60-bar one. This is a whipsaw filter, not a return predictor.
- The absolute hit rates (31 %) belong to one specific exit rule with a tight trailing threshold, typical for trend following. Your exit will give different absolute numbers.
- Tested on daily bars and on one pair of averages. The separation threshold is a percentage of price, so it needs adjusting for other timeframes and volatilities — the table shows the current separation to help with that.
- A confirmed state is a description of where the averages are. It is not a recommendation to do anything.
No buy or sell signals are generated, and none are implied.
Индикатор

Индикатор

Индикатор
