1. Home
  2. ThinkorSwim Indicators
  3. JPMorgan’s VIX Buy Signal Indicator for ThinkorSwim

JPMorgan’s VIX Buy Signal Indicator for ThinkorSwim

Here’s a bullish indicator for ThinkorSwim, inspired by a lead strategist at JPMorgan Chase & Co.

The VIX (Cboe Volatility Index) is a widely-followed measure of stock market volatility.

JPMorgan strategists, led by Mislav Matejka, have developed an indicator based on the VIX that could be used to trade the markets more effectively. 1

The concept is simple:

A buy signal is generated when the VIX increases by more than 50% of its 1-month moving average.

That said, we can create an indicator for ThinkorSwim based on that condition.

VIX Buy Signal Indicator for ThinkorSwim

####
# Indicator Name: JPMorgan’s VIX Buy Signal
# Description: A bullish indicator from JPMorgan strategists
# Version: 1.0.0
# Developer: Melvin C.
# URL: https://thinkscript101.com/vix-buy-signal-indicator-for-thinkorswim/
####

declare lower;
def vix_data = close("VIX");
plot vix_average = (vix_data / average(vix_data, 30));
plot signal_line = 1.5;
vix_average.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);

The VIX Buy Signal indicator has been triggered more than 21 times during the past 30 years.

Every single time, the S&P 500 Index increased by an average of 9% over the ensuing six months.

The indicator has demonstrated a 100% accuracy rate outside of recessions.

Usage

  1. Set your ThinkorSwim chart to the Daily timeframe.
  2. Use it on the S&P 500 Index (example: SPY or VOO).
  3. Trade type: Bullish, upside potentials.

Under the Hood

As part of the learning process, I will post some important functions and code that was used during the creation of the indicator.

If you’re curious about how the indicator is created, see the part below.

close("VIX"): Use this method if you want to pull price data from another ticker.

(vix_data / average(vix_data, 30)): The current price of the VIX is divided by the average price of the VIX from the last 30 days.

SetPaintingStrategy: Controls how a line is painted. From the example above, we used HISTOGRAM style type.

Happy trading!

Reference:

1. https://www.bloomberg.com/news/articles/2022-02-08/jpmorgan-strategists-see-sure-fire-sign-it-s-time-to-buy-stocks

Unlock the Power of ThinkorSwim

Get the latest news and updates on TD Ameritrade, ThinkorSwim indicators, thinkScript tutorials, and trading strategies delivered straight to your inbox every week.

We don’t spam! Unsubscribe at anytime.

2 thoughts on “JPMorgan’s VIX Buy Signal Indicator for ThinkorSwim

Leave a Reply

Your email address will not be published. Required fields are marked *