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.
ATR vs SPY Scan
What would the code be to scan for stocks by comparing the volatility of the stocks (as measured by the 14-Day ATR/ Closing Price) to a minimum threshold for the SPY, like the SPY ATR(14) / Closing Price of the SPY x 2? i.e. show me all the stocks that are twice as volatilite as the SPY based on 14-day ATR relative to price.
0
Comments
-
Unfortunately, in a scan you cannot specify an indicator value for a specific symbol. Instead, you have to determine the indicator value from the symbol's chart, or, in your case, calculate the ratio of the indicator value to price separately, then plug the result into your scan as one side of the comparison.
So, if the SPY ATR to price ratio is .009, the scan would be
and [ atr(14)/close > .009 * 2]0
Categories
- All Categories
- 2.3K StockCharts
- 395 SharpCharts
- 146 Other Charting Tools
- 69 Saved Charts and ChartLists
- 1.5K Scanning
- 73 Data Issues
- 177 Other StockCharts Questions
- 218 Technical Analysis
- 155 Using Technical Analysis
- 2 InterMarket and International
- 19 Market and Breadth Indicators
- 42 Market Analysis
- 109 Trading
- 109 Trading Strategies
- 163 S.C.A.N the StockCharts Answer Network forum
- 65 Using this StockCharts Answer Network forum
- 98 s.c.a.n. archives
- 5 Off-Topic
- 6 The Cogitation & Rumination Emporium
- Forum Test Area