NexusFi: Find Your Edge


Home Menu

 





IV RankLevels (Make them Dynamic?)


Discussion in ThinkOrSwim

Updated
    1. trending_up 2,996 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 
DonStar's Avatar
 DonStar 
Dallas, TX
 
Experience: Intermediate
Platform: ToS, TradeGuider, eSignal, AmiBroker
Broker: TD Ameritrade/eSignal
Trading: Stocks
Posts: 77 since Dec 2011
Thanks Given: 28
Thanks Received: 43

[IMG]
[/IMG]Got this indicator from Tastytrade.com. (Screenshot attached)

It computes and displays IV Rank (Percentile), Implied Volatility, and Daily, Weekly, and Monthly Stand Deviations. It plots Implied Volatility. I like the indicator, but the computations are only displayed for the current day (the day on the far right of the chart).

Is there a way to display the computations dynamically (change as you move the mouse from day to day).

Can we/should we plot IV Rank (Percentile) along with Implied Volatility?

Thanks,

Don
 
Code
    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.black);
     
    addlabel(DisplayImpVolatility, concat("ImpVolatility: ",aspercent(vol)), if lowend then color.red else if highend then

    color.green else color.black);
     
    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.black); ;
     
    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.black); ;
     
    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.black); ;
     
     
    plot LowVol = 25;
    plot HighVol = 50;
     
    LowVol.SetDefaultColor(GetColor(5));
    HighVol.SetDefaultColor(GetColor(6));


Attached Thumbnails
Click image for larger version

Name:	ToS PercentRank.jpg
Views:	386
Size:	95.8 KB
ID:	138281  
Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Strike Pause Holds, Oil Erases Monday Spike -- May CPI W …
Traders Hideout
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 
rmejia's Avatar
 rmejia 
Puerto Rico
 
Experience: Intermediate
Platform: thinkorswim
Broker: TD Ameritrade
Trading: Options
Posts: 379 since Oct 2010
Thanks Given: 3,614
Thanks Received: 441

Only way I can think of for showing the info with the cursor is plotting the SD lines.


Reply With Quote




Last Updated on February 23, 2014


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts