Thinkorswim custom script for Stock/ETF / volatility percent percentile range - ThinkOrSwim | futures io social day trading
futures io futures trading


Thinkorswim custom script for Stock/ETF / volatility percent percentile range
Updated: Views / Replies:13,457 / 11
Created: by peroulias Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 1  
 
Thread Tools Search this Thread
 

Thinkorswim custom script for Stock/ETF / volatility percent percentile range

  #1 (permalink)
Elite Member
Los Angeles California USA
 
Futures Experience: Intermediate
Platform: thinkorswim
Favorite Futures: Stocks
 
Posts: 2 since Jan 2012
Thanks: 3 given, 0 received

Thinkorswim custom script for Stock/ETF / volatility percent percentile range

Is any existing Thinkorswim custom script for stock/ETF to generate the 52 week volatility percent percentile range? This script will be helpful to determine the degree of volatility for individual stocks and under underlines
Thanks

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Arvada, Colorado
 
Futures Experience: Advanced
Platform: Amibroker / Ninja Trader / TOS
Broker/Data: Mirus Zenfire
Favorite Futures: TF 6E NQ
 
Posts: 194 since May 2010
Thanks: 259 given, 187 received



peroulias View Post
Is any existing Thinkorswim custom script for stock/ETF to generate the 52 week volatility percent percentile range? This script will be helpful to determine the degree of volatility for individual stocks and under underlines
Thanks


I am not aware of any script for this, but long ago I used to use Larry McMillan's website to find
the percentile volatility for a stock. It is free and I believe it is updated at the end of every week.
The website has changed since I used it, but I actually found the link.

Free weekly implied volatility, historical volatility and volatility percentile data | Option Strategist

You can download (copy and paste) this data into an Excel spread sheet and sort according to your needs.
If you prefer not to download that data for thousands of stock and indexes, you can just search for a
specific stock by doing Control F and type the stock symbol.

If no one responds with a script, then perhaps this might help as far as accessing the data you
are looking for.

Reply With Quote
 
  #4 (permalink)
Elite Member
San Francisco
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 6 since Jun 2009
Thanks: 13 given, 7 received

Current IV percentile is provided under "Today's option statistics" on the trade page.

Reply With Quote
 
  #5 (permalink)
Elite Member
Sofia, Bulgaria
 
Futures Experience: Advanced
Platform: IB,TOS
Broker/Data: IB
Favorite Futures: Options,ES,6E,ZB,SPX,RUT,CL
 
Posts: 47 since Jul 2010
Thanks: 6 given, 42 received


peroulias View Post
Is any existing Thinkorswim custom script for stock/ETF to generate the 52 week volatility percent percentile range? This script will be helpful to determine the degree of volatility for individual stocks and under underlines
Thanks

I am not sure if this is what u looking for but worth nothing to try it


declare lower;

input period = 30;

input type = {default IV, HV, IVminusHV, ParkinsonHV, Range};

#ParkinsonHV
def hlReturn = Log(high / low);
def hlConstant = 1 / (4 * Log(2) * period);




def v;
switch (type)
{
case IV:
v = impVolatility();
case HV:
v = HistoricalVolatility(period);
case IVminusHV:
v = ImpVolatility() - HistoricalVolatility(period);
case ParkinsonHV:
v = Sqrt( Sum( hlConstant * Sqr(hlReturn), period) ) * Sqrt(252);
case Range:
v = high - low;
}

def rank = fold index = 1 to period with perRank = 0 do perRank + (GetValue(v, index, period) < v) ;

plot pvr = (rank / period) * 100) ;


plot Zero = 0;
plot Ten = 10;
plot TwentyFive = 25;
plot SeventyFive = 75;
plot Ninty = 90;
plot Hundred = 100;

EDIT: Because I do not know how, if anyone wants can upload the code in the downloads section. Of course if you think it is useful .


Last edited by alchemist74; February 19th, 2013 at 12:00 PM.
Reply With Quote
 
  #6 (permalink)
Elite Member
san diego CA/USA
 
Futures Experience: Beginner
Platform: SC, TOS
Favorite Futures: ES, CL
 
Posts: 35 since Aug 2013
Thanks: 24 given, 12 received


alchemist74 View Post
I am not sure if this is what u looking for but worth nothing to try it


declare lower;

input period = 30;

input type = {default IV, HV, IVminusHV, ParkinsonHV, Range};

#ParkinsonHV
def hlReturn = Log(high / low);
def hlConstant = 1 / (4 * Log(2) * period);




def v;
switch (type)
{
case IV:
v = impVolatility();
case HV:
v = HistoricalVolatility(period);
case IVminusHV:
v = ImpVolatility() - HistoricalVolatility(period);
case ParkinsonHV:
v = Sqrt( Sum( hlConstant * Sqr(hlReturn), period) ) * Sqrt(252);
case Range:
v = high - low;
}

def rank = fold index = 1 to period with perRank = 0 do perRank + (GetValue(v, index, period) < v) ;

plot pvr = (rank / period) * 100) ;


plot Zero = 0;
plot Ten = 10;
plot TwentyFive = 25;
plot SeventyFive = 75;
plot Ninty = 90;
plot Hundred = 100;

EDIT: Because I do not know how, if anyone wants can upload the code in the downloads section. Of course if you think it is useful .

hi I entered your code but it is giving me an error at line 31! if you get a chance can you follow up please?

Reply With Quote
 
  #7 (permalink)
1.Fibs 2.??? 3.Profit
Puerto Rico
 
Futures Experience: Intermediate
Platform: thinkorswim
Broker/Data: TD Ameritrade
Favorite Futures: ES
 
rmejia's Avatar
 
Posts: 384 since Oct 2010
Thanks: 3,597 given, 421 received


contrails View Post
hi I entered your code but it is giving me an error at line 31! if you get a chance can you follow up please?

It's just missing a parenthesis at the beginning:

plot pvr = ((rank / period) * 100) ;

or remove the one at the end:

plot pvr = (rank / period) * 100 ;

Reply With Quote
 
  #8 (permalink)
Elite Member
san diego CA/USA
 
Futures Experience: Beginner
Platform: SC, TOS
Favorite Futures: ES, CL
 
Posts: 35 since Aug 2013
Thanks: 24 given, 12 received

Not really sure what this study accomplishes in plain English though

Reply With Quote
 
  #9 (permalink)
1.Fibs 2.??? 3.Profit
Puerto Rico
 
Futures Experience: Intermediate
Platform: thinkorswim
Broker/Data: TD Ameritrade
Favorite Futures: ES
 
rmejia's Avatar
 
Posts: 384 since Oct 2010
Thanks: 3,597 given, 421 received


contrails View Post
Not really sure what this study accomplishes in plain English though

lol, yeah me neither.

Going back to the original poster "IV_Percentile" was added to the scan criteria a couple of months ago which is something nice to easily see if you sell options:

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #10 (permalink)
Elite Member
Sofia, Bulgaria
 
Futures Experience: Advanced
Platform: IB,TOS
Broker/Data: IB
Favorite Futures: Options,ES,6E,ZB,SPX,RUT,CL
 
Posts: 47 since Jul 2010
Thanks: 6 given, 42 received



contrails View Post
hi I entered your code but it is giving me an error at line 31! if you get a chance can you follow up please?

Hi,
sorry i delayed my answer but i trade very heavily last few months. I find better TOS code for IV rank, here it is:

def vol = imp_volatility;
#rec data = if !isNaN(vol) then vol else data[1];
def data = vol;
def hi = highest(data,252);
def lo = lowest(data,252);
def perct = round((data - lo)*100/ (hi - lo),0);
plot x = perct;
plot H = 90;
plot L = 20;

this will draw a line tool bellow your chart . If u want to see just a number at your left chart corner use this:

declare upper;
input period = AggregationPeriod.DAY ;

input length =252 ;

def ivGapHi = if isnan(imp_volatility(period=period)) then 99999999999 else imp_volatility(period=period);
def ivGapLo = if isnan(imp_volatility(period=period)) then -99999999999 else imp_volatility(period=period);
def periodHigh = highest( ivGapLo,length=length);
def periodLow = lowest( ivGapHi, length=length);
def ivRange = periodHigh - periodLow ;
def ivp = round( 100*(imp_volatility(period=period) - periodLow)/ivRange, 0);
AddLabel(1, Concat("IV%: ", ivp), color = Color.PLUM);

Reply With Quote
The following 3 users say Thank You to alchemist74 for this post:

Reply



futures io > > > > Thinkorswim custom script for Stock/ETF / volatility percent percentile range

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stock, ETF, Options Brokers Big Mike Reviews of Brokers and Data Feeds 15 February 28th, 2013 06:51 PM
Vant Tharp's Percent Volatility Position Sizing - FX equation - PLEASE ANYONE? fxhst329 Psychology and Money Management 5 November 16th, 2012 11:58 PM
thinkorswim now has Range Bars built-in shodson ThinkOrSwim 2 January 27th, 2012 08:27 AM
Needed Bid / Ask bar script for thinkorswim Rad4633 ThinkOrSwim 3 October 8th, 2011 03:05 PM
How to install Range Bar code in Thinkorswim rcs9234 ThinkOrSwim 5 July 7th, 2011 03:12 PM


All times are GMT -4. The time now is 11:21 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-14 in 0.16 seconds with 38 queries on phoenix via your IP 54.227.51.103