- 2.2K All Categories
- 1.8K StockCharts
- 336 SharpCharts
- 97 Other Charting Tools
- 42 Saved Charts and ChartLists
- 1.1K Scanning
- 58 Data Issues
- 132 Other StockCharts Questions
- 162 Technical Analysis
- 121 Using Technical Analysis
- 1 InterMarket and International
- 16 Market and Breadth Indicators
- 24 Market Analysis
- 82 Trading
- 82 Trading Strategies
- 147 S.C.A.N the StockCharts Answer Network forum
- 52 Using this StockCharts Answer Network forum
- 95 s.c.a.n. archives
- 12 Off-Topic
- 8 The Cogitation & Rumination Emporium
- 4 Forum Test Area

New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

[Range > ATR(14)] and [Close > High - Range/4], but I get the same results with or without that second clause. Is it possible that every stock that has a range greater than its ATR closed in the top 25% of its range, or is something off here?

Also, will everything on one side of the '>' be grouped automatically? I tried [Close > (High - Range/4)] (adding parentheses) and it could not parse the phrase.

## Comments

Close in the Upper half of Range, would be [Close > Range/2 + Low] I believe

Use Rank by Range/2 + Low to see the value of the calculation.

So, if you want to group arithmetic operations (which is a very good idea - I know I can never remember the order of precedence), use brackets [ ].

Also, I think it's easier (more flexible, and maybe more legible) to use decimals for fractions instead of division, whenever that's possible.

So, you could do your scan like this:

[group is SP500]

and [range > ATR(14)]

and [close > low + [range * .75] ]

If you see from your results that a different fraction might narrow (or widen) the results in a good way, its easy to fine tune the decimal - maybe to .85, maybe to .65.

Also, when testing, it helps to test against a known number of stocks, as in an index like DOW30, sp100, sp500, sp400 sp600. If your scan returns the same number of results as there are stocks in the index, there's probably something wrong with the scan (or the scan conditions are not unique enough to be useful), which you can verify by looking at a limited number of symbols.

If you don't limit your "universe", and you get a result of 999 symbols, you don't know whether it was just a one way day (like Friday) or whether your scan is wrong, and its much harder to tell by reviewing the results.

p.s. - if you don't want to use an index, you can write your own universe conditions - .e.g. group is energy and market cap > 100 and SCTR > 50. Then run JUST that universe condition to see how many there are. Then add the rest of your conditions and compare the result total to the universe total.