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
Comments
-
Both are OK, but in the first case, "yesterday's sma(10)" is a legal expression, but the editor is not seeing the " 's" as part of the keyword term "yesterday's"
You can see this if you cut and paste your code into the advanced editor.
The first "yesterday's" is all green, while the second "yesterday's" is green up to but not including the " 's", which is black. That means the editor doesn't recognize the partial "yesterday's" as a keyword.
A keyword is a string of characters that the editor recognizes as having special meaning (in other words, when it sees that string of characters, it knows to execute certain lines of code associated with it).
So the editor doesn't know what to do with the "s", which is not a keyword by itself, so it gives you an error.
Retype "yesterday's" slowly so it's all green and it will pass syntax and execute correctly.
Just a quirky thing. Probably an interruption in processing that lost the conversion from plain text to a keyword.0 -
Fascinating. I actually was not using the advanced editor, and now I know I SHOULD be using it. Thank you.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