ATR of Implied volatility as an indicator

jrmarkinv

New member
I am trying to do something related to:
https://usethinkscript.com/threads/...-volatility-from-1-day-ago.13907/#post-115723

I want to plot ATR of Implied volatility as an indicator. So for a chart of GLD, I need to be able to calculate ATR of GVZ. For SPY I would need ATR of VIX, etc. Since ATR requires high, low, close, I have tried assigning volhigh = high(imp_volatility()); But it gives an error. Is it possible to get high, low close of implied volatilities?
 
Last edited by a moderator:
Solution
Not sure this gives you what you want, but it shows one way it can be done (sort of)
Code:
declare lower;

def iv = impVolatility();

input iv_lookback = 100;

def C = iv;
def H = highest(iv, iv_lookback);
def L = lowest(iv, iv_lookback);


input length = 14;
input averageType = AverageType.WILDERS;

plot IV_ATR = MovingAverage(averageType, TrueRange(H, C, L), length) * 1000;
IV_ATR.SetDefaultColor(GetColor(8));

-mashume
Not sure this gives you what you want, but it shows one way it can be done (sort of)
Code:
declare lower;

def iv = impVolatility();

input iv_lookback = 100;

def C = iv;
def H = highest(iv, iv_lookback);
def L = lowest(iv, iv_lookback);


input length = 14;
input averageType = AverageType.WILDERS;

plot IV_ATR = MovingAverage(averageType, TrueRange(H, C, L), length) * 1000;
IV_ATR.SetDefaultColor(GetColor(8));

-mashume
 
Solution
Not sure this gives you what you want, but it shows one way it can be done (sort of)
Code:
declare lower;

def iv = impVolatility();

input iv_lookback = 100;

def C = iv;
def H = highest(iv, iv_lookback);
def L = lowest(iv, iv_lookback);


input length = 14;
input averageType = AverageType.WILDERS;

plot IV_ATR = MovingAverage(averageType, TrueRange(H, C, L), length) * 1000;
IV_ATR.SetDefaultColor(GetColor(8));

-mashume
Thanks Mashume. I think i can use that method as an approximation in 1 way. I can use it with lookback of 63 to get a 13wk/3month IV where daily volatility values provide highs and lows. Would thinkscript allow me to use 1 mnute or 5 mintue AggregationPeriod to actually get much closer approximation of daily high and low? That would be a better way.
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
266 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top