sub
Subtraction operator
sub(a, b)
Parameters
| Name | Type | Description |
|---|---|---|
a |
field | First operand (minuend) |
b |
field | Second operand (subtrahend) |
Formula
result = a - b
Examples
// gap-down size (previous close minus today's close)
sub(close[1], close) > 2;
Returns
float
Notes
Internally used by compiler for - operator