OPEN-SOURCE SCRIPT

Implied Market Structure

2 523
You have seen the day. The S&P 500 closes green, the financial press calls it a rally, and half the names in a typical portfolio did not participate. Or the index is flat while a handful of stocks you actually own move several percent. The cash print of SPX is a weighted average. It can look healthy while the market underneath is narrow, and it can look dull while single names are already running. Breadth indicators catch that after the close, once advancing issues and new highs have printed. The options market is already quoting a related question, because index options and single-stock options together imply how much the constituents are expected to move, and how much they are expected to move together, over the next month. That is not the same as knowing what realised breadth will do next week. It is a reading of the surface that is being priced now.

Implied Market Structure is that reading, turned into a pane. It does not look at the price of the chart you dropped it on. It reads three Cboe indices that already live on TradingView (DSPX, COR3M, VIXEQ) and maps them into an options-derived forward-looking market structure: what kind of tape the listed surface is paying for. Direction still comes from your own setup. This script answers how that setup should be expressed, whether as an index overlay, a single-stock book, a hedge, or a smaller size. Open a daily SPX, ES or SPY chart, add the script, and read the dashboard before you argue with the line.

What you are looking at, from the pane outward. The thick line is the IMS score on a 0 to 10 scale, a one-dimensional summary of two ranks: high DSPX percentile plus low COR3M percentile. Near 10 the surface is paying for stock-level divergence. Near 0 it is paying for a herd. The line is green at or above 7.5, red at or below 2.5, and blue in between. Those two horizontal marks are not regime thresholds. They are score tails. The faint grey line at 5 is the midpoint of the summary, nothing more. The thinner, smoother line is a 21-day EMA of the same score, updated on daily changes. If it has fallen by at least 0.20 over five days the dashboard says FALLING; the opposite move is RISING; anything smaller is FLAT, so a one-tick wriggle does not rename the trend. The shaded band between 2.5 and 7.5 is only a mid-score fill. Optional grey bands around the line, off by default, are a 21-day standard deviation of the score, not a forecast interval. Two further optional lines, also off by default, plot the DSPX rank and the inverse COR3M rank on the same 0 to 10 scale when you want to see which factor is doing the work. Background colour, in the default Position mode, follows the two-dimensional regime rather than the score, so a mid-range line can still sit in a blue COMPRESSED patch. Dynamic mode instead tints the pane by the 0 to 10 reading. Off leaves the pane unshaded.

The same regime colours the candles, or the price line if you are not on candlesticks. Green is STOCK PICKING. Red is INDEX TAPE or BROAD STRESS, with tape drawn a little more faded than stress. Blue is COMPRESSED. MIXED is a weaker blue. That colour is a weather reminder. It is not a long or a short in ES or SPX.

The table at the top right is the actual reading, row by row. IMS score is the 0 to 10 summary, printed to two decimals, with confirmed D or live D on the right. Confirmed D, the default, uses the last completed daily Cboe print, so the last bar on a daily chart is yesterday’s structure and does not wander with the developing session. Live D uses the current daily close and can flip while cash is open. Regime is the two-dimensional class: INDEX TAPE, STOCK PICKING, BROAD STRESS, COMPRESSED or MIXED. INDEX TAPE is high implied correlation and low expected dispersion, the index treated as one factor, which is when ES and SPY trades and index puts are the more natural tools and single-stock selection is swimming against a herd. STOCK PICKING is the opposite corner, high dispersion and low correlation, which is Cboe’s stated use of DSPX as a read on the opportunity set for names (Cboe, n.d.a), not a long signal in the index. BROAD STRESS is both high, movement with togetherness, when reducing size and using index hedges tends to hurt less than hunting for the one name that will decouple. COMPRESSED is both low, quiet on both axes. MIXED means at least one series is still in the middle, so you leave IMS in the background. Why restates the corner in words, DSPX HIGH, MID or LOW and COR3M the same, which is the reason the regime is what it is. A score of 5.4 with both factors LOW is still COMPRESSED. The line looks mid because low dispersion and low correlation pull the summary in opposite directions. That is why the table exists.

DSPX shows the raw Cboe dispersion level, then the trailing percentile in parentheses, then HIGH, MID or LOW. Green on that row is high dispersion. Red is low dispersion, the herd side of that axis, even when the regime as a whole is the quieter blue of COMPRESSED. COR3M shows the raw implied-correlation level the same way. Green there is low correlation, the picking side. Red is high correlation, the tape side. The percentiles in those rows are rounded to whole numbers. The score above them uses the unrounded ranks, so 25p and 18p can sit next to 5.4 without a contradiction. Vol overlay is VIXEQ’s percentile, labelled ELEVATED at or above 70, SUBDUED at or below 40, otherwise NORMAL, with the word overlay on the row so it is not mistaken for a third term in the score. VIXEQ does not enter the 0 to 10 line and does not move the regime. You can hold STOCK PICKING and still see constituent implied volatility elevated. The first fact is structure. The second is the vol climate around it. Trend is the EMA slope already described. Status is ACTIVE once DSPX and COR3M both have a rank, and WARMING UP until the lookback fills. If a feed is late the score stays blank rather than collapsing toward zero.

The grid under those rows is the same two-dimensional plane drawn as a table. Rows are DSPX, high at the top, low at the bottom. Columns are COR3M, low on the left, high on the right. PICK is high dispersion with low correlation. STRESS is both high. COMP is both low. TAPE is low dispersion with high correlation. MIXED sits in the centre, and the dotted cells are the mixed edges where only one factor has left the middle. The highlighted cell is the current corner. The footer under the grid says score = summary and matrix = 2D grid, which is the whole design in six words: the line compresses two ranks, the grid keeps them apart.

The small block at the bottom right of the pane is the watermark, the same facts for screenshots: ticker and timeframe, the score, the regime with the Why line, and confirmed daily or live daily. Colour across every theme keeps the same jobs. Green is high dispersion, low correlation, stock picking, subdued VIXEQ. Red is high correlation, index tape, broad stress, elevated VIXEQ. Blue, the primary colour of the theme, is compressed or mid. The eight themes only change the paint, not the meaning.

Cboe built DSPX to measure expected 30-day dispersion in the S&P 500 from index options and from selected single-stock options (Cboe Global Markets and S&P Dow Jones Indices, 2023; Cboe, n.d.a). COR3M is the ATM constant-maturity estimate of average correlation among the top 50 names (Cboe, n.d.b). VIXEQ is the cap-weighted 30-day implied volatility of that same basket, published as a DSPX component and scheduled for live calculation in November 2024 (Cboe Global Markets and S&P Dow Jones Indices, 2024). IMS does not rebuild those formulas. It ranks the published daily closes over a trailing window of daily prints, default 252 sessions, inside the daily request, so the lookback remains 252 daily observations on an hourly chart as well as on a daily chart. The ranks are smoothed with a short daily EMA. High and low for the corners enter at the 60th and 40th percentiles and, with hysteresis on, leave only after 55 and 45, which stops a one-percentile wobble from renaming the tape. Daily is the timeframe this was written for. Trend and bands follow daily changes on the host chart, so they are exact on a daily pane and only as fine as the host timeframe on a weekly one.

Alerts fire on a confirmed bar for the step from one regime into another, including MIXED -> STOCK PICKING, for leaving a corner, for the score crossing 7.5 or 2.5, for a turn in the daily EMA slope, and for VIXEQ first reaching the elevated overlay band. Wire them to a notification, not to an order. The script will not tell you whether SPX is going up, and it does not claim to forecast next week’s realised breadth. It tells you, each morning, whether the listed options surface is treating the next month as a crowd or as 500 separate stories.

DSPX has been live since 27 September 2023. VIXEQ’s live window is shorter, so its percentile can stay blank until the lookback fills. The ranks are relative to that window, not to a decade of history. No return forecast is claimed, and Cboe, S&P DJI and VIX remain trademarks of their owners.

References

Cboe (n.d.a) Cboe S&P 500 Dispersion Index. Available at: cboe.com/us/indices/dispersion/

Cboe (n.d.b) Implied Correlation. Available at: cboe.com/us/indices/implied/

Cboe Global Markets and S&P Dow Jones Indices (2023) S&P Dow Jones Indices and Cboe Global Markets to Launch the Cboe S&P 500 Dispersion Index. Available at: prnewswire.com/news-releases/sp-dow-jones-indices-and-cboe-global-markets-to-launch-the-cboe-sp-500-dispersion-index-301937523.html

Cboe Global Markets and S&P Dow Jones Indices (2024) Cboe Global Markets and S&P Dow Jones Indices Plan to Launch New Cboe S&P 500 Constituent Volatility Index (VIXEQ). Available at: prnewswire.com/news-releases/cboe-global-markets-and-sp-dow-jones-indices-plan-to-launch-new-cboe-sp-500-constituent-volatility-index-vixeq-302279208.html

免責事項

これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。