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.
How can I scan for an inflection point about a week ago?

in Scanning
I am trying to find an inflection point, but all my tries have resulted in a "your scan syntax is incorrect"
What I've tried, among other approaches is:
[8 days ago sma (3,close) > sma 7 days ago(3,close)]
[7 days ago sma (3,close) < sma 6 days ago(3,close)]
What am I doing wrong?
jusplainjim
What I've tried, among other approaches is:
[8 days ago sma (3,close) > sma 7 days ago(3,close)]
[7 days ago sma (3,close) < sma 6 days ago(3,close)]
What am I doing wrong?
jusplainjim
0
Best Answers
-
I am just commenting on the syntax of the scan. I have no idea what an inflection point is, or the validity of the scan. Maybe someone else can comment on this. What is an inflection point?
The first thing I noticed is that the "# days ago" is out of order. Also, the keyword "and" is missing, and there were no filters to start with. I like to put the period in the scan just for completeness. So here is the correct syntax:
[type = stock] AND [Daily SMA(20,Daily Volume) > 40000]
and [8 days ago daily sma (3,close) > 7 days ago daily sma (3,close)]
and [7 days ago daily sma (3,close) < 6 days ago daily sma (3,close)]0 -
Hi Jim,
Here's one way to detect a turn in an MA:
// it's less than just a few days ago
and [sma(21, close) < 5 days ago sma(21, close)]
// but higher than a few days before that
and [sma(21, close) > 10 days ago sma(21, close)]
// and check that it hasn't turned back up since a few days ago
and [sma(21, close) < 1 day ago sma(21, close)]
For each SMA length you have to decide how many days' change in direction really constitutes a turn; the longer the SMA (or EMA) the more days. For 21, 5 seems to do the trick. For a 63 SMA it might be 15 (just guessing). Then you need a number fairly close to your first choice to ensure the turn hasn't gone too far - in this case I arbitrarily chose 10. You'll have to experiment with numbers you like.0
Answers
-
Hi Kevo,
Thanks you have answered my question, and with your question made me realize my math is rustier than I knew. I am not looking for an inflection point with my scan but a change in direction of a moving average. My interest is to see if changes in moving average direction can be useful in trading, because they will generally come before moving average crossovers.
Jusplainjim0 -
Thanks Mark,
You have also answered my question and given me some additional things to incorporate.
Jim0
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