PineCodersTASC

TASC 2022.08 Trading The Fear Index

█ OVERVIEW

TASC's August 2022 edition of Traders' Tips includes an article by Markos Katsanos titled "Trading The Fear Index". This script implements a trading strategy called the “daily long/short trading system for ​volatility ETFs” presented in this article.

█ CONCEPTS

This long-term strategy aims to capitalize on stock market volatility by using exchange-traded funds (ETFs or ETNs) linked to the VIX index.

The strategy rules (see below) are based on a combination of the movement of the ​Cboe VIX index, the readings of the stochastic oscillator applied to the SPY ​ETF relative to the ​​VIX, and a custom indicator presented in the article and called the correlation trend. Thus, they are not based on the price movement of the traded ​ETF itself, but rather on the movement of the ​VIX and of the SPX index. This allows the strategy to capture most of the spikes in ​volatility while profiting from the long-term time decay of the traded ETFs.

█ STRATEGY RULES

Long rules
  • Rising ​volatility: The ​VIX should rise by more than 50% in the last 6 days.
  • Trend: The correlation trend of the ​VIX should be 0.8 or higher and also higher than yesterday's value.
  • ​VIX-​SPY relative position: The 25-day and 10-day ​VIX ​stochastics should be above the 25-day and 10-day ​SPY ​stochastics respectively. In addition, the 10-day ​stochastic of the ​VIX should be above its yesterday's value.
Long positions are closed if the 10-day ​stochastic of the ​SPY rises above the 10-day ​​stochastic of the ​VIX or falls below the yesterday's value.

Short rules
  • Declining ​volatility: The ​VIX should drop over 20% in the last 6 days and should be down during the last 3 days.
  • ​VIX threshold: The ​VIX should spend less than 35% of time below 15.
  • ​VIX-​SPY relative position: The 10-day ​VIX ​stochastic should be below the 10-day ​SPY ​stochastic. In addition, the 10-day ​SPY ​stochastic should be higher than the yesterday's value.
Long positions are closed if the first two Long rules are triggered (Rising ​volatility and Trend).

The script allows you to display the readings of the indicators used in the strategy rules in the form of oscillator time series (as in the preview chart) and/or in the form of a table.

Tools and ideas for all Pine coders: www.tradingview.com/u/PineCoders/
Pine news broadcasts: t.me/PineCodersSquawkBox or twitter.com/PineCoders
TASC: traders.com/
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?