VIX Monitor
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Dominator_Trades

//@version=5
indicator('VIX Monitor')
vixOpen = request.security('TVC:VIX', timeframe.period, open)
vixHigh = request.security('TVC:VIX', timeframe.period, high)
vixLow = request.security('TVC:VIX', timeframe.period, low)
vixClose = request.security('TVC:VIX', timeframe.period, close)


plotcandle(vixOpen, vixHigh, vixLow, vixClose, title='Vix', color=vixClose >= vixOpen ? color.green : color.red)