ShirokiHeishi

Synthetic Vix Stochastic

227
I noticed that this indicator was not in the public library, so I decided to share it. This is Larry Williams take on stochastics, based on his idea of synthetic vix. Thanks to Active trader magazine, his article on the idea shows us how this tool can be used as a timing instrument for his sythetic vix. The idea he relates is that the market becomes oversold at the height of volatility and the stochastic can highlight the periods when the panic may be over. This is evidenced by readings above 80 and below 20. He states that his indicator is less reliable at market tops rather than bottoms, and evidence suggests just that. Stochastics readings in this indicator have been adjusted to look and 'feel' like traditional readings. His suggested settings are the default, but I have included a more traditional line in the code that reads the WVF high and low in the calculation instead of just the WVF, just uncomment the appropriate lines and see for yourself. This indicator works really well with the Williams Vix Fix, inverted of course, coded by ChrisMoody.
Enjoy responsibly
ShirokiHeishi
see the notes on chart
オープンソーススクリプト

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

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
//@version=2
//Author: ShirokiHeishi 
//Idea by Larry Williams, on his Synthetic vix formula based on the article in 
//ACTIVE TRADER www.activetradermag.com • December 2007 • pgs 24-32
//in his article he suggests that readings above 80 and below 20 are potential bottoming and topping zone.
study(title="Stochastic", shorttitle="WVF_Stoch")
//inputs
//Larry recommended 22 periods for the lookback
//Larry recommended 14 periods for the stochastic
pd = input(22, title="WVF lookback period")
length  = input(14, minval=1)
smoothK = input(1, minval=1)
smoothD = input(3, minval=1)
OB      = input(80, title="Topping Zone")
OS      = input(20, title="Bottoming Zone")
//definitions
//this inverts the output for a more tradional look to the Stochastics
wvf = ((highest(close, pd)-low)/(highest(close, pd)))* -1
vfh = highest(wvf,pd)
vfl = lowest(wvf,pd)
//Larry's original formula as recorded in the article
//WVF = (highest (close,22)- low)/(highest(close,22))*100
//uncomment for a more traditional reading similar to standard stochastics
// k   = sma(stoch(wvf, vfh, vfl, length), smoothK) 
k   = sma(stoch(wvf, wvf, wvf, length),smoothK)
d   = sma(k, smoothD)
// outputs
plot(k, color=white, transp=0, linewidth=2)
plot(d, color=maroon, transp=0, linewidth=2) 
h0 = hline(OB, linestyle=dotted, color=maroon, title="Potential Topping Zone")
h1 = hline(OS, linestyle=dotted, color=teal, title="Potential Bottoming Zone")