Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 4/5/2007 Posts: 6
|
There is a video titled "Old Dog, New Trick" recorded on 11-23-10. In it was used an indicator called "linear regression slope". I use TC 2000 v12, and I believe the instructor was using something else. Is there a PCF I could use to recreate the linear regression slope set as a line?Thanks in advance.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
It is possible to create a Linear Regression Slope indicator by using a Custom PCF Indicator, but the Period of the Linear Regression Slope needs to be known.
Using Linear Regression vs Classical Peaks/Valleys for Divergence Analysis
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 4/5/2007 Posts: 6
|
Could you do it with the period of 20?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The raw 20-Period Linear Regression Slope would be:
(9.5 * C + 8.5 * C1 + 7.5 * C2 + 6.5 * C3 + 5.5 * C4 + 4.5 * C5 + 3.5 * C6 + 2.5 * C7 + 1.5 * C8 + .5 * C9 - .5 * C10 - 1.5 * C11 - 2.5 * C12 - 3.5 * C13 - 4.5 * C14 - 5.5 * C15 - 6.5 * C16 - 7.5 * C17 - 8.5 * C18 - 9.5 * C19) / 665
The 20-Period Linear Regression Slope as a percentage of the current price would be:
100 * (9.5 * C + 8.5 * C1 + 7.5 * C2 + 6.5 * C3 + 5.5 * C4 + 4.5 * C5 + 3.5 * C6 + 2.5 * C7 + 1.5 * C8 + .5 * C9 - .5 * C10 - 1.5 * C11 - 2.5 * C12 - 3.5 * C13 - 4.5 * C14 - 5.5 * C15 - 6.5 * C16 - 7.5 * C17 - 8.5 * C18 - 9.5 * C19) / 665 / C
The 20-Period Linear Regression Slope as a percentage of the 20-Period Moving Average would be:
100 * (9.5 * C + 8.5 * C1 + 7.5 * C2 + 6.5 * C3 + 5.5 * C4 + 4.5 * C5 + 3.5 * C6 + 2.5 * C7 + 1.5 * C8 + .5 * C9 - .5 * C10 - 1.5 * C11 - 2.5 * C12 - 3.5 * C13 - 4.5 * C14 - 5.5 * C15 - 6.5 * C16 - 7.5 * C17 - 8.5 * C18 - 9.5 * C19) / 665 / AVGC20
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |