OPEN-SOURCE SCRIPT
Cập nhật VIX High/Low Zones Pro

This Pine Script indicator, "VIX High/Low Zones Pro," plots the VIX (or VXN) directly on a separate pane beneath your chart, giving you a real-time read on market volatility conditions. The VIX line is color-coded dynamically — shifting from lime green at the calmest levels below 16, through orange in the 18–25 range, and into red and dark maroon as fear intensifies above 25 and 32 respectively. A set of key horizontal levels at 16, 18, 20, 22, 25, and 28 are drawn as dashed or dotted reference lines, and an optional moving average (default 50-period SMA) is overlaid on the VIX to help identify the broader trend in volatility. The VIX data can also be smoothed using a short-period SMA, EMA, or WMA to reduce noise, and a small label in the upper right displays the current VIX value along with a momentum arrow showing whether volatility is rising or falling.
The most actionable feature for trade filtering is the background shading, which turns red when VIX is above its moving average and green when it's below. This gives you a simple, visual bias signal — a red background suggests volatility is expanding and the market may be in a risk-off or trending-down environment, while a green background indicates volatility is contracting or subdued, favoring calmer, range-bound conditions. For MNQ traders, this crossover relationship between VIX and its MA can serve as a quick regime filter to adjust strategy selection or position sizing without having to manually interpret the raw VIX number on every bar.
The most actionable feature for trade filtering is the background shading, which turns red when VIX is above its moving average and green when it's below. This gives you a simple, visual bias signal — a red background suggests volatility is expanding and the market may be in a risk-off or trending-down environment, while a green background indicates volatility is contracting or subdued, favoring calmer, range-bound conditions. For MNQ traders, this crossover relationship between VIX and its MA can serve as a quick regime filter to adjust strategy selection or position sizing without having to manually interpret the raw VIX number on every bar.
Phát hành các Ghi chú
Changed labelingMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.