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.
Trying to create a scan for the RSI crossing up thru its RSI 9 day sma
I'm trying to create a scan for a bullish signal when the RSI crosses up thru its RSI 9 day sma. Here is what I've come up with but I get an error message.
[favorites list is 55] // ALL EXCHANGES 75 DAY POSITIVE DIVERGENCE FEB 18 - 2015-02-18
and [today's daily RSI(14) > today's daily RSI(14) sma(9)]
and [yesterday's daily RSI(14) < yesterday's daily RSI(14) sma(9)]
The error message that I get is:
Your scan syntax is incorrect. Could not parse "14) SMA(9" located in the clause "TODAY'S DAILY RSI(14) > TODAY'S DAILY RSI(14) SMA(9)" (an integer was expected)
Any help would be appreciated. Thanks
[favorites list is 55] // ALL EXCHANGES 75 DAY POSITIVE DIVERGENCE FEB 18 - 2015-02-18
and [today's daily RSI(14) > today's daily RSI(14) sma(9)]
and [yesterday's daily RSI(14) < yesterday's daily RSI(14) sma(9)]
The error message that I get is:
Your scan syntax is incorrect. Could not parse "14) SMA(9" located in the clause "TODAY'S DAILY RSI(14) > TODAY'S DAILY RSI(14) SMA(9)" (an integer was expected)
Any help would be appreciated. Thanks
0
Best Answer
-
Yes you are not the only one who has had a little difficulty getting the coding just right. As you are looking to scan for an overlay of an indicator, SMA(9) of the RSI(14).
The normal format for SMA is SMA(period, expression), although we often see it in short form just SMA(9), this is actually SMA(9, close) which is the default. So we just need to replace "close" with the expression we are looking for.
and [today's daily RSI(14) > today's daily sma(9,RSI(14))]
and [yesterday's daily RSI(14) < yesterday's daily sma(9,RSI(14))]
Here's an older article which explains this in more detail.
http://stockcharts.com/articles/scanning/2011/08/question-is-it-possible-to-use-an-ema-of-an-indicator-in-a-scan-for-example-if-i-wanted-to-know-when-rsi5-is-above-a.html
cheers0
Answers
-
Thank you so much. It works!!!!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