Perform general operations on single values. Any parameter of a function can be a literal number, a single value, or a formula.
Abs - absolute value of a number
Bound - limit the range of a value
CDF - cumulative distribution function
Combined - evaluate stats expression using combined strategy results
Cosine - trigonometric cosine of a number of degrees
Cross - value1[1] < value2[1] and value1 > value2
DataType - causes value to be treated as a specific type (price vs. volume)
Date - get the numeric date for a given year, month, day
Days - number of calendar days between two dates
DebugEval - stop script execution and log the details of a strategy formula's evaluation when a condition is met
Exp - exponential function (e^x)
Extern - evaluate expression for a different stock/contract or strategy
ICDF - inverse cumulative distribution function
IF - conditional branch
IsNan - true if value can't be evaluated, false if it can
Item - refer to a Data or Library item by name
Log - natural logarithm of a number
Logit - inverse logistic function
Max - largest of a group of values
MaxN - Nth largest of a group of values
Min - smallest of a group of values
MinN - Nth smallest of a group of values
NoNan - evaluate an expression with no possibility of a nan (not a number) result
Random - random number from min to max rounded to step
Round - round value to nearest step
Select - multi-part conditional branch
Sign - sign of a number (1 or -1)
Sine - trigonometric sine of a number of degrees
Sqr - square root of a number
StratRef - find the number of a given strategy, and/or allow dynamic Extern strategy references
SymRef - find the number of a given symbol, and/or allow dynamic Extern symbol references
Tangent - trigonometric tangent of a number of degrees
TanH - hyberbolic tangent of a number
TargetPrice - calculate the value of tomorrow's close that would cause an indicator to reach a specific level
Text - literal text for scan output, with optional embedded numeric values
This - anchored term in multi-bar function
Top - top N digits of a number
|