Works well. Thanks for your help.

Is it possible to translate the following RealCode to a V18 PCF?
Static Buy As Single
If isFirstBar Then
Buy = 0
End If
If buy = 0 AndAlso price.high >= price.MaxClose(20, 1) AndAlso price.stoc(21, 8) < 69 Then
buy = 1
plot = 1
Else If buy = 1 AndAlso price.STOC(21, 8) <= price.stochastics(21, 8).avg(5) _
AndAlso price.STOC(21, 8, 1) > price.stochastics(21, 8).avg(5, 1) _
AndAlso price.STOC(21, 8, 1) >= 33 Then
buy = 0
plot = 1
Else plot = 0
End If

It was set to hi cap 1000. I changed to U.S. Stocks and that fixed the problem.
Thanks for you help

as of April 13 StockFinder scan with
TC LR Channel indicator with the following settings
Period is 63
Width is 1
TCWidth is False
and price.close less than lower band
AndAlso volume.AVGC(21) > 10000 AndAlso volume.MinClose(5) > 4000 _
AndAlso price.close > 1 AndAlso price.Close < 10
returns symbols ABEV, APPS, BW, CIG, EDGE, HMY, MBT, MNKD, NLNK, NVAX, SBS and SIRI
TC2000
avgv21 > 1000000 and minv5 > 400000
and c > 1 and c < 10
and C < 3 * FAVGC63  2 * AVGC63  STDDEV63
returns ABEV, BBD, MBT, SBS, SIRI
The StockFinder stocks are all under lower band. TC2000 does not appear to be finding all the stocks.

I set up your TC LR Channel indicator with the following settings
Period is 63
Width is .95
TCWidth is False
I scan for Price.Low less than lower band
Can this be done in TC2000?

Is have it possible to have a linear regression trend line with a valiable period and have 1 and 2 standard deviation lines above and below the LinReg trend line in StockFinder and TC2000?

Thanks for your help Bruce.

I am using the following for 14 bar daily range. How do I convert to weekly?
'# Period = UserInput.Integer = 14
Static SumC As Single
If isFirstBar Then
SumC = 0
End If
SumC += Price.High  Price.Low
If CurrentIndex >= Period Then
SumC = Price.High(Period)  Price.Low(Period)
End If
If CurrentIndex >= Period  1 Then
plot = SumC / Period
Else
Plot = Single.NaN
End If
