OPEN-SOURCE SCRIPT
Updated

COT Comm Osci

101
Description
The COT Comm Osci is a sentiment oscillator based on net positions from the weekly Commitments of Traders (COT) report.
It transforms net positions of Commercials, Noncommercials, or Nonreportables into a 0–100 index.
  • A value of 100 = highest net position within the selected timeframe.
  • A value of 0 = lowest net position.

You can define three historical intervals (e.g. 26/ 52 / 156 weeks).

Tip
To improve your analysis, it's recommended to add a separate COT indicator that visualizes raw Long/Short or net positions directly. This helps interpret the oscillator in context.

This script is based on “Commercial Index–Buschi” by MagicEins and has been extended with new features and error handling.

Features
  • Select between Commercial, Noncommercial, or Nonreportable trader groups
  • Proper handling of HG Futures (Copper)
  • Displays a warning if the root code is invalid (unsupported market symbol)

Release Notes
Field description changed for better understanding.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.