ICT-COT

1. Overview

The ICT-COT indicator brings institutional Commitment of Traders data directly to your charts to help you identify true macro market extremes. What makes this tool exceptionally unique is its modern architecture: it is built on the cutting-edge Pine Scriptâ„¢ v6 and utilizes the latest LibraryCOT v6 by TradingView. While many other COT indicators run on obsolete code and outdated library versions, this script ensures maximum reliability and performance.
The Original COT vs. The ICT COT
The traditional Commitment of Traders report provides raw, weekly aggregate data showing how Commercial hedgers, Large Speculators, and Retail traders are positioned. Most traditional analysis uses this as a standard momentum indicator following speculative trends.
The ICT (Inner Circle Trader) approach filters out the noise. It focuses exclusively on the "Commercials" (Smart Money / Hedgers). Instead of looking at absolute net values, the ICT method evaluates the Commercial Net Position against a rolling historical lookback period (e.g., 6 or 12 months). By finding the midpoint (Equilibrium) between historical highs and lows, it creates dynamic Premium and Discount zones to reveal when Smart Money is heavily accumulating or distributing.


2. Logic

2.1 Automated Resolution
The script handles all the complex symbol mapping automatically. You do not need to manually input CFTC codes; it seamlessly detects your asset and fetches the correct Commercial data.

2.2. Hedging Areas (Premium/Discount)
The indicator calculates a dynamic Zero Line (Equilibrium) based on the highest and lowest Commercial Net Positions over your chosen lookback period. It then shades the extremes into a Hedge Buy area (Discount) and Hedge Sell area (Premium) directly on the oscillator.

2.3. Program Dashboard
A built-in multi-timeframe table evaluates the current COT net position against multiple historical benchmarks (3-Month to 4-Year), displaying an overall "BUY" or "SELL" program bias for each period.


3. Settings & Options

3.1 Main Settings (COT Data)
  • COT Lookback : Choose the historical period for measuring extremes (Auto, 3 Months, 6 Months, 12 Months, 2 Years, 4 Years, Custom). "Auto" scales the lookback automatically based on your chart.
  • Include Options Data? : Toggle to include or exclude options in the COT calculations.
  • Custom Start Date : Specify an exact starting date when the "Custom" lookback option is selected.

3.2 COT Data Styling
  • Show COT Data? : Toggle the visibility of the COT position plot and hedging zones.
  • Comm. Net Position : Choose the color and thickness for the main commercial position line.
  • Main Zero Line / Hedge Zero Line : Customize the colors of the static zero line and the dynamic lookback median line.
  • Hedge Buy / Sell Areas : Adjust the background shading colors for the institutional premium and discount zones.

3.3 COT Table Info
  • Show Info Table? : Toggle the visibility of the multi-timeframe COT dashboard.
  • Buy / Sell Text Color : Customize the text colors indicating bullish (BUY) or bearish (SELL) bias.
  • Highlight Color : Set the background highlight color for the currently active lookback column.

3.4 COT Table Info (Style)
  • Location : Anchor the table to any specific area of your screen.
  • Table Size : Adjust the overall size of the table (Tiny to Huge).
  • Background / Text : Customize the general colors of the table's background and default text.