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 |

Distance from Linear Regression LIne Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
nabanco98
Posted : Tuesday, November 18, 2014 8:27:31 PM
Registered User
Joined: 10/25/2008
Posts: 218

Hi Bruce,

 

Is it possible in TC2000 to create a custom PCF indicator (or an easier method) which shows the percent distance current close is from the 130 period linear regression?  My suspition is this is a long pcf so if you have another idea to display/scan for the information please let me know.

Thank you

Bruce_L
Posted : Wednesday, November 19, 2014 10:41:20 AM


Worden Trainer

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

Please try the following Indicator Formula.

100 * (C / (AVGC130 + 64.5 * (64.5 * C + 63.5 * C1 + 62.5 * C2 + 61.5 * C3 + 60.5 * C4 + 59.5 * C5 + 58.5 * C6 + 57.5 * C7 + 56.5 * C8 + 55.5 * C9 + 54.5 * C10 + 53.5 * C11 + 52.5 * C12 + 51.5 * C13 + 50.5 * C14 + 49.5 * C15 + 48.5 * C16 + 47.5 * C17 + 46.5 * C18 + 45.5 * C19 + 44.5 * C20 + 43.5 * C21 + 42.5 * C22 + 41.5 * C23 + 40.5 * C24 + 39.5 * C25 + 38.5 * C26 + 37.5 * C27 + 36.5 * C28 + 35.5 * C29 + 34.5 * C30 + 33.5 * C31 + 32.5 * C32 + 31.5 * C33 + 30.5 * C34 + 29.5 * C35 + 28.5 * C36 + 27.5 * C37 + 26.5 * C38 + 25.5 * C39 + 24.5 * C40 + 23.5 * C41 + 22.5 * C42 + 21.5 * C43 + 20.5 * C44 + 19.5 * C45 + 18.5 * C46 + 17.5 * C47 + 16.5 * C48 + 15.5 * C49 + 14.5 * C50 + 13.5 * C51 + 12.5 * C52 + 11.5 * C53 + 10.5 * C54 + 9.5 * C55 + 8.5 * C56 + 7.5 * C57 + 6.5 * C58 + 5.5 * C59 + 4.5 * C60 + 3.5 * C61 + 2.5 * C62 + 1.5 * C63 + 0.5 * C64 - 0.5 * C65 - 1.5 * C66 - 2.5 * C67 - 3.5 * C68 - 4.5 * C69 - 5.5 * C70 - 6.5 * C71 - 7.5 * C72 - 8.5 * C73 - 9.5 * C74 - 10.5 * C75 - 11.5 * C76 - 12.5 * C77 - 13.5 * C78 - 14.5 * C79 - 15.5 * C80 - 16.5 * C81 - 17.5 * C82 - 18.5 * C83 - 19.5 * C84 - 20.5 * C85 - 21.5 * C86 - 22.5 * C87 - 23.5 * C88 - 24.5 * C89 - 25.5 * C90 - 26.5 * C91 - 27.5 * C92 - 28.5 * C93 - 29.5 * C94 - 30.5 * C95 - 31.5 * C96 - 32.5 * C97 - 33.5 * C98 - 34.5 * C99 - 35.5 * C100 - 36.5 * C101 - 37.5 * C102 - 38.5 * C103 - 39.5 * C104 - 40.5 * C105 - 41.5 * C106 - 42.5 * C107 - 43.5 * C108 - 44.5 * C109 - 45.5 * C110 - 46.5 * C111 - 47.5 * C112 - 48.5 * C113 - 49.5 * C114 - 50.5 * C115 - 51.5 * C116 - 52.5 * C117 - 53.5 * C118 - 54.5 * C119 - 55.5 * C120 - 56.5 * C121 - 57.5 * C122 - 58.5 * C123 - 59.5 * C124 - 60.5 * C125 - 61.5 * C126 - 62.5 * C127 - 63.5 * C128 - 64.5 * C129) / 183072.5) - 1)

Using Linear Regression vs Classical Peaks/Valleys for Divergence Analysis



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
nabanco98
Posted : Wednesday, November 19, 2014 7:50:31 PM
Registered User
Joined: 10/25/2008
Posts: 218

Thank you sir

Bruce_L
Posted : Thursday, November 20, 2014 9:58:42 AM


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.