The following indicators are all implemented natively within Naxbot R for maximum performance.

This page will be regularly updated with new releases of Naxbot R.
crossover(a: Array<number>, b: Array<number>) -> Array<bool>

Will return
true
in places where
a
crosses over
b
. "Crossover" means:
a[n] > b[n] && a[n-1] < b[n-1]
.
a
and
b
must be of the same length.
crossunder(a: Array<number>, b: Array<number>) -> Array<bool>

Will return
true
in places where
a
crosses under
b
. "Crossunder" means:
a[n] < b[n] && a[n-1] > b[n-1]
.
a
and
b
must be of the same length.
pad(a: Array<number>, n: number, [b]: Array<number>) -> Array<number>

Will "pad" the elements of
a
, by shifting them
n
places to the right. Optionally takes in a parameter
b
that will be used to fill in the blank elements at the start of the array (will be filled in with zeroes otherwise).

If
b
is set, it must contain at least
n
elements.

If
n
is negative, elements will be shifted to the left instead.

Example:
local a = {1, 2, 3, 4, 5, 6};
local padded = pad(a, 2);
local custom_padded = pad(a, 2, {8, 9});
local leftpadded = pad(a, -2);
local custom_leftpadded = pad(a, -2, {8, 9})
ema(a: Array<number>, n: number) -> Array<number>

Returns the exponential moving average of
a
over length
n
wma(a: Array<number>, n: number) -> Array<number>

Returns the weighted moving average of
a
over length
n
sma(a: Array<number>, n: number) -> Array<number>

Returns the simple moving average of
a
over length
n
rma(a: Array<number>, n: number) -> Array<number>

Returns the rolling moving average of
a
over length
n
hullma(a: Array<number>, n: number) -> Array<number>

Returns the hull moving average of
a
over length
n
bb_upper(a: Array<number>, n: number, m: number) -> Array<number>

Returns the upper bollinger band of
a
over length
n
with multiplier
m
bb_lower(a: Array<number>, n: number, m: number) -> Array<number>

Returns the lower bollinger band of
a
over length
n
with multiplier
m
lowest(a: Array<number>, n: number) -> Array<number>

Returns the lowest value of
a
over length
n
highest(a: Array<number>, n: number) -> Array<number>

Returns the highest value of
a
over length
n
stdev(a: Array<number>, n: number) -> Array<number>

Returns the standard deviation of
a
over length
n
ehlers_super_smoother(a: Array<number>, n: number) -> Array<number>

Smooths the values of
a
over length
n
rsi(a: Array<number>, n: number) -> Array<number>

Returns the relative strength index of
a
over length
n
ln(a: Array<number>) -> Array<number>

Returns the natural logarithm of
a
nz(a: Array<number>) -> Array<number>

Replaces
NaN
values in
a
with the number
0
avg(a: Array<Array<number>>) -> Array<number>

Returns the average of all given arrays (element-wise)

Example usage:
local average = avg({a, b, c});
stoch(a: Array<number>, high: Array<number>, low: Array<number>, n: Array<number>) -> Array<number>

Stochastic, calculated using the formula of
100 * (a - lowest(low, n)) / (highest(high, n) - lowest(low, n))