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.
Scanning for Lower Percent Change from 252 Day High
Comments
-
You can use the max( ) function to the find the highest value of something over the period you specify - so for instance, 252 day high is max(252, high) or max(252, close), depending on which you want to use. For the lowest value over some period, you would min( ).
To find a per cent of anything, like the max( ) value, multiply by the decimal equivalent of the percent. The decimal equivalent of 100% is 1.0. Something less than 100% would be something less than 1.0 - in your case, .8. If you wanted 20% above something - like an MA - it would something more than 1.0 - say 1.20 -
I know how to write the scan for the 252 day high, but what is the script for showing a close 20% lower than that high? Thanks.0
-
max( ) * .80
-
Thank you!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