Volatility Scan & Indicator For ThinkOrSwim

drasp

Member
Volatility Ratio Indicator & Scan
Here's a good scan I made:
http://tos.mx/IuRFsgv
hlLOogo.png

To use the above scan, first load this script into your library. Name it: Volatility Ratio
http://tos.mx/nvDXYsK
seaB2Xh.png

Ruby:
declare lower;

input length = 14;
input signal = .6;

def truehigh = Max(high, close[1]);
def truelow = Min(low, close[1]);
def TTR = truehigh - truelow;
def ATR = MovingAverage(averagetype.WILDERS, TTR, length);

plot VR = TTR / ATR;
VR.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
VR.AssignValueColor(if VR >= signal then Color.GREEN else Color.LIGHT_RED);

plot zeroline = 0;
zeroline.SetDefaultColor(Color.GRAY);
plot sigline = signal;
sigline.SetDefaultColor(Color.LIME);
plot widerangeline = 2;
widerangeline.SetDefaultColor(Color.CYAN);
 
@drasp 3 questions. In your scan is it possible to add a shares amount to control the supply of shares being traded? Does the scan work better if there is no max close price or is it possible to limit it to the close price desired? Will this scan work premarket ?
 
@drasp 3 questions. In your scan is it possible to add a shares amount to control the supply of shares being traded? Does the scan work better if there is no max close price or is it possible to limit it to the close price desired? Will this scan work premarket ?
  1. Yes, you can add shares. Click on Add Stock, click on Shares
  2. The best way to determine if "no max close price" will make to work better, is to add it and see.
  3. The best way to determine how well if it will work premarket, is to try it and see.
Recommend you test out your questions on the scanner. Nothing beats personal experience ;) The only way you will know what works best for you is to play with the settings and see how the scan results line up w/ your strategy and with your other indicators. To determine if this scan brings value, analyze it across history and with multiple instruments.
 
Volatility Ratio Indicator & Scan
Here's a good scan I made:
http://tos.mx/IuRFsgv
hlLOogo.png

To use the above scan, first load this script into your library. Name it: Volatility Ratio
http://tos.mx/nvDXYsK
seaB2Xh.png

Ruby:
declare lower;

input length = 14;
input signal = .6;

def truehigh = Max(high, close[1]);
def truelow = Min(low, close[1]);
def TTR = truehigh - truelow;
def ATR = MovingAverage(averagetype.WILDERS, TTR, length);

plot VR = TTR / ATR;
VR.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
VR.AssignValueColor(if VR >= signal then Color.GREEN else Color.LIGHT_RED);

plot zeroline = 0;
zeroline.SetDefaultColor(Color.GRAY);
plot sigline = signal;
sigline.SetDefaultColor(Color.LIME);
plot widerangeline = 2;
widerangeline.SetDefaultColor(Color.CYAN);
Thank you for this. I will be using it!
Question though-
After you open the first file (vol ratio)
Do you have to open it anywhere?
I couldn’t find it but I opened your 2nd file ( vol ratio and scan) and a bunch of results came up. I guess my question is, is the vol ratio file running in the background or do I manually have to load the scan somewhere as I wasn’t sure what you meant by library.
Thanks and I apologize if I asked an easy question as I did try to search for library in the search bar.
 
Thank you for this. I will be using it!
Question though-
After you open the first file (vol ratio)
Do you have to open it anywhere?
I couldn’t find it but I opened your 2nd file ( vol ratio and scan) and a bunch of results came up. I guess my question is, is the vol ratio file running in the background or do I manually have to load the scan somewhere as I wasn’t sure what you meant by library.
Thanks and I apologize if I asked an easy question as I did try to search for library in the search bar.
No the scan hacker does not require that a study be open.
 
@drasp 3 questions. In your scan is it possible to add a shares amount to control the supply of shares being traded? Does the scan work better if there is no max close price or is it possible to limit it to the close price desired? Will this scan work premarket ?
@MerryDay answered them all beautifully. Yes. this scan should work for premarket as well, I don't see why not. Set the aggregation to daily, and you will see. 1. yes 2. yes 3. yes
the filters that I use are stuff I've learned overtime that helps me find big ranges I can trade in. When a range is that big it trades freely, so you gotta be disciplined. It needs to be liquid enough, have enough interest, and activity.

When it comes to the scan you gotta load the indicator first. Save it as an indicator.
Then you load up the scan that @MerryDay made.

The indicator itself is amazing at finding which futures contracts are moving that day (the column). With stocks I haven't toyed with it much. The main strategy I would use is the gap and go method, if you're scanning premarket.
 
Volatility Ratio Indicator & Scan
Here's a good scan I made:
http://tos.mx/IuRFsgv
hlLOogo.png

To use the above scan, first load this script into your library. Name it: Volatility Ratio
http://tos.mx/nvDXYsK
seaB2Xh.png

Ruby:
declare lower;

input length = 14;
input signal = .6;

def truehigh = Max(high, close[1]);
def truelow = Min(low, close[1]);
def TTR = truehigh - truelow;
def ATR = MovingAverage(averagetype.WILDERS, TTR, length);

plot VR = TTR / ATR;
VR.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
VR.AssignValueColor(if VR >= signal then Color.GREEN else Color.LIGHT_RED);

plot zeroline = 0;
zeroline.SetDefaultColor(Color.GRAY);
plot sigline = signal;
sigline.SetDefaultColor(Color.LIME);
plot widerangeline = 2;
widerangeline.SetDefaultColor(Color.CYAN);
Hi, is there a way to show if the volume is majority buy vs selling in the indicator?
 

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