I am not quite sure what you mean by corrects. Do you just need to have a range contraction with those specific percentages and number of weeks (the following formula would be set to a weekly time frame)?
MAXH5 < 1.1 * MINL5 AND 1.1 * MINL10.5 < MAXH10.5 AND MAXH10.5 < 1.2 * MINL10.5 AND 1.2 * MINL20.15 < MAXH20.15 AND MAXH20.15 < 1.3 * MINL20.15
Or maybe that plus having the shorter ranges fall entirely within the longer ranges?
MAXH5 < 1.1 * MINL5 AND MINL10.5 < MINL5 AND MAXH5 < MAXH10.5 AND 1.1 * MINL10.5 < MAXH10.5 AND MAXH10.5 < 1.2 * MINL10.5 AND MINL20.15 < MINL15.5 AND MAXH10.5 < MAXH20.15 AND 1.2 * MINL20.15 < MAXH20.15 AND MAXH20.15 < 1.3 * MINL20.15
I am guessing you actually want something else, but I am not quite sure what it is based on your description.
Bruce
Personal Criteria Formulas TC2000 Support Articles

I have sent you a copy of the most recent version I have made of the TTM Squeeze indicator via TCMail.
It should come already color coded.
Bruce
Personal Criteria Formulas TC2000 Support Articles

I am assuming you have already tried changing the time frame of the condition based on the formula you had to 1minute in the scan or WatchList column where it is being used?
Bull Flag scanner for intraday
You may wish to review the following for information on pattern recognition in TC2000 (the topics mentioning flags and pennants will be most on target and Finding Continuation Triangles And Wedges With Telechart being the most popular):
Falling wedge
Cup with a handle formation
PCF for cup with a handle
Scanning for Chart Patterns
Scanning for Stocks Printing a Double or Triple Bottom
PCFs for pennants and flags
PCF's for Triangles
Does TeleChart support Elliott Wave indicators?
Double top/bottom trend
Finding Double Tops and Double Bottoms
CUP AND HANDLE AGAIN
Finding Continuation Triangles And Wedges With Telechart
Cup & Handle PCF
Double tops and bottoms
Flag wedge and pennant pcf
05/01/2012 Webinar: Trading the Flag and Pennant Patterns
That said, I personally do not think complex pattern recognition is practical in TC2000 using formulas and Scans.
They are at the very least beyond my abilities to help you create without a specific unambiguous objective definition of what you are attempting to identify. It can't be an I know it when I see it type of definition or be based entirely on an image.
This is true of pattern recognition in general with the exception of fixed size candlestick patterns, which are fairly straightforward as long as the pattern is well defined:
Boolean PCFs for Candlestick Patterns
Bruce
Personal Criteria Formulas TC2000 Support Articles

Thank you for your suggestion.
Bruce
Personal Criteria Formulas TC2000 Support Articles

It shouldn't make any difference at all.
C > 1.1 * C1
Is the same as:
10 * C > 11 * C1
Which is the same as:
100 * C > 110 * C1
Bruce
Personal Criteria Formulas TC2000 Support Articles

Yes, the only reason I sometimes write the formulas that way (without decimal markers) is to avoid using the . as the decimal marker in fomulas. This can help out customers from countries which use the , as the decimal marker instead.
Bruce
Personal Criteria Formulas TC2000 Support Articles

It is a fairly restrictive set of conditions (and the 1minute time frame of the crossdown condition will mean the list can change rather rapidly), but I was getting SAEX a few minutes ago with the 10% version and am getting CRSP and VTL currently with the 5% version when scaning the US Common Stocks WatchList.
Bruce
Personal Criteria Formulas TC2000 Support Articles

Checking for the close being between two moving averages can be done a variety of ways. If you want a specific order, you can specify this. For example, EMA8 below price and price below SMA20:
XAVGC8 < C AND C < AVGC20
You could reverse this order rather easily.
AVGC20 < C AND C < XAVGC8
One way to check for either direction would be to OR these two formulas together with parentheses around each section to force the desired order of operations.
(XAVGC8 < C AND C < AVGC20) OR (AVGC20 < C AND C < XAVGC8)
You can use a similar structure to the first two formulas to check for the top simple Bollinger Band 20, 2.00 being between the close and high.
C < BBTOP(2, 20) AND BBTOP(2, 20) < H
There would be no need to reverse this version or to check for another order because the close is always going to be less than or equal to the high.
Bruce
Personal Criteria Formulas TC2000 Support Articles

If I am understanding correctly, the first formula correspond to the exact opposite of your requirements, but it really was my best guess based on the grammar and construction of the original request.
Please try the following condition formula instead (it just reversed the > sign to a < sign in the formula).
100 * (C / (H1 + 2 * ((H1 + L1 + C1) / 3  L1))  1) <= 5
Bruce
Personal Criteria Formulas TC2000 Support Articles
