JP Morgan VIX Buy Signal For ThinkOrSwim

AndrewPnF

New member
Author states: 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.

The concept is simple:
A buy signal is generated when the VIX increases by more than 50% of its 1-month moving average.
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.
XZtSFlK.png


Thought I'd share. On a different thinkscript resource they discussed this VIX strategy that was "100%" accurate at the time. I don't know if it's still true but....

https://thinkscript101.com/vix-buy-signal-indicator-for-thinkorswim/

It did look interesting though. So I added it to my custom indicators and then modified it a bit to show up on my charts. I copied the bubble structure from the Highest Volume of the Year indicator by XeoNoX via usethinkscript.com and added the fabulous Bubble Mover code. It does look like a very good way to show when the VIX hits inflection.

Code:
####
# 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);

# END original VIX_JPMorganBuySignal_Lower code

# below is Stuff I added to to show bubbles and labels (if desired) and to allow user to ONLY show the histogram lines if the condition is met by making ONLY vix_average2 show and marking the rest to no show in the settings.  I'm not an expert thinkscript coder so most of this is cobbled together from other snippets of code I copied and pasted and then manipulated.

def vix_average1 = (if vix_average > 1.5 then vix_average else 0);
plot vix_average2 = (vix_average1 );
addlabel(yes,if vix_average >= signal_line then "JPMorgan VixBuy" else "",color.black);
vix_average2.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);

input labels = yes;
def VixBubble = vix_average >= signal_line;
def yearhighvol = HighestAll(if GetLastYear() == GetYear() and !IsNaN(close) and !IsNaN(close[-1]) then VixBubble else 0);

def himonth = if VixBubble==1 then getmonth() else himonth[1];
def hiday =   if VixBubble==1 then getDayOfMonth(getYYYYMMDD()) else hiday[1];
def hiyear  = if VixBubble==1 then getyear() else hiyear[1];

AddLabel (labels, "VIX_JPM BuySig : " + himonth + "/" + hiday + "/" + hiyear, Color.black);

def BubbleHighest = VixBubble==yearhighvol;
input bubblemoversideways = -1;
def b  = bubblemoversideways;
def b1 = b + 1;
input bubblemoverupdown   = 0.50;

AddChartBubble(BubbleHighest ,VixBubble * bubblemoverupdown, "JPM " +himonth+" " + hiday,  Color.YELLOW, yes);
 
Last edited by a moderator:
This is similar to a strategy a friend taught me about ten years ago.

His stategy is to apply a 10 day simple moving average to the VIX. An alert is sent when the VIX exceeds the 10 SMA by at least 8 points. Once you get the alert, you watch the VIX. The indices are considered a buy once the VIX reverses and begins moving down. He preferred to wait for the VIX to drop below the 10 SMA.

There was a website that created a very interesting buy signal that worked similarly. I tried but could never duplicate it. If I can dig up the link, I may post it in the questions section.
 
I like your volume study, and have seen similar in other places. How do we get multiple volume studies on one chart? I only have the basic volume profile. Thank you!

The default setting "time per profile" is set to Chart by default but can be set to other timeframes as depicted in the image below... My example is from the VolumeProfile indicator that comes in TOS... You also need to change the "on expansion" setting to No...

1734635015049.png



1734634813460.png
 
Last edited:
@Dharmakaya

In answer to your question, you overlay the studies in the same section and insure you are able to see them each by manipulating their position within the section.
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
336 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top