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 |

moving average crossover Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
wolff
Posted : Monday, October 13, 2014 3:27:41 PM
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

Bruce_L
Posted : Monday, October 13, 2014 3:44:28 PM


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
wolff
Posted : Tuesday, October 14, 2014 12:31:08 AM
Registered User
Joined: 3/2/2005
Posts: 13

Thanks Bruce, awesome

nitpicker
Posted : Tuesday, August 14, 2018 4:26:47 PM
Registered User
Joined: 8/13/2018
Posts: 24

Hi Bruce, 

your formular works great. But now I&acute;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

Bruce_L
Posted : Tuesday, August 14, 2018 4:45:28 PM


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
nitpicker
Posted : Wednesday, August 15, 2018 3:14:31 PM
Registered User
Joined: 8/13/2018
Posts: 24

Thanks a lot Bruce!

Bruce_L
Posted : Wednesday, August 15, 2018 3:19:19 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.