How do I write a scan that excludes any blanks in the Sector field?
I want to run a scan that only gives me results if there is an entry (of any kind) in the Sector field, without having to add every possible Sector. How would I create a scan that would be something like:
Group is not 'blank', or Group != "" (neither of those work, btw)
basically, is there a parameter for a blank or null field?
Group is not 'blank', or Group != "" (neither of those work, btw)
basically, is there a parameter for a blank or null field?
0
Comments
-
As far as I know, you cannot test for a null or blank value - at least it didn't work when I've tried it either, although that was a while ago, so it may have changed. But here is the code for "any sector", adapted from an old scan of mine:
//and
[ // sectors open bracket
[group is EnergySector]
or [group is MaterialsSector]
or [group is IndustrialSector]
or [group is CyclicalsSector]
or [group is ConsumerStaplesSector]
or [group is HealthCareSector]
or [group is FinancialSector]
or [group is TechnologySector]
or [group is CommunicationServicesSector]
or [group is UtilitiesSector]
or [group is RealEstateSector]
] // sectors close bracket
"CyclicalsSector" still works, but "ConsumerDiscretionarySector" may also work.
0 -
@markd thanks for the help. I actually wrote that scan as well, but was a little mystified on why ConsumerDiscretionarySector was not available... wtf?
Looks like I'll have to do it the hard way... thanks StockCharts...0 -
It seems like the programmers have a little housework to do in cleaning up their tables. It may be that someone - probably NOT the programmers - at some point decided "Cyclicals" was a better term for the sector, and then someone decided, no, let's go back to "Consumer Discretionary". Or, it could have been a data vendor decision. In any case, somebody needs to synchronize the data labels and the scan engine labels. Maybe there is already a ticket but it's low priority?0
This discussion has been closed.
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

