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.
MA cross over
Hello
I want to scan for weekly moving average cross over. Is the following language written correctly ?
1. [this week's ema(5,close) > this week's ema (8,close)] and [last week's ema(5,close) < last week's ema (8,close)]
or
2. [this week's ema (5,close) x this week's (8,close)].
Thanks for your help.
I want to scan for weekly moving average cross over. Is the following language written correctly ?
1. [this week's ema(5,close) > this week's ema (8,close)] and [last week's ema(5,close) < last week's ema (8,close)]
or
2. [this week's ema (5,close) x this week's (8,close)].
Thanks for your help.
0
Comments
-
and [weekly ema(5,weekly close) x weekly ema (8, weekly close)]
that says, this week's ema 5 of weekly closes crossed above this week's ema 8 of weekly closes.
You need the modifier weekly in front of the function ema( ), and within the parentheses of the function to tell it what to average, in the this case, weekly closes.
If you put no modifier, the scan engine assumes you mean daily. So, if you leave out a modifier, the scan syntax checker may not give you an error, but you would be asking for, for instance, a weekly ema of a daily close, which doesn't make sense.0 -
Thanks, markd.
I didnt know about the modifier and thanks for pointing that out.
If Instead if I want to scan for weekly ema (5,close) crosses up weekly ema (8,high), is the following correct ?
[weekly ema (5, weekly close) x weekly ema (8, weekly high)] ? Thanks.0 -
should work. Keep in mind though, as a rule of thumb, every line in a scan except the first one begins with "and".0
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