Registered User Joined: 10/28/2012 Posts: 9
|
Hello Bruce i am looking for these regression Line pcf :
1- Linear regression line 30 period 1% deviation
2- Linear regression line 30 period 2% deviation
3- Linear regression line 30 period -1% deviation
4- Linear regression line 30 period -2% deviation
Thank you
|
Registered User Joined: 10/28/2012 Posts: 9
|
should read degres instead of percentage , thanks bruce
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Your clarification is unfortunate because we can calculate the percent change in a linear regression line over its length:
100 * (29.5 * (29 * (C - C29) + 27 * (C1 - C28) + 25 * (C2 - C27) + 23 * (C3 - C26) + 21 * (C4 - C25) + 19 * (C5 - C24) + 17 * (C6 - C23) + 15 * (C7 - C22) + 13 * (C8 - C21) + 11 * (C9 - C20) + 9 * (C10 - C19) + 7 * (C11 - C18) + 5 * (C12 - C17) + 3 * (C13 - C16) + C14 - C15) / 4495 / (AVGC30 - 14.5 * (29 * (C - C29) + 27 * (C1 - C28) + 25 * (C2 - C27) + 23 * (C3 - C26) + 21 * (C4 - C25) + 19 * (C5 - C24) + 17 * (C6 - C23) + 15 * (C7 - C22) + 13 * (C8 - C21) + 11 * (C9 - C20) + 9 * (C10 - C19) + 7 * (C11 - C18) + 5 * (C12 - C17) + 3 * (C13 - C16) + C14 - C15) / 4495))
Or the percent change from bar to bar compared to the average value of all of the bars:
100 * (29 * (C - C29) + 27 * (C1 - C28) + 25 * (C2 - C27) + 23 * (C3 - C26) + 21 * (C4 - C25) + 19 * (C5 - C24) + 17 * (C6 - C23) + 15 * (C7 - C22) + 13 * (C8 - C21) + 11 * (C9 - C20) + 9 * (C10 - C19) + 7 * (C11 - C18) + 5 * (C12 - C17) + 3 * (C13 - C16) + C14 - C15) / 4495 / AVGC30
But we cannot calculate the slope in degrees as measuring the slope in degrees is absolutely meaningless. The degrees will change based on the scroll, zoom and even the aspect ratio of the chart (resizing the chart).
Using Linear Regression vs Classical Peaks/Valleys for Divergence Analysis
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 1/26/2005 Posts: 4
|
How to plot 1 and 2 standard deviation off any linear regression line? Thanks, Tom
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
TC2000 version 12.4 does not have an indicator available which will plot a Linear Regression Line with Standard Deviation Channels. It does have a Drawing Tool available which will plot Standard Deviation Channels around a Linear Regression Line however.
Using Drawing Tools in TC2000
-Bruce Personal Criteria Formulas TC2000 Support Articles
|