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.
Moving average cross over
Need help writing a scan for stocks that meet the criteria when the 8ema, 21ema & 50sma intersect one day ago.
0
Answers
You need to list out which MAs cross which, and in what direction. For instance, does the falling 21 cross the falling 50? or the rising 50? or the rising 21 the rising 50, etc. Once you spell it out in plain english the coding will be easy.
https://scan.stockcharts.com/discussion/2803/8day-ema-cross-above-21day-ema-price-cross-above-8-dema#latest
and [ema(8, close) x ema(21, close)]
and [ema(8, close) x ema(50, close)]