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/
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?