NexusFi: Find Your Edge


Home Menu

 





IV RankLevels (Make them Dynamic?)


Discussion in ThinkOrSwim

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




 
Search this Thread

IV RankLevels (Make them Dynamic?)

  #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:	293
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?
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Quant vue
Trading Reviews and Vendors
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts