m1, m2
etc. refer to a particular dataset added to the chart.n
is a float value.period
is an integer value defining the number of trailing data-points considered by the function, applied to the data resolution specified (i.e. a simple moving average with period 30 will consider 30-days for daily resolution data, and 30-weeks for weekly resolution data).since
is a timestamp in format "YYYY-MM-DD HH:mm:ss"
(quotations required in syntax). Timestamps can be shortened from left to right, for example "2010"
will resolve from 01-Jan-2010 onwards, and "2010-06"
will resolve from 01-June-2010 onwards.m1
) may be replaced by a function to be evaluated, for example sma(m1, 7)
.period
resolution is defined by the largest resolution of the timeseries being compared.10.55
sma(m1,period)
ema(m1,period)
median(m1,period)
sum(m1,period)
std(m1,period)
cumsum(m1)
orcumsum(m1,since)
cummean(m1)
orcummean(m1,since)
cumstd(m1)
orcumstd(m1,since)
percent_change(m1,period)
percent_change
replaced the original returns
function.diff(m1,period)
abs(m1)
pow(m1,n)
log(m1)
rsi(m1,period)
range(m1)
range(m1,start?,end?)
min(m1, m2, ..., n)
max(m1, m2, ..., n)
shift(m1, period)