PROTECTED SOURCE SCRIPT
Updated

CoT MK OI-Short Percentile Oscillator

185
CoT MK OI-Short Percentile Oscillator is a weekly indicator that tracks overall market participation and commercial hedger pessimism by plotting total Open Interest and the ratio of Commercials’ short positions to Open Interest. It fetches both data series on a 1-week resolution, then calculates the user-defined upper and lower percentiles (default 80%/20%) over a configurable lookback period (default 208 weeks) entirely within the weekly timeframe. The main plots show rounded Open Interest in blue and Commercials Short/OI% in red, while the red upper bands flag overbought or over-hedged extremes and the green lower bands highlight underbought or under-hedged conditions. Traders use these percentile bands to identify when crowd participation or hedger pessimism reaches extremes that often presage market turns.
Release Notes
The weekly values are now shifted one week to the left, so each value is displayed on the correct week.
Release Notes
The script now uses daily CoT data for Open Interest and Commercials Short, so the most recent values are displayed as soon as they are published by TradingView. Quantile lines remain based on weekly data.

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.