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.4K StockCharts
- 397 SharpCharts
- 146 Other Charting Tools
- 69 Saved Charts and ChartLists
- 1.5K Scanning
- 74 Data Issues
- 177 Other StockCharts Questions
- 224 Technical Analysis
- 155 Using Technical Analysis
- 6 InterMarket and International
- 19 Market and Breadth Indicators
- 44 Market Analysis
- 109 Trading
- 109 Trading Strategies
- 162 S.C.A.N the StockCharts Answer Network forum
- 64 Using this StockCharts Answer Network forum
- 98 s.c.a.n. archives
- 7 Off-Topic
- 7 The Cogitation & Rumination Emporium
- Forum Test Area
