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.
Scanning an $Index chartlist issue
I have a chartlist with 18 index sector symbols......all symbols starting with $. I get scan results (with all 18 symbols listed) with these 2 scan lines
[type = index]
and [favorites list is 113]
But when I add any rank by staement.....check syntax is OK......but I get zero scan results.........what is the issue with rank by with indexes
rank by [PctChange(20,close)]
Thanks........Bob
[type = index]
and [favorites list is 113]
But when I add any rank by staement.....check syntax is OK......but I get zero scan results.........what is the issue with rank by with indexes
rank by [PctChange(20,close)]
Thanks........Bob
0
Best Answer
-
I have an index only list also. I substituted my list for yours and ran the scan without a problem
You don't need the "type is index" statement if everything in the list is an index, but it doesn't hurt anything.
You also don't need the brackets around PctChange, but again, it doesn't hurt anything.
Here's exactly what runs for me:
[type = index]
and [favorites list is 32] // 00 10 01 16 Indices - US Market Indices
rank by [PctChange(20,close)]
Suggestions:
Do you get results with ONLY the favorites list statment (no type statement, no rank by statement)
so - does this work for you:
// begin scan
[favorites list is 32] // 00 10 01 16 Indices - US Market Indices
// end scan
Substitute your list for mine - BUT -
Did you just type in "[favorites list is 113], or did you select it from the Chart Lists drop down, under the scan window?
If you just typed it in, you may be getting results from [type is index] rather than [favorites list is 113]. Sometimes, it seems the scan engine does not recognize the favorites statement if you type it in your self. It's not wrong syntactically, so it doesn't give you an error, but it doesn't seem to execute either.
So select the list from the Chart Lists drop down, run that statement alone first, then add the rank by statement and see what happens.
I think you already know the "rank by" statement must be the very last statement in the scan.
0
Answers
-
Hi Mark, it is working now.........stupid me, I just noticed I had an extra favorites list line at the end of the scan statements that I forgot to delete......strange but the scan engine didnt catch it with Check Syntax. I am making note of the things you advised I did not need but should not make a difference.......Thanks again, Bob0
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