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 |

10 ma above 35 ma Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Munir_Abdalnabi
Posted : Friday, March 12, 2010 1:58:21 PM
Registered User
Joined: 5/18/2009
Posts: 3

How would I write PCF for 10 ma( simple and expenential ) above 35 ma.Also, how would I write another PCF for increasing distance between 10 ma and 35 ma. 

Thanks.
Bruce_L
Posted : Friday, March 12, 2010 2:05:23 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Welcome to the forums. A very good foundation for learning how to use TeleChart can be gained by reviewing the following:

If you are new to TeleChart READ THIS FIRST!

SMA10 above SMA35:

AVGC10 > AVGC35

EMA10 above EMA35:

XAVGC10 > XAVGC35

SMA10 above EMA35:

AVGC10 > XAVGC35

EMA10 above SMA35:

XAVGC10 > AVGC35

There are actually lots more possibilities if we start having both Simple and Exponential versions of one or both Moving Averages. I'm going to use Simple Moving Averages for the increasing distance formula, but you can convert a Simple Moving Average to an Exponential Moving Average by putting an X in front of it.

ABS(AVGC10 - AVGC35) > ABS(AVGC10.1 - AVGC35.1)

You may wish to review the following:

How to create a Personal Criteria Forumula (PCF)
Moving Average PCF Templates
Things to check if your moving averages don't "seem right" or "seem to match"
PCF Formula Descriptions

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Munir_Abdalnabi
Posted : Monday, May 12, 2014 5:48:15 PM
Registered User
Joined: 5/18/2009
Posts: 3

Greeting Bruce,

Could you please write me a PCF for closing price that is within 1% to 5% of its 50 SMA.

 

Thanks

Bruce_L
Posted : Tuesday, May 13, 2014 12:46:14 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

A Condition Formula for price being within 1% of its 50 SMA can be written as:

ABS(C / AVGC50 - 1) <= .01

A Condition Formula for price being within 5 of its 50 SMA can be written as:

ABS(C / AVGC50 - 1) <= .05

A Condition Formula for price being from 1% to 5% above its 50 SMA can be written as:

1.01 * AVGC50 <= C AND C <= 1.05 * AVGC50

A Condition Formula for price being from 1% to 5% below its 50 SMA can be written as:

.95 * AVGC50 <= C AND C <= .99 * AVGC50



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