TC2000 v17 Syntax (Alphabetical)
* > Multiply (Mathematical Operator)
/ > Divide or Ratio (Mathematical Operator)
+ > Add (Mathematical Operator)
++ > Add (Mathematical Operator)
 > Add (Mathematical Operator)
 > Subtract or Difference (Mathematical Operator)
+ > Subtract or Difference (Mathematical Operator)
+ > Subtract or Difference (Mathematical Operator)
\ > Integer Divide (Mathematical Operator)
^ > Power (Mathematical Operator)
> > Greater Than (Boolean relational operator)
>= > Greater Than or Equal To (Boolean relational operator)
< > Less Than (Boolean relational operator)
<= > Less Than or Equal To (Boolean relational operator)
= > Equal To (Boolean relational operator)
<> > Not Equal To (Boolean relational operator)
() > Parentheses will force an operation to perform earlier in the order.
(b) > returns 1 if b is true and 0 if b is false
ABS(b) > returns 1 if b is true and 0 if b is false
ABS(w) > Absolute Value  Calculates w. Returns a positive value of the same magnitude as w if w is negative. Otherwise returns w.
ADX(d, s, z) > Average Diretional Index (d = DI Period and s = Smooth Period)
ADXd.s.z > Average Directional Index (d = DI Period and s = Smooth Period)
AND > AND (Boolean Logical Operator)
ARCCOS(w) > Inverse cosine  returns the angle in radians whose cosine (adjacent / hypotenuse) is the specified number.
ARCCOSH(w) > Inverse hyperbolic cosine  returns LOG(w + SQR(w ^ 2  1))
ARCCOT(w) > Inverse cotangent  returns the angle in radians whose cotangent (adjacent / opposite) is the specified number.
ARCCOTH(w) > Inverse hyperbolic cotangent  returns LOG((w + 1) / (w  1)) / 2
ARCCSC(w) > Inverse cosecant  returns the angle in radians whose cosecant (hypotenuse / opposite) is the specified number.
ARCCSCH(w) > Inverse hyperbolic cosecant  returns LOG((1 + SQR(1 + w ^ 2)) / w)
ARCSEC(w) > Inverse secant  returns the angle in radians whose secant (hypotenuse / adjacent) is the specified number.
ARCSECH(w) > Inverse hyperbolic cosceant  returns LOG(1 + SQR(1 + SQR(1  w ^ 2)) / w)
ARCSIN(w) > Inverse sine  returns the angle in radians whose sine (opposite / hypotenuse) is the specified number.
ARCSINH(w) > Inverse hyperbolic sine  returns LOG(w + SQR(w ^ 2  1))
ARCTAN(w) > Inverse tangent  returns the angle in radians whose tangent (opposite / adjacent) is the specified number.
ARCTANH(w) > Inverse hyperbolic tangent  returns LOG((1 + w) / (1  w)) / 2
AROONDOWN(x, z) > Aroon Down portion of Aroon Indicator
AROONDOWNx.z > Aroon Down portion of Aroon Indicator
AROONUP(x, z) > Aroon Up portion of Aroon Indicator
AROONUPx.z > Aroon Up portion of Aroon Indicator
ATN(w) > Returns the angle in radians whose tangent (opposite / adjacent) is the specified number.
ATR(x, z) > Average True Range (uses simple moving average for smoothing)
ATRx.z > Average True Range (uses simple moving average for smoothing)
AVG(w, x) > Simple Moving Average  Returns the x period simple moving average of w.
AVGwx.z > Simple Moving Average of Price Component or Volume over a specified span of bars ending on the specified bar (w must be O, H, L, C or V).
BBBOT(d, x, z) > Bottom Bollinger Band (d = width in standard deviations +/ centerline)
BBBOTd.x.z > Bottom Bollinger Band (d = whole number width in standard deviations +/ centerline)
BBTOP(d, x, z) > Top Bollinger Band (d = width in standard deviations +/ centerline)
BBTOPd.x.z > Top Bollinger Band (d = whole number width in standard deviations +/ centerline)
BOP(y, z) > Balance of Power (Green>30,Red<30,Yellow30to–30)
BOPy.z > Balance of Power (Green>30,Red<30,Yellow30to–30)
C(z) > Close/Current Price of the specified bar
Cz > Close/Current Price of the specified bar
CCI(x, z) > Commodity Channel Index
CCIx.z > Commodity Channel Index
CLG(w) > Log Base 10
COS(w) > Returns the cosine (adjacent / hypotenuse) of the specified angle in radians.
COTH(w) > Hyperbolic cotangent  returns (e ^ w + e ^ w) / 2
CountTrue(b, x) > Will return the number of times Boolean formula was true in the period
CSC(w) > Returns the cosecant (hypotenuse / opposite) of the specified angle in radians.
CSCH(w) > Hyperbolic cosecant  returns 2 / (e ^ w  e ^ w)
DIMINUS(x, z) > Directional Movement DI component
DIMINUSx.z > Directional Movement DI component
DIPLUS(x, z) > Directional Movement DI+ component
DIPLUSx.z > Directional Movement DI+ component
EXP(w) > Natural Exponent
FAVG(w, x)  > Front Weighted Moving Average  Returns the x period front weighted moving average of w.
FAVGwx.z > Front Weighted Moving Average of Price Component or Volume over a specified span of bars ending on the specified bar (w must be O, H, L, C or V).
GREATEST(v, w) > Allows an unlimited number of arguments separated by commas and returns the argument with the highest value.
H(z) > High Price of the specified bar
Hz > High Price of the specified bar
HAVG(w, x)  > Hull Moving Average  Returns the x period Hull moving average of w.
HAVGwx.z > Hull Moving Average of Price Component or Volume with the specified period ending on the specified bar (w must be O, H, L, C or V).
IIF(b, t, f) > returns t if b is true and f if b is false
L(z) > Low Price of the specified bar
Lz > Low Price of the specified bar
LEAST(v, w) > Allows an unlimited number of arguments separated by commas and returns the argument with the lowest value.
LOG(w) > Natural Log
MACD(s, l, z) > Exponential Moving Average Convergence Divergence Oscillator (s = short period, l = long period)
MACDs.l.z > Exponential Moving Average Convergence Divergence Oscillator (s = short period, l = long period)
MAX(w, x) > Maximum  Returns the highest value of w over the most recent x bars.
MAXwx.z > Maximum Value of Price Component or Volume over a specified span of bars ending on the specified bar (w must be O, H, L, C or V).
MIN(w, x) > Minimum  Returns the lowest value of w over the most recent x bars.
MINwx.z > Minimum Value of Price Component or Volume over a specified span of bars ending on the specified bar (w must be O, H, L, C or V).
MOD > Modulo (Mathematical Operator)
MS(y, z) > MoneyStream (MS) and Cumulative MoneyStream (CMS) are the same
MSy.z > MoneyStream (MS) and Cumulative MoneyStream (CMS) are the same
NAND > NAND (Boolean Logical Operator) Not And
NOR > NOR (Boolean Logical Operator) Not Or
NOT(b) > NOT() Function (Boolean Logical Operator) (turns true to false and turns false to true)
O(z) > Open Price of the specified bar
Oz > Open Price of the specified bar
OBV(y, z) > On Balance Volume
OBVy.z > On Balance Volume
OR > OR (Boolean Logical Operator)
RSI(x, y, z) > Relative Strength Index (RSI)  not Wilder's Smoothed
RSIx.y.z > Relative Strength Index (RSI)  not Wilder's Smoothed
SEC(w) > Returns the secant (hypotenuse / adjacent) of the specified angle in radians.
SECH(w) > Hyperbolic secant  returns 2 / (e ^ w + e ^ w)
SGN(w) > Sign (1, 0 or 1)  Returns 1 if w is negative, 0 if w is zero and 1 if w is positive.
SIN(w) > Returns the sine (opposite / hypotenuse) of the specified angle in radians.
SinceTrue(b, x) > returns 1 if Boolean Formula was not true in period, or bars since it was true, 0 being the current bar, and period1 the max it will return
SINH(w) > Hyperbolic sine  returns (e ^ w  e ^ w) / 2
SQR(w) > Square Root
STDDEV(x, z) > Standard Deviation
STDDEVx.z > Standard Deviation
STOC(x, y, z) > Simple Stochastic
STOCx.y.z > Simple Stochastic
SUM(w, x)  > Sum  Adds together the value of w over the most recent x bars.
TAN(w) > Returns the tangent (opposite / adjacent) of the specified angle in radians.
TANH(w) > Hyperbolic tangent  returns (e ^ w  e ^ w) / 2
TrueInRow(b, x) > Will return a value between 0 and period that is how many times the Boolean formula was true in a row
TSV(y, z) > Time Segmented Volume
TSVy.z > Time Segmented Volume
V(z) > Volume of the specified bar
Vz > Volume of the specified bar
WRSI(x, z) > Wilder's Relative Strength Index (RSI)  Wilder's Smoothed
WRSIx.z > Wilder's Relative Strength Index (RSI)  Wilder's Smoothed
WSTOC(x, y, z) > Worden Stochastic
WSTOCx.y.z > Worden Stochastic
XAVG(w, x) > Exponential Moving Average Returns the x period exponential moving average of w.
XAVGwx.z > Exponential Moving Average of Price Component or Volume with the specified period ending on the specified bar (w must be O, H, L, C or V).
XDOWN(v, w, x) > Returns true when v is greater than w at x bars ago and v is less than or equal to w now. x defaults to 1 if not supplied.
XNOR > XNOR (Boolean Logical Operator) Not Exclusive Or
XOR > XOR (Boolean Logical Operator) Exclusive Or
XUP(v, w, x) > Returns true when v is less than w at x bars ago and v is greater than or equal to w now. x defaults to 1 if not supplied.
The first numeric parameter of in indicator is not separated from the indicator. The numeric parameters in indicators are separated from each other with periods.
Functions have the arguments inside parentheses. The arguments in functions are separated by commas.
Where b can be any formula which returns a true or false result
Where f is a formula returning a numeric result
Where t is a formula returning a numeric result
Where v can be any formula which returns a numeric value
Where w can be any formula which returns a numeric value
Where x is the Period of the Indicator
Where y is a the Period of an additional Simple Moving Average
Where z is the number of Bars Ago. z can also be a date. May 4, 2015 would be (single quotes required): '05/04/2015'
Related Topics
Bruce Personal Criteria Formulas TC2000 Support Articles
