|
5 | 5 | <panel> |
6 | 6 | <title>Stocks Summary</title> |
7 | 7 | <table> |
8 | | - <title>Sorted by bullishPercent, newsScore, articlesLastWeek, and change</title> |
| 8 | + <title>Sorted by signal, bullishPercent, newsScore, articlesLastWeek, and change</title> |
9 | 9 | <search> |
10 | 10 | <query>| quote |
11 | 11 | | spath |
12 | 12 | | convert num(quote.c), num(quote.pc) |
13 | | -| eval change = ('quote.c'/'quote.pc'-1)*100 |
14 | | -| table ticker change quote.c quote.pc technicalAnalysis.signal sentiment.buzz.articlesInLastWeek sentiment.buzz.weeklyAverage sentiment.companyNewsScore sentiment.sectorAverageNewsScore sentiment.buzz.buzz sentiment.sentiment.bullishPercent sentiment.sectorAverageBullishPercent |
15 | | -| sort - sentiment.sentiment.bullishPercent sentiment.companyNewsScore sentiment.buzz.articlesInLastWeek change |
| 13 | +| eval change = ('quote.c'/'quote.pc'-1)*100, signalRating = case('technicalAnalysis.signal' = "strong buy", 5, 'technicalAnalysis.signal' = "buy", 4, 'technicalAnalysis.signal' = "neutral", 3, 'technicalAnalysis.signal' = "sell", 2, 'technicalAnalysis.signal' = "strong sell", 1, true(), 0) |
| 14 | +| table ticker change quote.c quote.pc signalRating technicalAnalysis.signal sentiment.buzz.articlesInLastWeek sentiment.buzz.weeklyAverage sentiment.companyNewsScore sentiment.sectorAverageNewsScore sentiment.buzz.buzz sentiment.sentiment.bullishPercent sentiment.sectorAverageBullishPercent |
| 15 | +| sort - signalRating sentiment.sentiment.bullishPercent sentiment.companyNewsScore sentiment.buzz.articlesInLastWeek +change |
| 16 | +| fields - signalRating |
16 | 17 | | rename quote.c as close, quote.pc as prevClose, technicalAnalysis.signal as signal, sentiment.buzz.articlesInLastWeek as articlesLastWeek, sentiment.buzz.weeklyAverage as weeklyAverage, sentiment.companyNewsScore as newsScore, sentiment.sectorAverageNewsScore as sectorAvgNewsScore, sentiment.buzz.buzz as buzz, sentiment.sentiment.bullishPercent as bullishPercent, sentiment.sectorAverageBullishPercent as sectorAvgBullishPercent</query> |
17 | 18 | <earliest>-24h@h</earliest> |
18 | 19 | <latest>now</latest> |
|
69 | 70 | <panel> |
70 | 71 | <title>ETF Ratings</title> |
71 | 72 | <table> |
| 73 | + <title>Sorted by signal and change</title> |
72 | 74 | <search> |
73 | 75 | <query>| quote QQQ TQQQ VGT VYM SPHD |
74 | 76 | | spath |
75 | | -| table ticker, quote.c, technicalAnalysis.signal |
76 | | -| sort ticker |
77 | | -| rename quote.c as close, technicalAnalysis.signal as signal</query> |
| 77 | +| convert num(quote.c), num(quote.pc) |
| 78 | +| eval change = ('quote.c'/'quote.pc'-1)*100, signalRating = case('technicalAnalysis.signal' = "strong buy", 5, 'technicalAnalysis.signal' = "buy", 4, 'technicalAnalysis.signal' = "neutral", 3, 'technicalAnalysis.signal' = "sell", 2, 'technicalAnalysis.signal' = "strong sell", 1, true(), 0) |
| 79 | +| table ticker change quote.c quote.pc signalRating technicalAnalysis.signal |
| 80 | +| sort - signalRating +change |
| 81 | +| fields - signalRating |
| 82 | +| rename quote.c as close, quote.pc as prevClose, technicalAnalysis.signal as signal</query> |
78 | 83 | <earliest>-24h@h</earliest> |
79 | 84 | <latest>now</latest> |
80 | 85 | <sampleRatio>1</sampleRatio> |
|
86 | 91 | <option name="rowNumbers">false</option> |
87 | 92 | <option name="totalsRow">false</option> |
88 | 93 | <option name="wrap">true</option> |
| 94 | + <format type="color" field="change"> |
| 95 | + <colorPalette type="minMidMax" maxColor="#53A051" midColor="#FFFFFF" minColor="#DC4E41"></colorPalette> |
| 96 | + <scale type="minMidMax" maxValue="3.5" midValue="0" minValue="-3.5"></scale> |
| 97 | + </format> |
| 98 | + <format type="number" field="change"> |
| 99 | + <option name="unit">%</option> |
| 100 | + </format> |
89 | 101 | <drilldown> |
90 | 102 | <set token="ticker">$click.value$</set> |
91 | 103 | </drilldown> |
|
0 commit comments