Syntax Error
in Scanning
This should list almost everything, as it looks for SMA Envelope with more than a 1 point spread.
Instead I'm getting a syntax error.
Does anyone see a problem with this line?
[Upper MA Env(20,2.5) - (Lower MA Env(20,2.5) > 1]
Instead I'm getting a syntax error.
Does anyone see a problem with this line?
[Upper MA Env(20,2.5) - (Lower MA Env(20,2.5) > 1]
0
Best Answers
-
Yes, here is the syntax error code I get when I run your code.
=====
Your scan syntax is incorrect. Could not parse "" located in the clause "UPPER MA ENV(20,2.5) - (LOWER MA ENV(20,2.5)"
=====
So this is the line with the problem, the first thing I see is mismatched brackets, should be:
and [Upper MA Env(20,2.5) - Lower MA Env(20,2.5) > 1]
or you could also use the following which I often use make it more clear;
and [ [ Upper MA Env(20,2.5) - Lower MA Env(20,2.5) ] > 1]
give it a try, Gord0 -
Thanks, I don't know what was going on. Yeah, I'm well aware of the balanced parenthesis, and had tried massive permutations of parenthesis before requesting help. That's when I got sloppy and posted an example that didn't show them balanced. It's working now; so we may never know if it was my browser having a snit, or the server.
Thanks in any case!
Lance0
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
