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 |

PCF for Moving LR30 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
yvberj1
Posted : Thursday, December 29, 2005 8:54:24 AM
Registered User
Joined: 10/7/2004
Posts: 14
I would like to see about creating a PCF as follows.

Price crossing the Moving LR30. One for up and one for down. The price should cross the LR30 and the next one or two days stay either above or below the line.

Can you help me?
Thanks,
yvberj1
Bruce_L
Posted : Thursday, December 29, 2005 9:28:08 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Please try the following:

Crossing Up:

C > AVGC30 + 14.5 * (14.5 * C + 13.5 * C1 + 12.5 * C2 + 11.5 * C3 + 10.5 * C4 + 9.5 * C5 + 8.5 * C6 + 7.5 * C7 + 6.5 * C8 + 5.5 * C9 + 4.5 * C10 + 3.5 * C11 + 2.5 * C12 + 1.5 * C13 + 0.5 * C14 - 0.5 * C15 - 1.5 * C16 - 2.5 * C17 - 3.5 * C18 - 4.5 * C19 - 5.5 * C20 - 6.5 * C21 - 7.5 * C22 - 8.5 * C23 - 9.5 * C24 - 10.5 * C25 - 11.5 * C26 - 12.5 * C27 - 13.5 * C28 - 14.5 * C29) / 2247.5 AND C1 > AVGC30.1 + 14.5 * (14.5 * C1 + 13.5 * C2 + 12.5 * C3 + 11.5 * C4 + 10.5 * C5 + 9.5 * C6 + 8.5 * C7 + 7.5 * C8 + 6.5 * C9 + 5.5 * C10 + 4.5 * C11 + 3.5 * C12 + 2.5 * C13 + 1.5 * C14 + 0.5 * C15 - 0.5 * C16 - 1.5 * C17 - 2.5 * C18 - 3.5 * C19 - 4.5 * C20 - 5.5 * C21 - 6.5 * C22 - 7.5 * C23 - 8.5 * C24 - 9.5 * C25 - 10.5 * C26 - 11.5 * C27 - 12.5 * C28 - 13.5 * C29 - 14.5 * C30) / 2247.5 AND C2 < AVGC30.2 + 14.5 * (14.5 * C2 + 13.5 * C3 + 12.5 * C4 + 11.5 * C5 + 10.5 * C6 + 9.5 * C7 + 8.5 * C8 + 7.5 * C9 + 6.5 * C10 + 5.5 * C11 + 4.5 * C12 + 3.5 * C13 + 2.5 * C14 + 1.5 * C15 + 0.5 * C16 - 0.5 * C17 - 1.5 * C18 - 2.5 * C19 - 3.5 * C20 - 4.5 * C21 - 5.5 * C22 - 6.5 * C23 - 7.5 * C24 - 8.5 * C25 - 9.5 * C26 - 10.5 * C27 - 11.5 * C28 - 12.5 * C29 - 13.5 * C30 - 14.5 * C31) / 2247.5

Crossing Down:

C < AVGC30 + 14.5 * (14.5 * C + 13.5 * C1 + 12.5 * C2 + 11.5 * C3 + 10.5 * C4 + 9.5 * C5 + 8.5 * C6 + 7.5 * C7 + 6.5 * C8 + 5.5 * C9 + 4.5 * C10 + 3.5 * C11 + 2.5 * C12 + 1.5 * C13 + 0.5 * C14 - 0.5 * C15 - 1.5 * C16 - 2.5 * C17 - 3.5 * C18 - 4.5 * C19 - 5.5 * C20 - 6.5 * C21 - 7.5 * C22 - 8.5 * C23 - 9.5 * C24 - 10.5 * C25 - 11.5 * C26 - 12.5 * C27 - 13.5 * C28 - 14.5 * C29) / 2247.5 AND C1 < AVGC30.1 + 14.5 * (14.5 * C1 + 13.5 * C2 + 12.5 * C3 + 11.5 * C4 + 10.5 * C5 + 9.5 * C6 + 8.5 * C7 + 7.5 * C8 + 6.5 * C9 + 5.5 * C10 + 4.5 * C11 + 3.5 * C12 + 2.5 * C13 + 1.5 * C14 + 0.5 * C15 - 0.5 * C16 - 1.5 * C17 - 2.5 * C18 - 3.5 * C19 - 4.5 * C20 - 5.5 * C21 - 6.5 * C22 - 7.5 * C23 - 8.5 * C24 - 9.5 * C25 - 10.5 * C26 - 11.5 * C27 - 12.5 * C28 - 13.5 * C29 - 14.5 * C30) / 2247.5 AND C2 > AVGC30.2 + 14.5 * (14.5 * C2 + 13.5 * C3 + 12.5 * C4 + 11.5 * C5 + 10.5 * C6 + 9.5 * C7 + 8.5 * C8 + 7.5 * C9 + 6.5 * C10 + 5.5 * C11 + 4.5 * C12 + 3.5 * C13 + 2.5 * C14 + 1.5 * C15 + 0.5 * C16 - 0.5 * C17 - 1.5 * C18 - 2.5 * C19 - 3.5 * C20 - 4.5 * C21 - 5.5 * C22 - 6.5 * C23 - 7.5 * C24 - 8.5 * C25 - 9.5 * C26 - 10.5 * C27 - 11.5 * C28 - 12.5 * C29 - 13.5 * C30 - 14.5 * C31) / 2247.5

The above formulas are based entirely on Closing Prices. You may wish to change the leading C in the Crossing Up formula to an L and the leading C in the Crossing Down formula to an H if that is what you mean by staying above or below the line. You may be interested in reviewing the following:

Using Linear Regression vs Classical Peaks/Valleys for Divergence Analysis
How to create a Personal Criteria Forumula (PCF)
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
yvberj1
Posted : Thursday, December 29, 2005 9:44:58 AM
Registered User
Joined: 10/7/2004
Posts: 14
Thanks Bruce. I'll try that.
yvberj1
Bruce_L
Posted : Thursday, December 29, 2005 9:47:06 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome. If it is not what you want, let me know how the results differ from your expectations and we'll work from there.

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