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.
this is a scan that i cantr seem to create

shammyx1
✭
in SharpCharts
Dear Scan
How do i write a scan which says that:
1. Price is at or up to 4% above the 10 day EMA but below the 200day EMA by between 5% and 1%
2. price of 10day has just turned positively sloped as compared to 1 day ago or lets say 2 days ago?
Best regards
Mark
How do i write a scan which says that:
1. Price is at or up to 4% above the 10 day EMA but below the 200day EMA by between 5% and 1%
2. price of 10day has just turned positively sloped as compared to 1 day ago or lets say 2 days ago?
Best regards
Mark
0
Comments
-
Post what you have and we'll tweak it.
It's not complicated. It's just long. One statement for each condition, except if you have compound conditions (e.g. between) you might need more.
For your first condition, you are actually asking for prices to be in a range, so have to specify the upper bound and the lower bound. Use decimals to express per cents. For instance, price above an ma by up to 4% would be close <= ma * 1.04. Below by 5 % would be close > ma * .95. For the other bound, testing that price is above the ma, close > ma. For price below the ma, close < ma.
For the second condition, an the first up tick in a ma would just be ma > 1 day ago ma. But to capture a previous down slope you would say 1 day ago ma < x days ago ma. You would have to adjust the number of days ago for the kind of turn you want to capture.0 -
dear Mark, thanks for your response. Its greatly appreciated. I will work on this and send you a response tomorrow.
Best
Mark0
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