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

What are the Different Levels of FiRe ?

FiRe (Financial Independence / Retire Early)  is a movement where a person has to adopt to a certain lifestyle with the goal of gaining Financial Independence and Retiring Early. I only got to know of this movement a few years ago after watching a video on Graham Stephen's Youtube channel.  Just like Graham Stephen, I started adapting a frugal and savings lifestyle when I was young but there wasn't a name for this until  Fi/Re  was made famous. I got serious about Saving To Retire Early about 10 years ago after attending T Harv Eker's Millionaire Mindset seminar . I learned about the JAR system from the seminar and I have been practicing it without fail for the past 10 years. I am proud to say this has helped me tremendously to achieve my financial freedom goal. T Harv Eker has a book called " Secrets of the Millionaire Mind: Mastering the Inner Game of Wealth " which I highly recommend.  I wrote an article about the Money JAR System which you can read by c lic...

Trading Journey [ Part 2 ] - Consistent Set of Actions

The month of March2021 had been a rather rough month for me. I lost 100% in my Sell Put strategy for SPY due to the crazy volatility caused by the 10 year yield scare. I have since adjusted my Stop Loss to be triggered at 250% instead to avoid being stopped out from price volatility. I closed my PEPSI sell put option by manual cut loss 21 days before  expiration which ended up bring profitable if I didn't cut early...another reason to stick with the original game plan instead of tweaking my exit plan halfway after entering the trade. I just realized 100% losses from my bull put strategy on APPLE and JNJ.   The losses was a bit hard to take and do I decided to take more risks by not sticking with my game plan for my overall trading strategy and added more options trades which did not follow my rules and went beyond my trading size. Once such trade is I did a SELL Iron Condor on Facebook when it was trading at $260. I looked at the chart and saw it was in middle a strong Re...