COT Quantitative Trading Framework

COT Quantitative Engine turns the CFTC Commitments of Traders (COT) report into rule-based, chart-ready signals. It measures how crowded speculators are relative to commercial/institutional hedgers, normalizes that positioning so it can be compared across history and across markets, and marks setups on your price chart. Because COT data is weekly and lagged, signals can be required to confirm with a price trigger before they print.
WHY THE REPORT TYPE MATTERS
The script picks the report that fits the market instead of mixing participant groups:
• Commodities (metals, energy, grains) use the Disaggregated report: Managed Money (momentum) vs Producer/Merchant (value-driven hedgers).
• Financials (FX, equity indices, bonds, crypto) use the Traders in Financial Futures report: Leveraged Funds (momentum) vs Asset Managers (slow, structural capital).
Futures + Options Combined data is on by default and can be switched to futures-only.
HOW IT WORKS
1. Data
Positions come from TradingView's official COT library, so no ticker strings are typed by hand. Net position = Long − Short for each group.
2. Normalization (weekly lookbacks, on any chart timeframe)
• COT Index: min-max scaling to 0–100 over a user-set window (default 156 weeks).
• Rolling Z-Score: standard deviations from the mean (default 52 weeks).
• Net speculator position as a % of open interest, to adjust for market growth over time.
History is stored once per COT release, so "weeks" really means weeks, whether you are on a 15m, daily or weekly chart.
3. Setups
• Dual-Extreme Exhaustion: speculators at an extreme (COT Index above/below the bounds, or Z-score beyond the threshold) while the hedger group sits at the opposite extreme.
• Positioning Divergence: price makes a new high/low over the lookback window, but speculator Z-score fails to confirm the previous peak/trough.
• Structural Flip: speculator net position crosses zero while open interest expands by more than a set % week over week.
4. Confirmation and risk filters
• Price trigger: previous-week high/low break, a cross of a trigger EMA, either, or none.
• Optional open interest contraction requirement on extreme signals (reversals should come with forced liquidation).
• Invalidation marker: a new extreme in the trend direction on expanding open interest.
5. Open interest regime
Price change vs open interest change is classified as Bullish Accumulation, Bearish Accumulation, Short Covering Squeeze or Long Liquidation.
WHAT YOU SEE ON THE CHART
• Background shading: red = bearish exhaustion regime, green = bullish exhaustion regime.
• COT BEAR / COT BULL labels: extreme setups that passed the price trigger and open interest filter.
• Triangles (DIV): positioning divergences.
• Diamonds: speculator flips through zero.
• Yellow X: setup invalidated on expanding open interest.
• Optional trigger EMA.
• Dashboard: COT Index, Z-score, % of open interest, open interest change and regime, and the current macro state.
• Alerts for all signals, including invalidation.
SETTINGS
• Asset Preset: Auto-Detect maps the chart symbol (e.g. XAUUSD, EURUSD, USOIL, US500, BTCUSD) to the matching CFTC contract. Choose a preset manually, or use Custom with a CFTC code and report type.
• Futures + Options Combined: toggle.
• COT Index and Z-Score lookbacks, extreme thresholds and bounds.
• Divergence window, flip open interest threshold, trigger mode, EMA length, open interest confirmation.
• Dashboard position and display options.
HOW TO USE
COT is a macro-positioning filter, not an intraday timing tool. Positions are measured on Tuesday and published Friday, so treat extremes as context for what the crowd looks like, then wait for price to confirm. Works best on daily and weekly charts of CFTC-covered futures and their spot/CFD proxies.
LIMITATIONS
• COT data has a built-in 3-day delay. TradingView dates each report on its Tuesday, so signals on historical bars can look better than they could have been traded in real time.
• Not every instrument has COT data. If a symbol has no matching CFTC contract, use the Custom preset.
• Extremes can persist for a long time in strong trends. Do not treat any single signal as a standalone entry.
• Default parameters are starting points, not optimized values. Test on your own markets and timeframes.
NOTES
This script is open for study and uses TradingView's public COT library for data access. All normalization, setup logic and the open interest framework are original to this script.
Disclaimer: This indicator is for educational and informational purposes only and is not financial advice. Past positioning patterns do not guarantee future results. Always use your own risk management.
If you want it shorter, I can trim it to a version of 150–200 words. TradingView’s moderators generally expect a clear explanation of how the script works, so I’d keep the “How it works” and “Limitations” sections. Before publishing, check whether you want to keep the last line of the Notes section, “open for study”, which assumes you are publishing open source. If you plan to publish it as protected or invite-only, change that sentence.
i am fine with long version but please add how i can use indicator trading the instrument and explain various things that appear on table in the indicator
Drafting the indicator's description and usage documentation.
Here is the full updated description, with a new section on how to trade with the indicator and a row-by-row explanation of the dashboard.
OVERVIEW
COT Quantitative Engine turns the CFTC Commitments of Traders (COT) report into rule-based, chart-ready signals. It measures how crowded speculators are relative to commercial/institutional hedgers, normalizes that positioning so it can be compared across history and across markets, and marks setups on your price chart. Because COT data is weekly and lagged, signals can be required to confirm with a price trigger before they print.
WHY THE REPORT TYPE MATTERS
The script picks the report that fits the market instead of mixing participant groups:
• Commodities (metals, energy, grains) use the Disaggregated report: Managed Money (momentum) vs Producer/Merchant (value-driven hedgers).
• Financials (FX, equity indices, bonds, crypto) use the Traders in Financial Futures report: Leveraged Funds (momentum) vs Asset Managers (slow, structural capital).
Futures + Options Combined data is on by default and can be switched to futures-only.
HOW IT WORKS
1. Data
Positions come from TradingView's official COT library, so no ticker strings are typed by hand. Net position = Long − Short for each group.
2. Normalization (weekly lookbacks, on any chart timeframe)
• COT Index: min-max scaling to 0–100 over a user-set window (default 156 weeks).
• Rolling Z-Score: standard deviations from the mean (default 52 weeks).
• Net speculator position as a % of open interest, to adjust for market growth over time.
History is stored once per COT release, so "weeks" really means weeks, whether you are on a 15m, daily or weekly chart.
3. Setups
• Dual-Extreme Exhaustion: speculators at an extreme (COT Index above/below the bounds, or Z-score beyond the threshold) while the hedger group sits at the opposite extreme.
• Positioning Divergence: price makes a new high/low over the lookback window, but speculator Z-score fails to confirm the previous peak/trough.
• Structural Flip: speculator net position crosses zero while open interest expands by more than a set % week over week.
4. Confirmation and risk filters
• Price trigger: previous-week high/low break, a cross of a trigger EMA, either, or none.
• Optional open interest contraction requirement on extreme signals (reversals should come with forced liquidation).
• Invalidation marker: a new extreme in the trend direction on expanding open interest.
5. Open interest regime
Price change vs open interest change is classified as Bullish Accumulation, Bearish Accumulation, Short Covering Squeeze or Long Liquidation.
WHAT YOU SEE ON THE CHART
• Background shading: red = bearish exhaustion regime, green = bullish exhaustion regime.
• COT BEAR / COT BULL labels: extreme setups that passed the price trigger and open interest filter.
• Triangles (DIV): positioning divergences. Orange down triangle = bearish, teal up triangle = bullish.
• Diamonds: speculator flips through zero. Lime = flip to net long, maroon = flip to net short.
• Yellow X: setup invalidated on expanding open interest.
• Optional trigger EMA.
• Dashboard (explained below).
• Alerts for all signals, including invalidation.
READING THE DASHBOARD
The table shows the latest COT reading for the chosen market. Colors work the same way throughout: red = bearish pressure or crowding on the long side, green = bullish pressure or crowding on the short side, gray = nothing extreme.
Header row
Shows the detected market and the report type being used (Disaggregated or Financial). Check this first to confirm the script picked the right contract.
Speculator COT Index (e.g. "Managed Money COT Index (156w)")
Where the speculators' net position sits within its own range over the lookback, from 0 to 100. Near 100 means they are about as net long as they have been in three years. Near 0 means about as net short. Red when at or above the overbought bound (default 95), green when at or below the oversold bound (default 5). Speculators are trend followers, so a red reading means the long side is crowded and few new buyers are left, not that price must fall immediately.
Speculator Z-Score
How many standard deviations the speculators' net position is from its 52-week average. +2σ or more (red) is a statistically rare level of long crowding, and −2σ or less (green) is rare short crowding. The Z-score still works when positions hit new all-time highs, where the COT Index would simply pin at 100.
Hedger COT Index (Producer/Merchant or Asset Managers)
The same 0–100 reading for the hedger group, with the colors flipped because hedgers take the opposite side. Green at or above the upper bound means hedgers are unusually net long (usually buying value). Red at or below the lower bound means hedgers are unusually net short (usually selling into strength). The strongest setups have speculators and hedgers at opposite extremes at the same time.
Hedger Z-Score
Same idea as the speculator Z-score, applied to the hedger group.
Spec Net % Open Interest
Speculators' net position divided by total open interest. It shows how big their position is relative to the whole market, so you can compare a crowded trade in corn with one in the S&P 500. Large positive values mean heavy long crowding, and large negative values mean heavy short crowding. It is informational and not color-coded.
OI Change (w/w)
Percentage change in open interest since the previous COT report. Green = open interest rising (new money entering), maroon = open interest falling (positions closing). It is also what the Structural Flip filter and the optional OI confirmation use.
Open Interest Regime
Combines the weekly price change with the open interest change:
• Bullish Accumulation (green): price up, OI up. New money is buying, so the uptrend is supported.
• Bearish Accumulation (red): price down, OI up. New money is selling, so the downtrend is supported.
• Short Covering Squeeze (orange): price up, OI down. The rally is driven by shorts exiting, not new buyers, so it is more fragile.
• Long Liquidation (maroon): price down, OI down. The decline is driven by longs exiting, not new sellers, and tends to be a finite event.
• Neutral (gray): no clear combination.
Macro Regime Setup
The overall state the engine sees right now:
• BEARISH EXHAUSTION (red): speculators extremely long and hedgers extremely short.
• BULLISH EXHAUSTION (green): speculators extremely short and hedgers extremely long.
• BEAR DIVERGENCE (orange): price made a new high but speculators did not confirm it.
• BULL DIVERGENCE (teal): price made a new low but speculators did not confirm it.
• NEUTRAL (gray): no setup is active.
Note that this row describes the regime, not an entry. Entries are the chart labels, which also need the price trigger. The Structural Flip shows only as chart diamonds, not in this row.
HOW TO TRADE WITH IT
COT tells you who is crowded. Price tells you when the crowd is wrong. A practical workflow on daily or weekly charts:
1. Check the header. Confirm the market and report type are correct.
2. Read the regime. A red or green Macro Regime Setup row, or background shading, means the market is in a setup state. If the row says NEUTRAL, there is no COT edge, so do not force a trade.
3. Check agreement. The best setups have the speculator and hedger rows at opposite extremes, with both the COT Index and the Z-score pointing the same way.
4. Read the open interest. For a reversal, falling open interest while price turns is the confirmation you want (positions are being forced out). Rising open interest while price keeps pushing the other way is a warning that new money is still supporting the trend.
5. Wait for the label. Enter on a COT BEAR or COT BULL label, not on the shading alone. The label means the price trigger and the OI filter have both passed.
6. Place the stop and manage risk. A common approach is a stop beyond the recent swing high (for shorts) or low (for longs), or beyond the previous week's extreme. Size positions so that being wrong is a small loss.
7. Respect the yellow X. If a yellow X appears, price has made a new extreme in the trend direction on expanding open interest. The reversal thesis is weakened, so consider exiting or standing aside.
Examples of how the pieces combine:
• Bearish idea: Managed Money COT Index above 95, Producer/Merchant COT Index below 5, Open Interest Regime turning from Bullish Accumulation to Short Covering Squeeze, and a COT BEAR label as price breaks last week's low or closes below the EMA.
• Bullish idea: speculators near 0, hedgers near 100, a Long Liquidation regime fading, and a COT BULL label as price breaks last week's high or closes above the EMA.
• Divergence idea: price prints a new 20-bar high, the DIV triangle appears because speculators committed less than at the last high, and the weekly trigger confirms.
• Trend-following idea: a lime diamond (flip to net long) with OI expansion above the threshold, suggesting new institutional money is entering. Use it as a bias for trend-following longs rather than a reversal.
Tips: use the weekly or daily chart for the signals and a lower timeframe only for timing entries. Combine with your own support/resistance and risk rules. Extremes can last for months in strong trends, so wait for confirmation instead of trying to pick the exact top or bottom.
SETTINGS
• Asset Preset: Auto-Detect maps the chart symbol (e.g. XAUUSD, EURUSD, USOIL, US500, BTCUSD) to the matching CFTC contract. Choose a preset manually, or use Custom with a CFTC code and report type.
• Futures + Options Combined: toggle.
• COT Index and Z-Score lookbacks, extreme thresholds and bounds.
• Divergence window, flip open interest threshold, trigger mode, EMA length, open interest confirmation.
• Dashboard position and display options.
LIMITATIONS
• COT data has a built-in 3-day delay. Positions are measured on Tuesday and published Friday. TradingView dates each report on its Tuesday, so signals on historical bars can look better than they could have been traded in real time.
• Not every instrument has COT data. If a symbol has no matching CFTC contract, use the Custom preset.
• Extremes can persist for a long time in strong trends. Do not treat any single signal as a standalone entry.
• Default parameters are starting points, not optimized values. Test on your own markets and timeframes.
NOTES
This script uses TradingView's public COT library for data access. All normalization, setup logic and the open interest framework are original to this script.
Disclaimer: This indicator is for educational and informational purposes only and is not financial advice. Past positioning patterns do not guarantee future results. Always use your own risk management.
WHY THE REPORT TYPE MATTERS
The script picks the report that fits the market instead of mixing participant groups:
• Commodities (metals, energy, grains) use the Disaggregated report: Managed Money (momentum) vs Producer/Merchant (value-driven hedgers).
• Financials (FX, equity indices, bonds, crypto) use the Traders in Financial Futures report: Leveraged Funds (momentum) vs Asset Managers (slow, structural capital).
Futures + Options Combined data is on by default and can be switched to futures-only.
HOW IT WORKS
1. Data
Positions come from TradingView's official COT library, so no ticker strings are typed by hand. Net position = Long − Short for each group.
2. Normalization (weekly lookbacks, on any chart timeframe)
• COT Index: min-max scaling to 0–100 over a user-set window (default 156 weeks).
• Rolling Z-Score: standard deviations from the mean (default 52 weeks).
• Net speculator position as a % of open interest, to adjust for market growth over time.
History is stored once per COT release, so "weeks" really means weeks, whether you are on a 15m, daily or weekly chart.
3. Setups
• Dual-Extreme Exhaustion: speculators at an extreme (COT Index above/below the bounds, or Z-score beyond the threshold) while the hedger group sits at the opposite extreme.
• Positioning Divergence: price makes a new high/low over the lookback window, but speculator Z-score fails to confirm the previous peak/trough.
• Structural Flip: speculator net position crosses zero while open interest expands by more than a set % week over week.
4. Confirmation and risk filters
• Price trigger: previous-week high/low break, a cross of a trigger EMA, either, or none.
• Optional open interest contraction requirement on extreme signals (reversals should come with forced liquidation).
• Invalidation marker: a new extreme in the trend direction on expanding open interest.
5. Open interest regime
Price change vs open interest change is classified as Bullish Accumulation, Bearish Accumulation, Short Covering Squeeze or Long Liquidation.
WHAT YOU SEE ON THE CHART
• Background shading: red = bearish exhaustion regime, green = bullish exhaustion regime.
• COT BEAR / COT BULL labels: extreme setups that passed the price trigger and open interest filter.
• Triangles (DIV): positioning divergences.
• Diamonds: speculator flips through zero.
• Yellow X: setup invalidated on expanding open interest.
• Optional trigger EMA.
• Dashboard: COT Index, Z-score, % of open interest, open interest change and regime, and the current macro state.
• Alerts for all signals, including invalidation.
SETTINGS
• Asset Preset: Auto-Detect maps the chart symbol (e.g. XAUUSD, EURUSD, USOIL, US500, BTCUSD) to the matching CFTC contract. Choose a preset manually, or use Custom with a CFTC code and report type.
• Futures + Options Combined: toggle.
• COT Index and Z-Score lookbacks, extreme thresholds and bounds.
• Divergence window, flip open interest threshold, trigger mode, EMA length, open interest confirmation.
• Dashboard position and display options.
HOW TO USE
COT is a macro-positioning filter, not an intraday timing tool. Positions are measured on Tuesday and published Friday, so treat extremes as context for what the crowd looks like, then wait for price to confirm. Works best on daily and weekly charts of CFTC-covered futures and their spot/CFD proxies.
LIMITATIONS
• COT data has a built-in 3-day delay. TradingView dates each report on its Tuesday, so signals on historical bars can look better than they could have been traded in real time.
• Not every instrument has COT data. If a symbol has no matching CFTC contract, use the Custom preset.
• Extremes can persist for a long time in strong trends. Do not treat any single signal as a standalone entry.
• Default parameters are starting points, not optimized values. Test on your own markets and timeframes.
NOTES
This script is open for study and uses TradingView's public COT library for data access. All normalization, setup logic and the open interest framework are original to this script.
Disclaimer: This indicator is for educational and informational purposes only and is not financial advice. Past positioning patterns do not guarantee future results. Always use your own risk management.
If you want it shorter, I can trim it to a version of 150–200 words. TradingView’s moderators generally expect a clear explanation of how the script works, so I’d keep the “How it works” and “Limitations” sections. Before publishing, check whether you want to keep the last line of the Notes section, “open for study”, which assumes you are publishing open source. If you plan to publish it as protected or invite-only, change that sentence.
i am fine with long version but please add how i can use indicator trading the instrument and explain various things that appear on table in the indicator
Drafting the indicator's description and usage documentation.
Here is the full updated description, with a new section on how to trade with the indicator and a row-by-row explanation of the dashboard.
OVERVIEW
COT Quantitative Engine turns the CFTC Commitments of Traders (COT) report into rule-based, chart-ready signals. It measures how crowded speculators are relative to commercial/institutional hedgers, normalizes that positioning so it can be compared across history and across markets, and marks setups on your price chart. Because COT data is weekly and lagged, signals can be required to confirm with a price trigger before they print.
WHY THE REPORT TYPE MATTERS
The script picks the report that fits the market instead of mixing participant groups:
• Commodities (metals, energy, grains) use the Disaggregated report: Managed Money (momentum) vs Producer/Merchant (value-driven hedgers).
• Financials (FX, equity indices, bonds, crypto) use the Traders in Financial Futures report: Leveraged Funds (momentum) vs Asset Managers (slow, structural capital).
Futures + Options Combined data is on by default and can be switched to futures-only.
HOW IT WORKS
1. Data
Positions come from TradingView's official COT library, so no ticker strings are typed by hand. Net position = Long − Short for each group.
2. Normalization (weekly lookbacks, on any chart timeframe)
• COT Index: min-max scaling to 0–100 over a user-set window (default 156 weeks).
• Rolling Z-Score: standard deviations from the mean (default 52 weeks).
• Net speculator position as a % of open interest, to adjust for market growth over time.
History is stored once per COT release, so "weeks" really means weeks, whether you are on a 15m, daily or weekly chart.
3. Setups
• Dual-Extreme Exhaustion: speculators at an extreme (COT Index above/below the bounds, or Z-score beyond the threshold) while the hedger group sits at the opposite extreme.
• Positioning Divergence: price makes a new high/low over the lookback window, but speculator Z-score fails to confirm the previous peak/trough.
• Structural Flip: speculator net position crosses zero while open interest expands by more than a set % week over week.
4. Confirmation and risk filters
• Price trigger: previous-week high/low break, a cross of a trigger EMA, either, or none.
• Optional open interest contraction requirement on extreme signals (reversals should come with forced liquidation).
• Invalidation marker: a new extreme in the trend direction on expanding open interest.
5. Open interest regime
Price change vs open interest change is classified as Bullish Accumulation, Bearish Accumulation, Short Covering Squeeze or Long Liquidation.
WHAT YOU SEE ON THE CHART
• Background shading: red = bearish exhaustion regime, green = bullish exhaustion regime.
• COT BEAR / COT BULL labels: extreme setups that passed the price trigger and open interest filter.
• Triangles (DIV): positioning divergences. Orange down triangle = bearish, teal up triangle = bullish.
• Diamonds: speculator flips through zero. Lime = flip to net long, maroon = flip to net short.
• Yellow X: setup invalidated on expanding open interest.
• Optional trigger EMA.
• Dashboard (explained below).
• Alerts for all signals, including invalidation.
READING THE DASHBOARD
The table shows the latest COT reading for the chosen market. Colors work the same way throughout: red = bearish pressure or crowding on the long side, green = bullish pressure or crowding on the short side, gray = nothing extreme.
Header row
Shows the detected market and the report type being used (Disaggregated or Financial). Check this first to confirm the script picked the right contract.
Speculator COT Index (e.g. "Managed Money COT Index (156w)")
Where the speculators' net position sits within its own range over the lookback, from 0 to 100. Near 100 means they are about as net long as they have been in three years. Near 0 means about as net short. Red when at or above the overbought bound (default 95), green when at or below the oversold bound (default 5). Speculators are trend followers, so a red reading means the long side is crowded and few new buyers are left, not that price must fall immediately.
Speculator Z-Score
How many standard deviations the speculators' net position is from its 52-week average. +2σ or more (red) is a statistically rare level of long crowding, and −2σ or less (green) is rare short crowding. The Z-score still works when positions hit new all-time highs, where the COT Index would simply pin at 100.
Hedger COT Index (Producer/Merchant or Asset Managers)
The same 0–100 reading for the hedger group, with the colors flipped because hedgers take the opposite side. Green at or above the upper bound means hedgers are unusually net long (usually buying value). Red at or below the lower bound means hedgers are unusually net short (usually selling into strength). The strongest setups have speculators and hedgers at opposite extremes at the same time.
Hedger Z-Score
Same idea as the speculator Z-score, applied to the hedger group.
Spec Net % Open Interest
Speculators' net position divided by total open interest. It shows how big their position is relative to the whole market, so you can compare a crowded trade in corn with one in the S&P 500. Large positive values mean heavy long crowding, and large negative values mean heavy short crowding. It is informational and not color-coded.
OI Change (w/w)
Percentage change in open interest since the previous COT report. Green = open interest rising (new money entering), maroon = open interest falling (positions closing). It is also what the Structural Flip filter and the optional OI confirmation use.
Open Interest Regime
Combines the weekly price change with the open interest change:
• Bullish Accumulation (green): price up, OI up. New money is buying, so the uptrend is supported.
• Bearish Accumulation (red): price down, OI up. New money is selling, so the downtrend is supported.
• Short Covering Squeeze (orange): price up, OI down. The rally is driven by shorts exiting, not new buyers, so it is more fragile.
• Long Liquidation (maroon): price down, OI down. The decline is driven by longs exiting, not new sellers, and tends to be a finite event.
• Neutral (gray): no clear combination.
Macro Regime Setup
The overall state the engine sees right now:
• BEARISH EXHAUSTION (red): speculators extremely long and hedgers extremely short.
• BULLISH EXHAUSTION (green): speculators extremely short and hedgers extremely long.
• BEAR DIVERGENCE (orange): price made a new high but speculators did not confirm it.
• BULL DIVERGENCE (teal): price made a new low but speculators did not confirm it.
• NEUTRAL (gray): no setup is active.
Note that this row describes the regime, not an entry. Entries are the chart labels, which also need the price trigger. The Structural Flip shows only as chart diamonds, not in this row.
HOW TO TRADE WITH IT
COT tells you who is crowded. Price tells you when the crowd is wrong. A practical workflow on daily or weekly charts:
1. Check the header. Confirm the market and report type are correct.
2. Read the regime. A red or green Macro Regime Setup row, or background shading, means the market is in a setup state. If the row says NEUTRAL, there is no COT edge, so do not force a trade.
3. Check agreement. The best setups have the speculator and hedger rows at opposite extremes, with both the COT Index and the Z-score pointing the same way.
4. Read the open interest. For a reversal, falling open interest while price turns is the confirmation you want (positions are being forced out). Rising open interest while price keeps pushing the other way is a warning that new money is still supporting the trend.
5. Wait for the label. Enter on a COT BEAR or COT BULL label, not on the shading alone. The label means the price trigger and the OI filter have both passed.
6. Place the stop and manage risk. A common approach is a stop beyond the recent swing high (for shorts) or low (for longs), or beyond the previous week's extreme. Size positions so that being wrong is a small loss.
7. Respect the yellow X. If a yellow X appears, price has made a new extreme in the trend direction on expanding open interest. The reversal thesis is weakened, so consider exiting or standing aside.
Examples of how the pieces combine:
• Bearish idea: Managed Money COT Index above 95, Producer/Merchant COT Index below 5, Open Interest Regime turning from Bullish Accumulation to Short Covering Squeeze, and a COT BEAR label as price breaks last week's low or closes below the EMA.
• Bullish idea: speculators near 0, hedgers near 100, a Long Liquidation regime fading, and a COT BULL label as price breaks last week's high or closes above the EMA.
• Divergence idea: price prints a new 20-bar high, the DIV triangle appears because speculators committed less than at the last high, and the weekly trigger confirms.
• Trend-following idea: a lime diamond (flip to net long) with OI expansion above the threshold, suggesting new institutional money is entering. Use it as a bias for trend-following longs rather than a reversal.
Tips: use the weekly or daily chart for the signals and a lower timeframe only for timing entries. Combine with your own support/resistance and risk rules. Extremes can last for months in strong trends, so wait for confirmation instead of trying to pick the exact top or bottom.
SETTINGS
• Asset Preset: Auto-Detect maps the chart symbol (e.g. XAUUSD, EURUSD, USOIL, US500, BTCUSD) to the matching CFTC contract. Choose a preset manually, or use Custom with a CFTC code and report type.
• Futures + Options Combined: toggle.
• COT Index and Z-Score lookbacks, extreme thresholds and bounds.
• Divergence window, flip open interest threshold, trigger mode, EMA length, open interest confirmation.
• Dashboard position and display options.
LIMITATIONS
• COT data has a built-in 3-day delay. Positions are measured on Tuesday and published Friday. TradingView dates each report on its Tuesday, so signals on historical bars can look better than they could have been traded in real time.
• Not every instrument has COT data. If a symbol has no matching CFTC contract, use the Custom preset.
• Extremes can persist for a long time in strong trends. Do not treat any single signal as a standalone entry.
• Default parameters are starting points, not optimized values. Test on your own markets and timeframes.
NOTES
This script uses TradingView's public COT library for data access. All normalization, setup logic and the open interest framework are original to this script.
Disclaimer: This indicator is for educational and informational purposes only and is not financial advice. Past positioning patterns do not guarantee future results. Always use your own risk management.
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。