Chart label: ADX, VIX, UVXY, TICK For ThinkOrSwim


New member
Sorry I don't remember who the original author was of the volatility using ATR script but the indicator is in here somewhere. I basically modified their script to show the ADX, VIX, UVXY, TICK to monitor current market conditions. It's sloppy but it works. Still learning. for a preview.

# Modified July 20, 2021
# Volatility uses ATR

input length = 14;

input atrlength = 14;

input avglength = 500;

input plotlower = {default "yes", "no"};

def c = close(Symbol = "vix");
def s = close(Symbol = "spy");
def u = close(Symbol = "uvxy");
def t = close(Symbol = "$tick");

def vol = reference ATR(atrlength, averageType = AverageType.SIMPLE);

def avgvol = Average(vol, avglength);

def calm = vol < avgvol - (avgvol * .1);

def neutral = avgvol + (avgvol * .1) > vol > avgvol - (avgvol * .1);

def Volatile = vol > avgvol + (avgvol * .1);

AddLabel(yes, Concat("Market is Currently ", (if calm then "Calm" else if neutral then "Neutral" else if Volatile then "Volatile" else "Neutral")),  if calm then Color.GREEN else if neutral then Color.BLUE else if Volatile then Color.RED  else Color.GRAY);

# If the ADX is above 25 this indicates a strong trend, above 35 indicates a very strong trend

plot currentADX = ADX(length);


DefineGlobalColor("High", Color.GREEN); DefineGlobalColor("Chop", Color.RED); DefineGlobalColor("Low", Color.GRAY);

#input Label_Color_Choice =  {default "gray", "white"};

AddLabel (currentADX > 35, "Strong Trend",

AddLabel (yes, (Concat("ADX = ", Round(currentADX,1))),if currentADX > 25 then GlobalColor("High") else if currentADX < 20 then GlobalColor("Low") else GlobalColor("Chop"));

## vix Label
AddLabel(1, "VIX = " + c);
## UVXY Label
AddLabel(1, "UVXY = " + u);
## TICK and TIKI
AddLabel(1, "TICK = " + close(Symbol = "$TICK"));

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