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.
Has anyone written a scan with multiple dates?

in Scanning
I'm trying to write a scan where Aroon Up (20) has hit 100 for the first time today after being below 30. Driving me nuts.
0
Answers
-
You need the "x" operator for crossing above 100.
and [Aroon UP(20) x 100]
But that only says, Aroon was below 100 yesterday and is above it today.
If you want to specify that this is the first crossing in x bars, then you need to use the max( ) function, so maybe
and [1 day ago max(??, Aroon Up(20)) < 100]
That says Aroon has not been above 100 for ?? bars.
Then you need to use the min( ) function to test for at least one value below 30 over some number of bars, e.g.
and [1 day ago min(??, Aroon Up(20)) < 30]
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