- 2.5K All Categories
- 2.1K StockCharts
- 364 SharpCharts
- 111 Other Charting Tools
- 52 Saved Charts and ChartLists
- 1.3K Scanning
- 65 Data Issues
- 149 Other StockCharts Questions
- 186 Technical Analysis
- 134 Using Technical Analysis
- 1 InterMarket and International
- 19 Market and Breadth Indicators
- 32 Market Analysis
- 91 Trading
- 91 Trading Strategies
- 156 S.C.A.N the StockCharts Answer Network forum
- 61 Using this StockCharts Answer Network forum
- 95 s.c.a.n. archives
- 13 Off-Topic
- 9 The Cogitation & Rumination Emporium
- 4 Forum Test Area

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.

## Comments

Of course, first select a universe of stocks to scan, like the SP500, for example, and/or other security limitations.

Then add your PctChange criteria.

It will default into your scan like this

and [PctChange(10,close) > 10]

You would change the period from 10 as in 10 days, to what period you want. The > 10 is greater than 10 percent, so you'd change that to 200 if that is what you want. Close can be changed to Low, or High but it's looking at the beginning price, be it close, high, low or open, and comparing it to current last as it is written.

If you run into an issue, post your code here for assistance.

So the lowest price over the last month (21 trading days) would be

min(21, low)

and the highest price over the same period would be

max(21, high)

A year is approximately 251 trading days (52 weeks x 5 days = 260 days - 9 market holidays = 251).

In a scan, per cents are expressed as decimals. So, 1.0 is 100%, 80% would be .8, 125% would be 1.25.

A per cent has to be expressed in terms of a base value or a denominator. For instance, if price advances from a low of 5 to a high of 7, the difference from low to high is 2 points. So the low is the base value (the denominator) and the gain (the difference) is the numerator. So, the per cent gain is 2/5 or .4 or 40%.

In your case, you want the gain (high minus low) to be twice (200%) the low.

So, applying the rules of syntax for the scan engine, you would write:

and [ [max(251, high) - min(251, low)] / min(251,low) > 2]

Note that you use brackets [ ] not parentheses ( ) to group numbers in an arithmetic expression.