VIX product comparison Please help!

Smith1158

New member
Hello, I was trying to find a way to compare different vix products and also plot a crossover. I wanted it to plot in a lower subgraph, but I'm not tied to that. Right now I just have a vix9d chart and put vix 3m and vix as a comparison overlay. I'm not sure how to plot a crossover with this method and also the right axis becomes a percentage which makes me question the accuracy. Can someone help me with a basic script that I can tweak if needed? Idk how to plot the different products on a subgraph. What I am looking for is vix9d, vix and vix3m in a subgraph and a cross up or down indicator when vix9d crosses vix. Thank you all for what you do! This forum is amazing and I'm probably going to go pro soon to access that btd indicator. Thanks again!
 
Here are the basic building blocks you'll need to tweak it how ever you want.

Code:
plot VIX = Close("VIX");
plot VIX9 = Close("VIX9D");
plot VIX3 = Close("VIX3M");
plot Up = if Crosses(VIX9, VIX,CrossingDirection.ABOVE) then VIX9 else Double.NaN;
plot Down = if Crosses(VIX9, VIX,CrossingDirection.BELOW) then VIX9 else Double.NaN;
Up.setPaintingStrategy(paintingStrategy.ARROW_UP);
Down.setPaintingStrategy(paintingStrategy.ARROW_DOWN);
 

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
522 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