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.