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.
etf scanning for moving averages up by $symbol:$spx ratio
hello
how can i done this scan with an expression like "symbol:$spx > sma(5-,symbol:$spx)"?
thanks!
--
[group is ETF]
and [Liquidity > 999,999]
and [group is ETFNOUI]
and [SMA(20,VOLUME) >= 30,000]
and [ symbol:$spx > sma(5-,symbol:$spx) ]
// perc diff sma20
RANK BY [ PctDiff(close,sma(20,close))]
--
0
Comments
and [PctRelative(20,$spx) > SMA(5,PctRelative(20,$spx) )]
It passes syntax and does return 368 results
[group is ETF]
and [Liquidity > 999,999]
and [group is ETFNOUI]
and [SMA(20,VOLUME) >= 30,000]
//and [ symbol:$spx > sma(5-,symbol:$spx) ]
and [PctRelative(20,$spx) > SMA(5,PctRelative(20,$spx) )]
// perc diff sma20
RANK BY [ PctDiff(close,sma(20,close))]
You can even use it as a Rank by
rank by [PctRelative(20,$spx)]
With the PctRelative you can also use $Sector and $Industry where the $spx is. In fact, you can use ANY valid symbol in that position. With ETF's they are NOT assigned to sectors or industries so that would be good to use in an ETF scan, but something to keep in mind.
Have you used the Help on StockCharts to writing this scan?
https://support.stockcharts.com/doku.php?id=scans:advanced_scan_syntax:relative_strength_scans
https://support.stockcharts.com/doku.php?id=scans:advanced_scan_syntax:sctr_scans
StockCharts has SCTR reports for RS as well
https://support.stockcharts.com/doku.php?id=reports:sctrs