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.
ppo and rsi scanning in sames rules

in Scanning
i am scanning for rsi >70 atleaast once in last 30 days and this rule fails. where am i making a mistake
[type = stock] AND [Daily SMA(20,Daily Volume) > 400000] and
and [min(30, RSI(14)) > 68))>1]
[type = stock] AND [Daily SMA(20,Daily Volume) > 400000] and
and [min(30, RSI(14)) > 68))>1]
0
Comments
-
Try this:
and [max(30, RSI(14) > 70]
You want at least one reading ABOVE some value over some period of time, so use max( ). Max( ) allows some readings to be below the target value, but requires at least one value (the max) to be above the target value.
note: You don't need to specify the ">1" for the number of instances the function is true, because the function already "knows" it will be true only if it finds at least one instance on its own.
If you wanted EVERY reading above some value, you would use min( ) - because that can be true only when the smallest value is still above the target value.
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