Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Need some help with writing a PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
chopeevs
Posted : Saturday, June 17, 2017 5:52:42 PM
Gold Customer Gold Customer

Joined: 12/1/2004
Posts: 137

Hi Bruce,

On TC2000 Version 7, I'm trying to write a PCF which accomplishes the following:

On Zoom Level 6, ALL these conditions need to be TRUE

1. DJ-30 Relative Strength: Its exp 10 day MA line is crossing its exp 40 day MA line UPWARDS

AND

2. Mid--X Relative Strength: Its exp 10 day MA line is crossing its exp 40 day MA line UPWARDS

AND

3. COMPQX Relative Strength: Its exp 10 day MA line is crossing its exp 40 day MA line UPWARDS

Could you please help?

Thanks

Chopee

chopeevs
Posted : Saturday, June 17, 2017 5:55:53 PM
Gold Customer Gold Customer

Joined: 12/1/2004
Posts: 137

Bruce,

I forgot to clarify below that I'm looking at  weekly chart.

Thanks

Chopee

chopeevs
Posted : Saturday, June 17, 2017 5:56:57 PM
Gold Customer Gold Customer

Joined: 12/1/2004
Posts: 137

Bruce,

I forgot to clarify below that I'm looking at  a weekly chart.

Thanks

Chopee

======================================================================

Hi Bruce,

On TC2000 Version 7, I'm trying to write a PCF which accomplishes the following:

On Zoom Level 6, ALL these conditions need to be TRUE

1. DJ-30 Relative Strength: Its exp 10 day MA line is crossing its exp 40 day MA line UPWARDS

AND

2. Mid--X Relative Strength: Its exp 10 day MA line is crossing its exp 40 day MA line UPWARDS

AND

3. COMPQX Relative Strength: Its exp 10 day MA line is crossing its exp 40 day MA line UPWARDS

Could you please help?

Thanks

Chopee

[/QUOTE]

Bruce_L
Posted : Wednesday, June 21, 2017 10:51:13 AM


Worden Trainer

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

There isn't a way to do this in TC2000 v7.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Quiktdr
Posted : Tuesday, December 12, 2017 3:40:20 PM
Registered User
Joined: 10/7/2004
Posts: 794

How would I write a PCF where price is close to or near 

 {OS} AVGC13 - 1.5 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 - 13 * AVGC13 ^ 2) / 12)

and below and turning up

 

Thank you

Bruce_L
Posted : Tuesday, December 12, 2017 3:49:22 PM


Worden Trainer

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

The following checks for price to be going up during the current bar, going down during the previous bar, below the formula, and less than 1% away from the formula.

C > C1 AND C1 < C2 AND ABS(C / (AVGC13 - 1.5 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 - 13 * AVGC13 ^ 2) / 12)) - .995) < .005

The .995 is 0.5% below the formula is the center of the range being checked. The .005 represents 0.5%. So the formula is checking for price to be within 0.5% of 0.5% below the formula.

If you wanted it to be 2% instead of 1%, you would change the .995 to .99 and the .005 to .01.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Quiktdr
Posted : Tuesday, December 12, 2017 3:59:04 PM
Registered User
Joined: 10/7/2004
Posts: 794

Thank you very much!

Bruce_L
Posted : Tuesday, December 12, 2017 4:02:27 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.