Skip to main content

How to Add IV Rank Chart on ThinkorSwim (Using ThinkScript)









As I was watching an Options Video on Tastytrade's website, I discovered that IV Percentile on ThinkorSwim is really the same as IV Rank on tastytrade. What is IV Rank and IV Percentile? You can check out the video here from tastytrade:


I use IV Rank to determine when to sell and when to sell Options. For instance:

IV Rank < 50% 
Action To Take : Buy Option
Why? : Option Premium Cheaper, so we Buy Low and Sell High


IV Rank > 50%
Action To Take : Sell Option
Why? : Option Premium Expensive, so we Sell High and Buy Back Low


Since on ThinkOrSwim, the IVPercentile is the same as IVRank you can find the IV Percentile in the Trade tab under Today's Options Statistics:




This is just a general rule of thumb but if the IV Rank falls within the above range, the probability of success to make money is higher. I use this determine when to sell and when to buy options. Depending on how confident you are with the stock or underlying asset you are trading, you can adjust this rule a bit.  For instance I can still still Sell Option when it is above 40% as long I am comfortable with the premium amount I receive.

I have here a guide on how to setup an IV Rank chart on ThinkorSwim using ThinkScript. With this it will be easier for me to determine the IV Rank by looking at the chart and see the past history of the IV Rank  as well. 



1) Go to ‘Charts’ tab.




2) Click on the Studies and Strategies icon  





3) Click Create



4) This will open up a New Script. Delete the content and make it blank.








5) Copy all these lines into the New Study Script:

 

declare lower;
declare hide_on_intraday;

#IVPercentile
def vol = imp_volatility();
input DisplayIVPercentile = yes;
input DisplayImpVolatility= yes;
input DisplayDaily1StandardDev = yes;
input DisplayWeekly1StandardDev = yes;
input DisplayMonthly1StandardDev = yes;

input TimePeriod = 252;

def data = if !isNaN(vol) then vol else vol[-1];
def hi = highest(data, TimePeriod);
def lo = lowest(data, TimePeriod);
plot Percentile = (data – lo) / (hi – lo) * 100;
def lowend = Percentile < 25;
def highend = Percentile > 50;

#Labels
addlabel(DisplayIVPercentile , concat(“IV Rank: “,aspercent(Percentile /100)), if lowend then color.red else if highend then color.green else color.yellow);

addlabel(DisplayImpVolatility, concat(“ImpVolatility: “,aspercent(vol)), if lowend then color.red else if highend then color.green else color.yellow);

def ImpPts = (vol / Sqrt(252)) * close;
AddLabel(DisplayDaily1StandardDev , Concat(“Daily 1 SD +/- $”, Astext( ImpPts, NumberFormat.TWO_DECIMAL_PLACES)), if lowend then color.red else if highend then color.green else color.yellow); ;

def ImpPts2 = (vol / Sqrt(52)) * close;
AddLabel(DisplayWeekly1StandardDev, Concat(“Weekly 1 SD +/- $”, Astext( ImpPts2, NumberFormat.TWO_DECIMAL_PLACES)), if lowend then color.red else if highend then color.green else color.yellow); ;

def ImpPts3 = (vol / Sqrt(12)) * close;
AddLabel(DisplayMonthly1StandardDev, Concat(“Monthly 1 SD +/- $”, Astext( ImpPts3, NumberFormat.TWO_DECIMAL_PLACES)), if lowend then color.red else if highend then color.green else color.yellow); ;

plot LowVol = 25;
plot HighVol = 50;

LowVol.SetDefaultColor(GetColor(5));
HighVol.SetDefaultColor(GetColor(6));

 

 

6) Name the Chart. I named mine "IVRankChart"




7) Make sure to highlight the Script you have just created and click "Add Selected". You should see it added (mine appeared under Lower). Then Click OK.


 7) The IV Rank Chart now appears. Remember to save your chart as well (Under Style-->Save Style).





Comments

Popular posts from this blog

A Study in Technical Analysis : Candlestick Part 1 - One White Soldier

Decided to start a Technical Analysis series to analyze a few candlestick patterns and other tools to help me improve my stock and options trading.  ONE WHITE SOLDIER One White Soldier candlestick pattern is a Bullish Reversal Pattern used to predict the reversal of the current downtrend. The pattern consists of two consecutive long-bodied candlesticks - The first being a Bearish Candlestick followed by a Bullish Candlestick. This candlestick pattern rarely appears and if it does appear it's likely a strong indication of a reversal in trend (supported by other indicators as well). The One White Soldier should have the following  characteristics.  Bearish Candle followed by a Bullish Candle.  If it is during a long downtrend, The Bearish Candle must be a new low in the downtrend(Counter Trend Trade).   1.   The Bullish Candle must open Above the Close of the Bearish Candle Open2 Higher than Close1   ...

Sell Put Spread Strategy on SPY To Generate Monthly Income

  I was introduced into the world of Options Trading when I joined a Value Investing Course by a stock investing guru named  Sean Seah . One was the strategies I learned from this course is called VIOS (Value Investing Option Strategy). This strategy aims to consistently make money by selling naked put options to collect premiums on fundamentally good stocks with minimal risk (worst case scenario you are forced to buy that stock if your option is exercised). Anyway I won't be talking too much about the Fundamentals of Options as you can find many free videos of these on YouTube and paid courses on Udemy. I have been selling mostly naked put options to collect premium for 4 years using the ThinkOrSwim platform and I was collecting good premiums making some small profit. One strategy I used was to keep rolling my option if it went In-The-Money (ITM) on expiration day . However I discovered that  there is a huge risk involved with this Naked Selling Option Strategy even when...

The TOP 3 DOs and DONTs To Be a Successful Investor

Many times we ask ourselves "Why do some people make money easily while I have a difficult time doing so?". I already have a few friends who are making tons of money after huge investment in crypto and I have another friend who has made tons of money in options trading. I am still struggling and I have been asking myself why. What am I lacking compared to them? I believe it is the amount of effort and time that my friends have placed to master the art of trading and investing -that make them successful. They will only focus on one thing and continue to sharpen that skills and knowledge relevant to that instead of jumping from one to another. For my case I have dabbled in the futures market, day trading, options, some crypto....all with mild or no success.  It is time for a change.  I have to put in more effort to be a more of a successful investor. knowledge without action is meaningless. We must Do the right things and DONT Do some things that may hinder our progress to be s...