pow
Power operator
pow(a, b)
Parameters
| Name | Type | Description |
|---|---|---|
a |
field | Base |
b |
field | Exponent |
Formula
result = POWER(a, b) = a^b
Examples
// squared distance from the 20-day mean
pow(close - sma(close, 20), 2) > 4;
Returns
float