Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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!
|
|
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
|
|
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!
|
|
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
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
Glad to hear it.
- Craig Here to Help!
|
|
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.
|
|
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!
|
|
Guest-1 |