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 |

Price and Volume in PCFs Topic Rating:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Bruce_L
Posted : Wednesday, March 12, 2014 2:25:12 PM


Worden Trainer

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

The most basic indicators in TC2000 are for price and volume. Everything else in the Personal Criteria Formula flow from price and volume. The syntax for price and volume is also the simplest in the PCF Language being represented by a single letter each for the open, high, low, close and volume.

The syntax for the open of a price bar is:

O

The syntax for the high of a price bar is:

H

The syntax for the low of a price bar is:

L

The syntax for the close of a price bar is:

C

And the syntax for the volume of an individual bar is:

V

When used on its own, this syntax represents either the open, high, low, close or volume of the current bar.

This syntax only accepts a single parameter for the number of bars ago as an argument.

O5

Is the open of the price bar 5 bars ago.

H3

Is the high of the price bar 3 bars ago.

The count starts at 0 for the current bar, so instead of using L for the the low of the current bar we could use.

L0

And in a daily time frame, the following would be the close of yesterday.

C1

You may have noticed the frequent reference to bars above instead of days. This is because the syntax and calculations in the Personal Criteria Formula Language are always based on bars which could be for any time frame.

You can use the Time Frame drop-down menu to set the default time frame of an Indicator (PCF) Formula or Condition (PCF) Formula when you are creating or editing it, but the time frame used for the PCF is actually based on the context of where the PCF is being used.

So if you are using the formula as part of a Custom PCF Indicator being plotted on the chart, it would use the time frame of the chart. If you are using the PCF as a WatchList Column or EasyScan Condition, you can set the time frame there to something besides the default you set up for formula when you created it.

Back to Personal Criteria Formulas.



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