Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Linear regression trend with standard deviation Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
maljester
Posted : Monday, April 9, 2018 3:28:16 PM
Platinum Customer Platinum Customer

Joined: 1/30/2005
Posts: 135

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?

Bruce_L
Posted : Monday, April 9, 2018 3:46:48 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

The only thing like this in TC2000 is the Linear Regression Channel drawing tool and it is only going to draw one channel, not two channels.

StockFinder has similar drawing tools. The Linear Regression Scan and Regression Channel edit topics have RealCode Indicators for TeleChart style Linear Regression Channels and Moving Linear Regressions (with options to use Standard Deviation or TeleChart's LR calculations for Width).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
maljester
Posted : Wednesday, April 11, 2018 8:36:42 AM
Platinum Customer Platinum Customer

Joined: 1/30/2005
Posts: 135

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?

Bruce_L
Posted : Wednesday, April 11, 2018 9:40:59 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You can create a condition formula for this (and it is relatively short), but you can't plot the indicator.

L < 3 * FAVGC63 - 2 * AVGC63 - .95 * STDDEV63



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
maljester
Posted : Wednesday, April 11, 2018 10:58:25 AM
Platinum Customer Platinum Customer

Joined: 1/30/2005
Posts: 135

Thank you

maljester
Posted : Sunday, April 15, 2018 11:04:42 PM
Platinum Customer Platinum Customer

Joined: 1/30/2005
Posts: 135

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.
Bruce_L
Posted : Monday, April 16, 2018 12:55:33 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

What WatchList is being used as the basis of your scan? All of the symbols from the StockFinder list return true for me yesterday in in a daily time frame in TC2000 as well.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
maljester
Posted : Monday, April 16, 2018 1:14:33 PM
Platinum Customer Platinum Customer

Joined: 1/30/2005
Posts: 135

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

Thanks for you  help

traderlady
Posted : Monday, June 18, 2018 3:37:37 PM
Registered User
Joined: 10/7/2004
Posts: 1,178

Hi Bruce,

You offered maljester the following PCF True for Linear Regression Trendline one to two Standard Deviations BELOW.

L < 3 * FAVGC63 - 2 * AVGC63 - .95 * STDDEV63

Please offer the formula for Linear Regression Trendline one to two Standard Deviations ABOVE.

Thanks,

traderlady

Bruce_L
Posted : Tuesday, June 19, 2018 10:21:12 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

No, the formula given is for the low being more than 0.95 SD below.

The high being more than one SD above would be the following.

H > 3 * FAVGC63 - 2 * AVGC63 + STDDEV63

The high being more than two SD above would be the following.

H > 3 * FAVGC63 - 2 * AVGC63 + 2 * STDDEV63



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.