Scan for price above SMA 20 over a duration of time.
in Scanning
Does anyone know of a way of consolidating this into one line command?
and [1 day ago low > 1 day ago sma(20)*0.95]
and [2 days ago low > 2 days ago sma(20)*0.95]
and [3 days ago low > 3 days ago sma(20)*0.95]
and [4 days ago low > 4 days ago sma(20)*0.95]
and [5 days ago low > 5 days ago sma(20)*0.95]
and [6 days ago low > 6 days ago sma(20)*0.95]
and [7 days ago low > 7 days ago sma(20)*0.95]
and [8 days ago low > 8 days ago sma(20)*0.95]
and [9 days ago low > 9 days ago sma(20)*0.95]
and [1 day ago low > 1 day ago sma(20)*0.95]
and [2 days ago low > 2 days ago sma(20)*0.95]
and [3 days ago low > 3 days ago sma(20)*0.95]
and [4 days ago low > 4 days ago sma(20)*0.95]
and [5 days ago low > 5 days ago sma(20)*0.95]
and [6 days ago low > 6 days ago sma(20)*0.95]
and [7 days ago low > 7 days ago sma(20)*0.95]
and [8 days ago low > 8 days ago sma(20)*0.95]
and [9 days ago low > 9 days ago sma(20)*0.95]
0
Comments
-
I don't think so. If you wanted close above .95 ema for 10 days (including the most recent close), you could do
and [min(10, PPO(1,20,1) > -.05]
I haven't tested this. Try it on a chart first - 20 ema on the chart, PPO 1,20,1 below. When price closes below the ema on the chart, PPO should be below zero by some per cent. Unfortunately, as far as I know, you can't specify low instead of close for PPO.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
