OPEN-SOURCE SCRIPT

VIX Opening Gap

By edge_rider
Overview

This simple script generates alerts based on the difference between the previous trading day's VIX close and the current trading day's opening bar. It is designed for use on the TVC version of the VIX chart, with 1-minute bars.

Features

The script flags one of four conditions based on the difference between the previous day's close and the current day's open: (1) open up; (2) open down; (3) gap up; and (4) gap down. The thresholds for gaps up and down are expressed as percentages and can be changed in the input settings.

The script can assess the gap at the first bar of the premarket session or at the first bar printed after market open. Change this by toggling the "Use Premarket Hours" feature in the input settings.
optionsVolatility

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?

Disclaimer