Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 3/2/2005 Posts: 13
|
Hello , would like help in creating pcf for a moving average crossover 10 and 50 day. greatly appreciated
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The best way to do this in TC2000 version 12.4 is to add both of the moving averages to the chart. You can then click on one of the moving averages and select Create Scan Condition to create the condition.
Create Conditions from Your Chart (5:25)
But if you really want to create a Condition Formula, the following would check for the 10-period simple moving average crossing up through the 20-period simple moving average.
AVGC10 > AVGC50 AND AVGC10.1 <= AVGC50.1
You would use XAVGC instead of AVGC if you are interested in exponential moving averages.
XAVGC10 > XAVGC50 AND XAVGC10.1 <= XAVGC50.1
Reversing the > and < signs would check for crossing down instead of crossing up.
AVGC10 < AVGC50 AND AVGC10.1 >= AVGC50.1
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 3/2/2005 Posts: 13
|
Thanks Bruce, awesome
|
|
Registered User Joined: 8/13/2018 Posts: 24
|
Hi Bruce,
your formular works great. But now I´m confused.
I want to see the EMA 8 crosses the EMA 20, that works with this formula:
XAVGC8 < VAVGC20 and VAVGC8.1 >= XAVG20.1
But how is the criteria if I want that this criteria is under the SMA50? SMA 50 above and EMA8 should cross EMA20. Do you know what I mean?
Thank you in advance,
Steffen
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following.
AVGC50 > XAVGC8 AND XAVGC8 < XAVGC20 AND XAVGC8.1 >= XAVGC20.1
Although you can write this in a shorter way since you are using TC2000 v18.
AVGC50 > XAVGC8 AND XDOWN(XAVGC8, XAVGC20)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 8/13/2018 Posts: 24
|
Thanks a lot Bruce!
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |