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.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)
returns(m1,period)
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)