Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Linear Regression One year slope Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
thomasjrmm
Posted : Tuesday, January 24, 2017 10:29:44 PM
Registered User
Joined: 3/26/2005
Posts: 63

I would appreciate your assistance in developing two PCF's. One to identify each chart in a watch list that has an up slope in a chart that expresses a two day time frame in a126 bar period, and the second that states the center line value of each such chart .

I am using TC2000 V 7

Thanks for your help

Mart Thomas

Bruce_L
Posted : Wednesday, January 25, 2017 9:25:40 AM


Worden Trainer

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

Checking for the slope of a 126 period linear regression line on a 2 day chart being greater than zero in TC2000 v7 can be written as follows.

(62.5 * C + 61.5 * C2 + 60.5 * C4 + 59.5 * C6 + 58.5 * C8 + 57.5 * C10 + 56.5 * C12 + 55.5 * C14 + 54.5 * C16 + 53.5 * C18 + 52.5 * C20 + 51.5 * C22 + 50.5 * C24 + 49.5 * C26 + 48.5 * C28 + 47.5 * C30 + 46.5 * C32 + 45.5 * C34 + 44.5 * C36 + 43.5 * C38 + 42.5 * C40 + 41.5 * C42 + 40.5 * C44 + 39.5 * C46 + 38.5 * C48 + 37.5 * C50 + 36.5 * C52 + 35.5 * C54 + 34.5 * C56 + 33.5 * C58 + 32.5 * C60 + 31.5 * C62 + 30.5 * C64 + 29.5 * C66 + 28.5 * C68 + 27.5 * C70 + 26.5 * C72 + 25.5 * C74 + 24.5 * C76 + 23.5 * C78 + 22.5 * C80 + 21.5 * C82 + 20.5 * C84 + 19.5 * C86 + 18.5 * C88 + 17.5 * C90 + 16.5 * C92 + 15.5 * C94 + 14.5 * C96 + 13.5 * C98 + 12.5 * C100 + 11.5 * C102 + 10.5 * C104 + 9.5 * C106 + 8.5 * C108 + 7.5 * C110 + 6.5 * C112 + 5.5 * C114 + 4.5 * C116 + 3.5 * C118 + 2.5 * C120 + 1.5 * C122 + .5 * C124 - .5 * C126 - 1.5 * C128 - 2.5 * C130 - 3.5 * C132 - 4.5 * C134 - 5.5 * C136 - 6.5 * C138 - 7.5 * C140 - 8.5 * C142 - 9.5 * C144 - 10.5 * C146 - 11.5 * C148 - 12.5 * C150 - 13.5 * C152 - 14.5 * C154 - 15.5 * C156 - 16.5 * C158 - 17.5 * C160 - 18.5 * C162 - 19.5 * C164 - 20.5 * C166 - 21.5 * C168 - 22.5 * C170 - 23.5 * C172 - 24.5 * C174 - 25.5 * C176 - 26.5 * C178 - 27.5 * C180 - 28.5 * C182 - 29.5 * C184 - 30.5 * C186 - 31.5 * C188 - 32.5 * C190 - 33.5 * C192 - 34.5 * C194 - 35.5 * C196 - 36.5 * C198 - 37.5 * C200 - 38.5 * C202 - 39.5 * C204 - 40.5 * C206 - 41.5 * C208 - 42.5 * C210 - 43.5 * C212 - 44.5 * C214 - 45.5 * C216 - 46.5 * C218 - 47.5 * C220 - 48.5 * C222 - 49.5 * C224 - 50.5 * C226 - 51.5 * C228 - 52.5 * C230 - 53.5 * C232 - 54.5 * C234 - 55.5 * C236 - 56.5 * C238 - 57.5 * C240 - 58.5 * C242 - 59.5 * C244 - 60.5 * C246 - 61.5 * C248 - 62.5 * C250) / 166687.5 > 0

The centerline of the right end point of this linear regression line (which would also be the value of the moving linear regression) can be written as follows.

(251 * C + 248 * C2 + 245 * C4 + 242 * C6 + 239 * C8 + 236 * C10 + 233 * C12 + 230 * C14 + 227 * C16 + 224 * C18 + 221 * C20 + 218 * C22 + 215 * C24 + 212 * C26 + 209 * C28 + 206 * C30 + 203 * C32 + 200 * C34 + 197 * C36 + 194 * C38 + 191 * C40 + 188 * C42 + 185 * C44 + 182 * C46 + 179 * C48 + 176 * C50 + 173 * C52 + 170 * C54 + 167 * C56 + 164 * C58 + 161 * C60 + 158 * C62 + 155 * C64 + 152 * C66 + 149 * C68 + 146 * C70 + 143 * C72 + 140 * C74 + 137 * C76 + 134 * C78 + 131 * C80 + 128 * C82 + 125 * C84 + 122 * C86 + 119 * C88 + 116 * C90 + 113 * C92 + 110 * C94 + 107 * C96 + 104 * C98 + 101 * C100 + 98 * C102 + 95 * C104 + 92 * C106 + 89 * C108 + 86 * C110 + 83 * C112 + 80 * C114 + 77 * C116 + 74 * C118 + 71 * C120 + 68 * C122 + 65 * C124 + 62 * C126 + 59 * C128 + 56 * C130 + 53 * C132 + 50 * C134 + 47 * C136 + 44 * C138 + 41 * C140 + 38 * C142 + 35 * C144 + 32 * C146 + 29 * C148 + 26 * C150 + 23 * C152 + 20 * C154 + 17 * C156 + 14 * C158 + 11 * C160 + 8 * C162 + 5 * C164 + 2 * C166 - C168 - 4 * C170 - 7 * C172 - 10 * C174 - 13 * C176 - 16 * C178 - 19 * C180 - 22 * C182 - 25 * C184 - 28 * C186 - 31 * C188 - 34 * C190 - 37 * C192 - 40 * C194 - 43 * C196 - 46 * C198 - 49 * C200 - 52 * C202 - 55 * C204 - 58 * C206 - 61 * C208 - 64 * C210 - 67 * C212 - 70 * C214 - 73 * C216 - 76 * C218 - 79 * C220 - 82 * C222 - 85 * C224 - 88 * C226 - 91 * C228 - 94 * C230 - 97 * C232 - 100 * C234 - 103 * C236 - 106 * C238 - 109 * C240 - 112 * C242 - 115 * C244 - 118 * C246 - 121 * C248 - 124 * C250) / 8001

Using Linear Regression vs Classical Peaks/Valleys for Divergence Analysis



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
thomasjrmm
Posted : Wednesday, January 25, 2017 12:56:08 PM
Registered User
Joined: 3/26/2005
Posts: 63

Thank you Bruce for your work.

Mart Thomas

Bruce_L
Posted : Wednesday, January 25, 2017 1:12:21 PM


Worden Trainer

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

You're welcome.



-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.