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.
Syntax Error

in Scanning
Something is wrong with this syntax. Help
and [yesterday's close >= (yesterday's lower BB(20,2)) - (0.05*yesterday's close BB Width(20,2))]
and [yesterday's close >= (yesterday's lower BB(20,2)) - (0.05*yesterday's close BB Width(20,2))]
0
Comments
-
0.05 * yesterday's close BB Width(20,2)
You can't say "close BB Width(20,2)" ; it has to be either "close", or "BB Width(20,2)".
Also, use brackets[ ] , not parens ( ) for grouping expressions. Parens are reserved for functions [like sma( ), BB Width, etc.]
I'm guessing you want the close to be near the lower BB within a fraction (.05) of the BB Width. If so, this passes syntax:
and [yesterday's close >= yesterday's lower BB(20,2) - [yesterday's BB Width(20,2) * .05]]
I didn't run it to test the logic, just checked the syntax.0 -
Thanks Mark0
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