Assigning a value to a variable
in Scanning
Dear all, is it possible to assign a value to a variable and to use the variable in scans, such as a=4? I guess this is not supported by the scan functionn but perhaps you know a work around. Thanks and my best wishes, Robert
0
Comments
-
You're right, the scan language does not support variables.
A "workaround" would depend on what it is you are trying to do. The scan language does allow you to do anything that is logically possible. If you have a range of values in mind you can use greater than and less than statements together to bracket the values in the range. If you have a set of specific values to test for, you could use a series of "or" statements. Or, if you want a combination of values all to be true, you can use a series of "and" statements. And so on. There is almost always a way to re-state the problem in a way that doesn't require variables.
If you have specific instance in mind where your are using a variable but need a scan version, post it and we'll see if we have suggestions.0 -
Thank you, Markd. I just thought of reducing typing work in the scan programs when changing a parameter but I think that this is not supported.0
-
You could do that by pasting the scan into a text editor that has a replace function, then pasting the result back into the scan.0
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
