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.
Inside Day Scan
Answers
-
Hi @daniel_fromcebu , I noticed this old question hanging out in the "Unanswered" category. You've probably figured it out by now, but for others who might be new to scanning:
To scan for an "inside" day, where the the current bar's high is below the preceding bar's high, and the current low is above the preceding low:
// find inside bar
and [high < 1 day ago high]
and [low > 1 day ago low]
It's true the range is always less, but a bar can have smaller range than the preceding bar, but have the high or low (or both!) outside the range of the preceding bar.
Also to the newbies:
the line that begins "//" does not execute - the scan engine ignores everything on a line that begins with "//" or "#". Those lines can be comments, or they can be scan code that you want to switch on and off (for testing and debugging, or when you have multiple scans that are mostly alike, except for one or two lines).
It's always a good idea to comment your scans by writing in natural language what you want each scan line, or group of scan lines, to do.
It's really helpful to organize your thinking if you write your all your scan steps in plain english first, then write the scan lines to accomplish each step.
Commenting also reminds you what an old scan was supposed to do.
It's also a good idea, when you write a new scan, to update your chart style (or create a new style and name it with same name as the scan) with the indicators that your scan will use, so you can verify the results are in fact what you think you are asking for.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