OPEN-SOURCE SCRIPT

Put Call Oscillator

This is a volume-based oscillator used for detecting market sentiment.

This plots two moving averages of the CBOE S&P500 PCR (put call ratio), and a histogram to measure the distance between them. The histogram will generate signals of green (bullish) or red (bearish), depending on whether put volume is decreasing or increasing.

The moving averages are adjustable. They are set at 4 and 16 by default. Increasing the moving averages will generate less signals, while decreasing them will generate more signals.

The background will change color from red to green depending on whether the PCR is above or below 1.



I used capriole_charles script "Put/Call Ratio (PCR)" to help me build this.
Centered OscillatorsoptionsOscillatorsPCRsentimenttrendVolume

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer