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 |

Average daily range PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
lordnel
Posted : Thursday, July 9, 2009 1:49:41 PM
Registered User
Joined: 3/30/2008
Posts: 97

What would be the PCF to determine the daily difference between the high and low of each succeeding day, which I would show in the bottom pane.   And then to add a separate moving average of that ongoing daily range.   This is different from the ATR... simply high of the day, minus the low of the day for each day, and then the MA of that.  

Hopefully I communicated that clearly!

Bruce_L
Posted : Thursday, July 9, 2009 1:57:27 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The difference between the High and Low of a Bar can be written as:

H - L

The Average of this would depend on the Moving Average used. For example, a 5-Period Simple Moving Average of Range could be written as:

AVGH5 - AVGL5

While a 10-Period Exponential Moving Average of Range could be written as:

XAVGH5 - XAVGL5

If what you are doing is a Plot, you may want to just Plot the Range as a Custom Indicator and then add a Moving Average to that as a Child Indicator.

You may wish to review the following:

Plotting Custom Indicators with Examples
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
lordnel
Posted : Thursday, July 9, 2009 3:59:38 PM
Registered User
Joined: 3/30/2008
Posts: 97
Thanks, Bruce, works like a charm.  :)
Bruce_L
Posted : Thursday, July 9, 2009 4:01:09 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dannyegg
Posted : Tuesday, July 14, 2009 11:04:35 PM
Registered User
Joined: 7/14/2009
Posts: 9
Hello, i would like to know how add criteria for average volume above 1million for easyscan?
Bruce_L
Posted : Wednesday, July 15, 2009 9:52:19 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
dannyegg,
One option would be to just use one of the following built in System Criteria as an EasyScan Condition with the EasyScan Rangefinder set to Value: 10000 to Max.

Definitions of all built in scanning and sorting criteria
Using EasyScan to find stocks that meet your own criteria

Volume 5-Day - Average number of shares traded over the last five market days. Value given in 100s.

Volume 90-Day - Average number of shares traded over the last 90 market days. Value given in 100s.

Another option would be to create a Boolean (True or False) Personal Criteria Formula and use it as an EasyScan Condition. for example, the following Personal Criteria Formula would check for the 21-Period Simple Moving Average of Volume to be greater than a million shares (Volume in TeleChart is generally reported in blocks of 100 shares).

How to create a Personal Criteria Forumula (PCF)

AVGV21 > 10000

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dannyegg
Posted : Wednesday, July 15, 2009 11:27:24 AM
Registered User
Joined: 7/14/2009
Posts: 9
thanks Bruce!
Bruce_L
Posted : Wednesday, July 15, 2009 11:29:47 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
dannyegg,
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.