tartigradia

Stochastic Vix Fix SVIX (Tartigradia)

tartigradia ที่อัปเดต:   
The Stochastic Vix or Stochastic VixFix (SVIX), just like the Williams VixFix, is a realized volatility indicator, and can help in finding market bottoms as well as tops without requiring bollinger bands or any other construct, as the SVIX is bounded between 0-100 which allows for an objective thresholding regardless of the past.

Mathematically, SVIX is the complement of the original Stochastic Oscillator, with such a simple transform reproducing Williams' VixFix and the VIX index signals of high volatility and hence of market bottoms quite accurately but within a bounded 0-100 range. Having a predefined range allows to find markets bottoms without needing to compare to past prices using a bollinger band (Chris Moody on TradingView) nor a moving average (Hesta 2015), as a simple threshold condition (by default above 80) is sufficient to reliably signal interesting entry points at bottoming prices.

Having a predefined range allows to find markets bottoms without needing to compare to past prices using a bollinger band (Chris Moody on TradingView) nor a moving average (Hesta 2015), as a simple threshold condition (by default above 80) is sufficient to reliably signal interesting entry points at bottoming prices.

Indeed, as Williams describes in his paper, markets tend to find the lowest prices during times of highest volatility, which usually accompany times of highest fear.

Although the VixFix originally only indicates market bottoms, the Stochastic VixFix can also indicate good times to exit, when SVIX is at a low value (default: below 20), but just like the original VixFix and VIX index, exit signals are as usual much less reliable than long entries signals, because: 1) mature markets such as SP500 tend to increase over the long term, 2) when market fall, retail traders panic and hence volatility skyrockets and bottom is more reliably signalled, but at market tops, no one is panicking, price action only loses momentum because of liquidity drying up.

Compared to Hesta 2015 strategy of using a moving average over Williams' VixFix to generate entry signals, SVIX generates much fewer false positives during ranging markets, which drastically reduce Hesta 2015 strategy profitability as this incurs quite a lot of losses.

This indicator goes further than the original SVIX, by restoring the smoothed D and second-level smoothed D2 oscillators from the original Stochastic Oscillator, and use a 14-period ZLMA instead of the original 20-period SMA, to generate smoother yet responsive signals compared to using just the raw SVIX (by default, this is disabled, as the original raw SVIX is used to produce more entry signals).

Usage:
  • Set the timescale to daily or weekly preferably, to reduce false positives.
  • When the background is highlighted in green or when the highlight disappears, it is usually a good time to enter a long position.
  • Red background highlighting can be enabled to signal good exit zones, but these generate a lot of false positives.
  • To further reduce false positives, the SVIX_MA can be used to generate signals instead of the raw SVIX.

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

For more information on the Stochastic Vix Fix (SVIX), published under Creative Commons:
  • Replicating the CBOE VIX using a synthetic volatility index trading algorithm, Dayne Cary and Gary van Vuuren, Cogent Economics & Finance, Volume 7, 2019, Issue 1, doi.org/10.1080/23322039.2019.1641063
Note: strangely, in the paper, the authors failed to mention that the SVIX is the complement of the original Stochastic Oscillator, instead reproducing just the original equation. The correct equation for the SVIX was retroengineered by comparing charts they published in the paper with charts generated by this pinescript indicator.

For a more complete indicator, see:
เอกสารเผยแพร่:
Update:
* Add median as an option for smoothing the SVIX.
* Better internal functions documentation.
เอกสารเผยแพร่:
Update:
* Correct mistake in code comment
เอกสารเผยแพร่:
Update: just add a code comment.
เอกสารเผยแพร่:
Remove inaccurate code comment
เอกสารเผยแพร่:
Update:
* Extended tooltip for LookBack Period, can set 50 to transform this indicator into a market cycle indicator (instead of a volatility indicator).
เอกสารเผยแพร่:
Update:
* Tidier code and comments.
เอกสารเผยแพร่:
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.
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?