IV Percent Change Watchlist for ThinkorSwim

Brain Monkey

New member
On the watchlist if you click customize you can add columns like market cap price what ever. I want a custom column that shows the percent change in implied volatility from the day before. This way when I run a scan I can rank the results by the biggest change in IV from the day before. I tried cobbling a script from other studies and I tried googling for answers. But this one has me. And I'm a little slow. Thank you!
 

tomsk

Well-known member
VIP
@Brain Monkey Here is an IV Percent Change Watchlist that a friend gave me years ago. I just tested it on my watchlist, seems to work fine. Remember to select daily aggregation when you set up the watchlist

Code:
# IV Percent Change Watchlist
# Paris
# 12.07.2015

# Displays IV percentage change over the previous period in a Watchlist column
# Make sure you set the Aggregation to Daily. If you are not getting a value or it displays NaN, then there is no data.

def IV = Imp_Volatility();
plot R = IV / IV[1];

# End Study
 
Last edited:

Brain Monkey

New member
Ok tweeked the math a little. Now it comes out as a percentage.
Code:
def IV = imp_volatility();
plot R = 100*((IV / IV[1]) - 1);
Now is there a way to get a percentile mark next to each number in the same way that % change for price has a % next to each number and is there a way to make the positive numbers green and the negative numbers red?
 

tomsk

Well-known member
VIP
@Brain Monkey The only way you'll be able to force a "%" symbol is to use AddLabel, see if this is close to what you're asking for. I have also tweaked the color scheme per your request

Code:
def IV = Imp_Volatility();
def R = ((IV / IV[1]) - 1);
AddLabel(1, AsPercent(R), if R > R[1] then Color.Green else Color.Red);
 

Brain Monkey

New member
Ok so now I have the column. When I click on the column so that the results of the scan will show the results with the greatest change in IV. The script has this weird logic where it places the results in almost alphabetical order. So if I click on it to show the stocks that have gone down the most compared to the last day, it thinks the order should be: -0.007; -1.654; -11.52; -2.54; 22.71; -3.5. It's like it's using alphabet logic not placing the numbers on a number line and showing me them in order. God I hope this makes sense because I am so lost right now.
 

tomsk

Well-known member
VIP
Yep, that's the entire issue if you use AddLabel, when you click on it it would not sort numerically. In order to sort numerically you'll need to use a plot statement like you did before. However in so doing you would not be able to retain the trailing "%" symbol.
 

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.
Top