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

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

How to Set OCO (One-Cancels-the-Other Order) in ThinkOrSwim

I posted an article about collecting premiums using the  Sell Put Spread Strategy on SPY . Click here  to learn more about that strategy. The Strategy will require me to create 2 separate orders after the entering the trade. The first Order is a Stop Limit Order to take profit  (75%) and another order to Cut Loss (-150%). Profit Target : 75% Stop Loss : -150% One way to place the 2 orders above is to create an Advanced Order called OCO (One-Cancels-the-Other Order). So if any one of the 2 Orders gets triggered, it will Cancel the other Order. Here is a guide how to create an OCO order in ThinkOrSwim for the above Put Spread Strategy : After your order is filled, go ahead and create a normal Closing Order for your vertical spread You will see a Close Limit Order such as this. Click on Advanced Order Choose OCO With OCO picked, Right click on the first Stop Limit order → Create duplicate order .  You will see the second Order here (a duplicate of the first order) ...

A Study in Technical Analysis : Candlestick Part 2 - One Black Crow

  Here is the link to my previous article on A Study in Technical Analysis : Candlestick Part 1 - One White Soldier  :   Link ONE BLACK CROW One Black Crow candlestick pattern is a Bearish Reversal Pattern used to predict the reversal of the current uptrend. The pattern consists of two consecutive long-bodied candlesticks - The first being a Bullish Candlestick followed by a Bearish Candlestick. This candlestick pattern rarely appears and if it does appear it can be quite strong. The One Black Crow should have the following  characteristics. Bullish Candle followed by a Bearish Candle.  If it is during a long uptrend, The Bullish Candle must be a new high in the downtrend(Counter Trend Trade).   1.   The Bearish Candle must open Below the Close of the Bullish Candle Open2 Lower than Close1   2. Must make a lower high. High2 Lower than High1   3. The Bearish Candle must close below the low of the Bullish Candle. Close2 Lowe...