# Scan for stocks with high ATR?

##### Member
Hi. I wonder if anyone has a scanner that identifies wide range ATR? The breakout indicator is very good for when I have selected a specific ticker. But I am looking to find stocks in wide range ATR in pre market. Thank you,

#### Brettser16

##### New member
I was wondering if theres a scan that searches for stocks that have a high atr? Example shop has an atr of 18\$ on the daily chart is there a way to search for one that's say atr 8 and higher? I have the script of it would help

#### MBF

##### Active member
2019 Donor
I was wondering if theres a scan that searches for stocks that have a high atr? Example shop has an atr of 18\$ on the daily chart is there a way to search for one that's say atr 8 and higher? I have the script of it would help
Hi Brett, here ya go. Also you can switch it to what you like. Tweak volume, ADX etc ...
https://tos.mx/OKmxgrM

#### tomsk

##### Well-known member
VIP
@Brettser16 Here is a scan for 2.5 times the ATR. Place the following code in the scanner.
I just scanned the S&P 500 using a daily aggregation and obtained 6 hits

def factor = 2.5;
plot scan = TrueRange(high[1], close[1], low[1]) >= Average(TrueRange(high[1], close[1], low[1]), 10) * factor;

Last edited:

Thank you

#### wilmanv

##### Member
VIP
Any script for ATR scan between values, sample: ATR between 3-10 daily. Thanks

#### wilmanv

##### Member
VIP
@Brettser16 Here is a scan for 2.5 times the ATR. Place the following code in the scanner.
I just scanned the S&P 500 using a daily aggregation and obtained 6 hits

def factor = 2.5;
plot scan = TrueRange(high[1], close[1], low[1]) >= Average(TrueRange(high[1], close[1], low[1]), 10) * factor;
Thanks

#### Jayen

##### New member
how to write scan using ATR 90D (\$)

##### Well-known member
VIP
how to write scan using ATR 90D (\$)
Are you looking for a scan that finds equities with an ATR of <> \$90 or a 90 Day ATR...???

#### Jayen

##### New member
Are you looking for a scan that finds equities with an ATR of <> \$90 or a 90 Day ATR...???
yes

#### wilmanv

##### Member
VIP
Any Idea how do a scan on TOS, for know what stocks have an ATR between a range value?

Thanks People

Staff member
Staff
VIP
Give an example.

#### wilmanv

##### Member
VIP
Thanks, MR Ben
Sample: What stocks the ATR is between 5.00 and 100

#### wilmanv

##### Member
VIP
Give an example.
Today I did manually in TOS: ATR :CMG 39.90, MSFT: 5.70, NFLX: 18.80 and others

#### BenTen

Staff member
Staff
VIP
@wilmanv You can set it up using the scanner's condition. Something like this:

#### FreefallJM03

##### Member
VIP
@BenTen That should work. Using this in conjunction with the SuperTrend scan. I like stocks that trade with at least a 50 cent ATR. I also use the trend reversal indicator. I know it repaints, but I may have found a visual fix for it that works for me. I've managed 15% to 22% returns on the last several trades I've done over two months. Problem I've had with scanning for the most part is filtering out all the stocks with low ATRs.

#### westsail5000

##### New member
ok at first i thought that the AtrHighSMA study was basicly just an average true range study, but that does not seem to be what it is. like the title says its funky as hell. Only works on daiily timeframes, ect, ect, ect. Such a simple basic scan suprising its not built in. So if anyone has a script for a basic Atr scan that i can use on multiple timeframes i would be forever greatful.
edit
ok this is my first time playing with the atrhighsmabreakouts filter and of course the market is closed. Although the scan seems to work fine on the daily chart. Maybe this will get me by ok. Whats the volume limit for? is that to set the max or minimum volume.. Not sure why they put that there dont people usually set their own volume limits. dont see that volume settings on too many of the other indicators.

Last edited:

#### BenTen

Staff member
Staff
VIP
@westsail5000 ThinkorSwim scanner doesn't support multiple timeframes scan.

#### Slippage

##### Well-known member
Running code against pre-market and comparing to averages that include pre-market data is not simple/reliable in TOS. The reason is there is no data for periods when there was no action. It's not that the values are Double.NaN. Those periods actually don't exist. Look at your chart with Ext Hours on for a stock that didn't do anything in ext hours. There's very few candles. I originally assumed the chart was hiding those periods to compress the space with no data. That doesn't seem to be the case. Watchlist columns also get no data for those periods. I'm guessing the same is true for scans. If that's the case then using a lookback index or any computation with a length of candles to look back will get different timestamped candles on different stocks.

Also, the code given as the original answer for this thread has a bug. TrueRange should be calculated using the high, low and previous close. That example uses the high, low and close from the same period. The reason to use the previous close is to account for gaps.

## The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
• Exclusive indicators
• Proven strategies & setups
• Private Discord community
• Exclusive members-only content
• 1 full year of unlimited support

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?