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 combining daily and weekly period Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
kostya1
Posted : Tuesday, December 5, 2006 3:27:36 PM
Registered User
Joined: 8/25/2006
Posts: 12
Hi,
Is there any way to write a PCF to the following:

10 bar daily MA > 30 bar daily MA
AND
10 bar weekly MA > 30 bar weekly MA

Thanks,
Siya
Naresh
Posted : Tuesday, December 5, 2006 5:20:16 PM
Registered User
Joined: 10/23/2004
Posts: 251
Try This:
i will assume you are using a SIMPLE MA

1)10 bar daily MA > 30 bar daily MA

AVGC10 > AVGC30


2)10 bar weekly MA > 30 bar weekly MA

(C0 + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10 > (C0 + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55 + C60 + C65 + C70 + C75 + C80 + C85 + C90 + C95 + C100 + C105 + C110 + C115 + C120 + C125 + C130 + C135 + C140 + C145) / 30


Thanks
Naresh

kostya1
Posted : Wednesday, December 6, 2006 4:59:11 PM
Registered User
Joined: 8/25/2006
Posts: 12
Thanks, Naresh !! It works but a bit slow.
Bruce_L
Posted : Wednesday, December 6, 2006 6:08:51 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The second Personal Criteria Formula can be shortened somewhat to:

C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 > (C50 + C55 + C60 + C65 + C70 + C75 + C80 + C85 + C90 + C95 + C100 + C105 + C110 + C115 + C120 + C125 + C130 + C135 + C140 + C145) / 2

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