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

close of day 5 ma crossover question Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
davemc
Posted : Monday, December 12, 2005 4:19:02 PM
Registered User
Joined: 12/19/2004
Posts: 17
is there a way to write a pcf to determine a crossover of 5 mas with the last crossover occuring that trading day?

I have this pcf:
AVGC3 > AVGC5 AND AVGC5 > AVGC8 AND AVGC8 > AVGC10 AND AVGC10 > AVGC12 AND AVGC12 > AVGC15

which shows the moving averages above each other, but I am looking to set up an entry point where the 3 day moving average has crossed over the 5 day ma by the close of the trading day while the 8, 10, 12 and 15 day mas are all above each other. It is, in essence, the guppy trading system. Applying a visual sort of the the 3 day ma compared to the 5 day ma does not seem to give the results that I would like

davemc
Craig_S
Posted : Monday, December 12, 2005 6:50:58 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
Assuming I understand what you are saying, try this:

AVGC3 > AVGC5 AND AVGC5 > AVGC8 AND AVGC8 > AVGC10 AND AVGC10 > AVGC12 AND AVGC12 > AVGC15 AND AVGC3.1<AVGC5.1

- Craig
Here to Help!
davemc
Posted : Monday, December 12, 2005 7:59:39 PM
Registered User
Joined: 12/19/2004
Posts: 17
This is much closer to what I want. It seems to catch the crossover about two days back, in general, but that is fine, at least it demonstrates a possible devloping trend.

Thanks for your help, Worden Bros. consistently has fast and knowledgeable replies to my questions,

davemc
Craig_S
Posted : Monday, December 12, 2005 11:37:47 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
Something is wrong if you are not seeing the crossover today.

Please go to this checklist to confirm your PCFs are updated correctly and your averages are plotted correctly.

Things to check if your moving averages don't "seem right" or "seem to match"

I don't want you making decisions with incorrectly plotted averages so please check this list out.

- Craig
Here to Help!
davemc
Posted : Tuesday, December 20, 2005 7:10:53 PM
Registered User
Joined: 12/19/2004
Posts: 17
After reviewing the link in your last post, I discovered that the pcf was set to check simple moving averages, and I needed it to check exponential mas. It now seems to be working correctly.

Thanks for the help!
davemc
Craig_S
Posted : Tuesday, December 20, 2005 7:44:51 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
Glad to hear it.

- Craig
Here to Help!
alindsley
Posted : Sunday, January 1, 2006 4:16:47 PM

Registered User
Joined: 2/28/2005
Posts: 825
I am also interested in the Guppy Scan mentioned above, but being new to TC & not having code writing knowledge as yet, do not have the expertize to change your code. Could you please post that so I could incorporate it into a pcf or easy scan please.
Craig_S
Posted : Sunday, January 1, 2006 8:50:03 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
I give the PCF above.

This video will teach you how to create a PCF:

How to create a Personal Criteria Forumula (PCF)

This video will teach you how to create an EasyScan:

Using EasyScan to find stocks that meet your own criteria

Once you create the PCF I have above, you can add it to any EasyScan.

- Craig
Here to Help!
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.