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.
DIVERGENCE (Looking for Shorts)
Comments
-
I'm assuming you mean you are having trouble writing the scan, not with the expected results.
I think this should do it:
and [Full Stoch %D(14,3,3) < sma(90, Full Stoch %D(14,3,3))]
There are two tricks to it - one is knowing that you can put Full Stoch() inside the sma() function, instead of "close", and the second is, you have to remember you are using TWO functions when you do that. Both functions use opening and closing parentheses, so when you put one function inside the other function, you need to remember to use TWO closing parentheses. If you only use one, like this,
and [Full Stoch %D(14,3,3) < sma(90, Full Stoch %D(14,3,3)]
the check syntax will give you an error, but it will say something like "could not parse....expecting an integer' or some other message that doesn't explicitly say you need a second closing parenthesis. But it does tell you correctly exactly which phrase is the problem.
If that doesn't work for you, post what you have.
0 -
MarkD - Bingo! The extra set of parenthesis did the trick. Thank you so much-RV0
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