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 displaced moving average e.g. sma(1,h,20)
Comments
-
If you want to compare current data to past data as if the past data were occurring today, you would use "x days ago". For instance.
and [close > 20 days ago sma(20, high)]
0 -
I want to compare data of today, with data in the future, like the high of today forwarded for 20 days. Is this possible? In the chart I can see it.0
-
When you say "in the chart I can see it" what and where?
If it's Ichimoku, that's based on formulas. You can replicate that formula or use the Ichimoku segment you are interested in, in your scan. It's available in the Technical Indicators dropdown in the Scan workbench. Some of the segments display "in the future" but that is more for a visual as to where the current data falls so that possible expected support and resistance are more visual.0 -
How would the scan engine compare data of today with data in the future? Data in the future doesn't exist yet so the scan engine can't find it.0
-
schrts.co/KtDkBdSw I want to scan for this yellow crossover. I hope you can see the chart.0
-
So I read that as you want to scan for today's (or some prior day's) close crossing below the high of 20 days before.
sma(1, high) is just a line that connects all the highs. It's not really an "average" because the divisor is 1 and 1 into any number is the number, e.g. 12/1 = 12.
sma(1,20, high) is the sma(1,high) line pushed forward 20 bars, as if the value from 20 days ago is occurring 20 days later.
So, the scan would be as above, except using the crossover operator "x" and a scan date of Jun 11 or 12 (hard to tell from the chart).0 -
Thank you, that helps.
0 -
To plot on the chart: 1,-20 for past, 1,20 to plot in future make sure to add extra time on your chart otherwise you will not see the future plot line0
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