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.
Scan for 30 sma cross 100 sma over last 25 days inclusive.
Hi, I am trying to scan for all 30 sma cross 100 sma over last 25 days inclusive.
Price > 10
So far I have...
[group is etf]
And [type = stock]
AND [country = us]
AND [Volume > 800000]
And [25 days ago SMA(30,close) X SMA(100, close)]
And [SMA(20,close)> 10.00]
I find that the result is only the 25 day cross when what I'm after is all crosses up to 25
Thanks for any reply's
0
Answers
It would be a lot easier to code for the crossover today, then adjust the scan date.
I know you have to run the scan 25 times, but that would be a lot faster than coding it.
The scan engine is really only meant to find conditions that are true today, not any day or multiple days, but the scan date adjuster tool does let you look at past days. See Gord's answer here for details on using it.
scan.stockcharts.com/discussion/477/changing-date-on-scanner-in-order-to-backtest#latest