TradingView
KioseffTrading
2022년 3월 18일 오전 9시 23분

VIX Cheat Sheet 

SPDR S&P 500 ETF TRUSTArca

설명

Hello!

This indicator - "VIX Cheat Sheet" - performs several calculations for VIX against the asset on your chart. However, using VIX as a risk proxy or volatility metric often fails beyond large-cap U.S equities. To remedy this, the VixFix indicator is included in the script; you can select whether the script performs calculations for an asset against VIX or against VixFix (i.e. Forex, Crypto)

Measured are: VIX correlation to an asset's price fluctuations, the average close-to-close gain/loss subsequent a VIX/VixFix close above the upper Bollinger Band, the average 5-session gain/loss following the same occurrence in addition to the average 10-session gain/loss, all close-to-close, 5 session, and 10-session gains/losses are stored as tooltips for labels on the chart. The current close-to-close percentage gain/loss for VIX and VixFix are displayed on the chart.

Displayed in the example image is a box incorporating VIX price data alongside an upper Bollinger Band and lower Bollinger Band. The data isn't cast to its own price scale but is helpful for quick interpretation of VIX fluctuations. You can select to plot VixFix data in the box in the user inputs table.



Displayed in the second example image is a semi-transparent blue box encompassing all price moves that occurred when VIX measured above $40 for at least ten consecutive sessions. The largest percentage close-to-close loss is displayed below the box.

Also illustrated is a red label that appears when VIX or VixFix closes above the upper Bollinger Band. The indicator will calculate and display the performance of the asset for the subsequent 10 sessions, to which the red label will disappear and all data stored as a tooltip in the blue labels stating "VIX Closed Above Upper Band" or "VixFix Closed Above Upper Band".

To reduce chart clutter, a label and line combination marking all VIX closes above the upper Bollinger Band was not included. Instead, bar color changes were added. When "VIX" is selected in the user inputs table the indicator will mark all sessions in which VIX closed above the upper band as blue, in addition to plotting VIX price data in the dynamic black box. When "VixFix" is selected, the indicator will mark all sessions where VixFix closed above the upper band as purple; the VixFix indicator will be plotted in the black box.

Be sure to hover over labels to access tooltip information; try the indicator with bar replay!

릴리즈 노트

Quick fix to a bar counting variable!

릴리즈 노트

Included "aesthetic" additions!

The Vix/VixFix bottom box changes color per session. This setting can be turned off!

릴리즈 노트



Added more "aesthetic" features. Working on additions conducive to successful trading now!

릴리즈 노트



Added two box plots that appear when VIX or VixFix closes above the upper band. The boxes are plotted at the average greatest 5-session loss and average greatest 10-session loss following a VIX/VixFix close above the upper band. This feature can be turned off!

릴리즈 노트

Upgraded VIX TV; more to come

릴리즈 노트

Added: label size option, option to send the VIX/VixFix/ data and S&P 500 put/call ratio data to a table positioned in the bottom right, option to change the TV size, aesthetic changes to the box plot when VIX > 40, and a fun option to change the TV color to black & white.

릴리즈 노트

Last color changes, and fixed a date issue

릴리즈 노트

Put some data on the chart instead of in a tooltip

릴리즈 노트

Code cleanup

릴리즈 노트

Fixed the referencing length error. Script is good to go on SPX now.



Thank you for the swift notify Tradingview community!

릴리즈 노트

Added name

릴리즈 노트

A user requested that I make the script compatible with second-based intervals.

Here it is!

릴리즈 노트

Works on DJI
코멘트
Trendoscope
Good work. Keep them coming :)
KioseffTrading
@HeWhoMustNotBeNamed, Lord V** (I won't say your name!)

Thank you for checking out the script, and the coins. Very much appreciated sir! Looking forward to what you cook up next for the Pine community!
RedKTrader
Love this! Keep up the good work .. and thanks for sharing.
KioseffTrading
@RedKTrader, Mr. RedK!!

Thank you so much - very appreciated! I feel honored!
PineCoders
KioseffTrading
@PineCoders, Thank you for very much PineCoders!!
francis.ladouceur21
Hey, could you explain how it work as if you were explaining it to a 5 year old? thanks
KioseffTrading
@Francis.ladouceur21, Hey Francis!

The indicator does not produce trading signals.

Instead, relevant data is provided for the asset you are charting against VIX or VixFix.

If VIX spikes, what does the asset on your chart do? Something? Nothing? This script tries to find a correlation or replicable sequence - if there is one lol.
genius_jinal
Hi the script looks very promising. Would it in possible to incorporate the Indian Market. Index: Nifty 50, Vix: India Vix, Nifty put call ratio? can we get this an option to choose? Thanks
KioseffTrading
@genius_jinal, Hello jinal!

I can make a script like this for the Nifty 50. However, It won't be for this script - it takes a bit long to load already lol.

I don't believe TradingView provides PC ratio data for the Nifty. If they do I'd be glad to include it!
더보기