OPEN-SOURCE SCRIPT

Williams Vix Fix OHLC candles plot indicator (Tartigradia)

アップデート済
OHLC candles plot of the Williams VixFix indicator, which allows to draw trend lines.
Williams VixFix is a realized volatility indicator developed by Larry Williams, and can help in finding market bottoms.
Indeed, as Williams describe in his paper, markets tend to find the lowest prices during times of highest volatility, which usually accompany times of highest fear. The VixFix is calculated as how much the current low price statistically deviates from the maximum within a given look-back period.

The Williams VixFix indicator is usually presented as a curve or histogram. The novelty of this indicator is to present the data as a OHLC candles plot: whereas the original Williams VixFix calculation only involves the close value, we here use the open, high and low values as well. This led to some mathematical challenges because some of these calculations led to absurd values, so workarounds had to be found, but in the end I think the result was worth it, it reproduces the VIX chart quite well.

A great additional value of the OHLC chart is that it shows not just the close value, but all the values during the session: open, high and low in addition to close. This allows to draw trend lines and can provide additional information on momentum and sentiment. In addition, other indicators can be used on it, as if it was a price chart, such as RSI indicators (see RSI+ (alt) indicator for example).

For more information on the Vix Fix, which is a strategy published under public domain:


This indicator includes only the Williams VixFix as an OHLC candles or bars plot, and price / vixfix candles plot, as well as the typical vixfix histogram. Indeed, it is much more practical for unbounded range indicators to be plotted in their own separate panel, hence why this indicator is released separately, so that it can work and be scaled adequately out of the box.

Note that the there are however no bottom buy signals. For a more complete indicator, which also includes the OHLC candles plots present here, but also bottom signals and Inverse VixFix (top signals), see:
Williams Vix Fix ultra complete indicator (Tartigradia)


Set Index symbol to SPX, and index_current = false, and timeframe Weekly, to reproduce the original VIX as close as possible by the VIXFIX (use the Add Symbol option, because you want to plot CBOE:VIX on the same timeframe as the current chart, which may include extended session / weekends). With the Weekly timeframe, off days / extended session days should not change much, but with lower timeframes this is important, because nights and weekends can change how the graph appears and seemingly make them different because of timing misalignment when in reality they are not when properly aligned.
リリースノート
Update:
* Fix logscale option creating negative values for the classical vixfix.
* Change default lookback period after empirical tests.
* Better functions documentation.
リリースノート
Update:
* Change default lookback period to 50 after empirical tests.
* Added adaptive rescaling for price/vixfix but it isn't very useful.
リリースノート
Update:
* add experimental Price/VixFix Oscillator, disabled by default
リリースノート
Update:
* Add limits (upper, lower, neutral) for the stochastic oscillators, so that the graph is always properly scaled, even when adaptive rescaling to VixFix is enabled.
* Add VixFix Oscillator, an alternative to Stochastic VixFix (SVIX).
リリースノート
Update:
* Add background highlight or bar highlight for stochastic oscillators variants of VIXfix (not to be confused with SVIX) and Price/VIXfix.
* Set log transform for Price/VIXfix by default again.
リリースノート
Update:
* Invert colors for highlight of Price/VIXfix overbought/oversold condition to avoid confusion with other VIXfix based highlights. Now: green/blue = good time for an entry/long, especially when the highlight disappears, this acts as a confirmation. Red/yellow = good time to exit/short, especially when the highlight disappears, as this acts as a confirmation.
リリースノート
Update:
* Fix typo: syminfo.ticker -> syminfo.tickerid , before we fetched the chart's symbol but potentially from another data provider than current chart, now we will use the exact same data as the chart.
BARScandlecandlesohlcsentimentTrend AnalysisvixfixVolatility

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

免責事項