| | |
|
Constants | |
|
current_bar_id |
|
|
current_ticker_id |
|
|
is_daily |
|
|
is_dwm |
|
|
is_intraday |
|
|
is_intrahour |
|
|
is_monthly |
|
|
is_weekly |
|
|
resolution |
|
|
runtime_version |
|
|
close |
|
|
close_time |
|
|
day |
|
|
high |
|
|
hl2 |
|
|
hlc3 |
|
|
hlcc4 |
|
|
hml |
|
|
hour |
|
|
low |
|
|
minute |
|
|
month |
|
|
ohlc4 |
|
|
open |
|
|
open_time |
|
|
second |
|
|
tr |
|
|
volume |
|
|
week_day |
|
|
year |
|
| | |
|
Enums | |
|
advice |
|
|
input_type |
|
|
na_mode |
|
|
plot_style |
|
|
shape_location |
|
|
shape_size |
|
|
shape_style |
|
| | |
|
Functions (averages) | |
|
alma(series, period, offset, sigma) |
|
|
ema(source, period) |
|
|
hma(series, period) |
|
|
rma(series, period) |
|
|
sma(series, period) |
|
|
ssma(series, period) |
|
|
tma(series, period) |
|
|
vidya(series, period) |
|
|
vwma(series, period) |
|
|
wma(series, period) |
|
| | |
|
Functions (input) | |
|
input([default], [name], [type], [options]) |
|
|
input([default], [name], [type], [min], [max], [step]) |
|
|
input_group { name="", description="", inputs... } |
|
| | |
|
Functions (math) | |
|
abs(x) |
|
|
acos(x) |
|
|
asin(x) |
|
|
atan (y, [x]) |
|
|
ceil(x) |
|
|
change(series, n=1) |
|
|
correlation(x,y,n) |
|
|
cos(x) |
|
|
deg(x) |
|
|
exp(x) |
|
|
floor(x) |
|
|
linreg(x, n, offset) |
|
|
log(value) |
|
|
mad(series, period) |
|
|
max(lvalue, rvalue) |
|
|
median(series, period) |
|
|
min(lvalue, rvalue) |
|
|
modf(value) |
|
|
percentile_linear_interpolation(source, period, percentage) |
|
|
percentile_nearest_rank(source, period, percentage) |
|
|
rad(value) |
|
|
round(value) |
|
|
sin(value) |
|
|
sqrt(value) |
|
|
stdev(series, period) |
|
|
sum(series, period) |
|
|
tan(value) |
|
| | |
|
Functions (misc) | |
|
advise(advice) |
|
|
assert(condition, [message]) |
|
|
bars_since(condition) |
|
|
bars_since_highest(series, n) |
|
|
bars_since_highest(n) |
|
|
bars_since_lowest(series, n) |
|
|
bars_since_lowest(n) |
|
|
conditional(x) |
|
|
date([timestamp]) |
|
|
drop_plot_value(name, bar_id) |
|
|
error(message) |
|
|
fixnan(series) |
|
|
get_name(series) |
|
|
get_value(x, [default]) |
|
|
highest(series, n) |
|
|
highest(n) |
|
|
iff(condition, then, else) |
|
|
index_range(start_index) |
|
|
instrument(name, short_name_or_overlay, description_or_overlay, icon_or_overlay, overlay) |
|
|
is_series(value) |
|
|
is_value(value) |
|
|
isnan(value) |
|
|
lower_prime(series) |
|
|
lowest(series, n) |
|
|
lowest(n) |
|
|
make_series([name]) |
|
|
na(value) |
|
|
nz(value, [default]) |
|
|
prime_bands(series) |
|
|
print(...) |
|
|
rgb(r, g, b) |
|
|
rgba(r, g, b, a) |
|
|
sar(minaf,step,maxaf) |
|
|
upper_prime(series) |
|
|
value_when(condition, series, occurrence) |
|
|
version(min_version) |
|
| | |
|
Functions (momentum) | |
|
roc(series, [period]) |
|
|
rsi(series, period) |
|
| | |
|
Functions (oscillator) | |
|
cci(series, period) |
|
|
cmo(series, period) |
|
|
stochastic(series, period) |
|
| | |
|
Functions (plot) | |
|
fill(first,second,[name,color]) |
|
|
fill_area(first, second, [name], [color]) |
|
|
hline(source,[name, color, line_width, offset, plot_style, show_label]) |
|
|
plot(series, [name], [color], [line_width], [offset], [plot_style], [na_handling_mode]) |
|
|
plot_candle(open, high, low, close, [name], [candle_color]) |
|
|
plot_shape(series, [name], [plot_shape_style], [plot_shape_size], [shape_color], [plot_shape_location], [offset], [text], [text_color]) |
|
|
rect(first, second, [name], [color], [width]) |
|
| | |
|
Functions (security) | |
|
get_ticker_id(ticker) |
|
|
security(ticker_id, resolution) |
|
| | |
|
Types | |
|
boolean |
|
|
color |
|
|
integer |
|
|
numeric |
|
|
series |
|
|
series[boolean] |
|
|
series[integer] |
|
|
series[numeric] |
|
|
string |
|