OPEN-SOURCE SCRIPT
Mis à jour

COT Comm Osci

233
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)

Notes de version
Field description changed for better understanding.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.