Skip to content
Algo Trade Analytics Docs
Search
Ctrl
K
Cancel
Select theme
Dark
Light
Auto
Getting Started
Introduction
Platform Overview
Quick Start Guide
Data Sources Integration
Webhook Data
Configuration & Auth
Payload Standard
Strategy Samples
Integration Guide
Broker Connection
Alpaca Setup
TradingView CSV
CSV Import Workflow
App Pages
Backtest vs Alerts
Overview
Quick Start
Data Scope
Strategy Properties
Backtesting Upload
Analysis Configuration
Results & Metrics
Comparison Grid
Price Chart
AI Insights
Troubleshooting
Alerts vs Fills
Overview
Quick Start
Scope & Matching
Visual Audit
Live Monitoring
Metrics & Analysis
Advanced Analytics
AI Insights
Troubleshooting
Pine Script Editor
Overview
Quick Start
Editor Workspace
AI Chat Panel
Context & Attachments
Code Validation
Diff Viewer
Credits & Models
Troubleshooting
Fills TradingView Export
Account Settings
Troubleshooting
Knowledge Base & FAQ
PineScript Developer Guide
Getting Started
Overview
Basic Syntax
Building Strategies
Change the border size of a box in TradingView Pine Script
Colouring the background of price bands and price bars in TradingView
Configure how TradingView strategies calculate order size
Do an extra TradingView strategy calculation after an order fills
Find out if a Pine Script string is uppercase text
Format times and dates with pattern letters in Pine Script
Get an open order's entry price in TradingView's Pine Script
Get the gross loss of a TradingView strategy in Pine Script
Find the mode of a TradingView Pine Script array
Get the number of closed trades from a Pine Script strategy
Get the TradingView chart's lowest value with Pine Script
Get the Volume-Weighted Average Price (VWAP) in Pine Script
Give price bars different colours with TradingView's Pine Script
How does a chart's time zone setting affect TradingView scripts?
How does margin affect Pine Script strategies in TradingView?
How many bars does a TradingView chart have?
How to add an element to the start of a Pine Script array?
How to code a time with date input in TradingView's Pine Script?
How to configure TradingView Pine Script strategies by hand?
How to create a transparent colour in TradingView?
How to exit trades with a stop-loss order in Pine Script?
How to exit unprofitable trades with a percentage-based stop loss in TradingView?
How to get an open order's entry time in TradingView Pine Script?
How to get the largest value from a Pine Script array?
How to get the price coordinates from a TradingView trend line?
How to get the profit factor of TradingView Pine Script strategies?
How to get the standard deviation from a TradingView Pine Script array?
How to highlight TradingView alert setups with text and shapes?
How to limit a number to a range of values in Pine Script?
How to make a colour input in TradingView's Pine Script?
How to make a pip-based input in TradingView's Pine Script?
How to make a tick-based input option in Pine Script?
How to open trades with limit orders in TradingView's Pine Script?
How to round to full hundreds (100s) in TradingView's Pine Script?
How to see if a value crossed over or under another in TradingView Pine?
How to shift a coloured TradingView background to the past or future?
How to size TradingView labels with a Pine Script input?
How to stop a TradingView strategy based on weekly loss?
How to use plot placeholders with TradingView's strategy alerts?
Introduction to TradingView's operators
Look if TradingView script runs on weekly time frame with Pine Script
Make a Pine Script input to select a TradingView instrument symbol
Overview: all instrument variables in TradingView's Pine Script
Program the SMA Crossover Pyramiding trading strategy in TradingView Pine
See if Pine Script string ends with substring (without case differences)
See if TradingView uses hourly time frame with Pine Script
Set TradingView label text with Pine Script code: here's how
Stop trading based on a maximum loss in TradingView
The Double Donchian Channel Breakout strategy coded for TradingView
Tip: TradingView backtests change when you calculate on every tick
TradingView Pine Script programming tutorials
TradingView's if/else statement: make code decisions between two options
TradingView's nested if statement: if inside another
Understand the two order phases of TradingView Pine strategy scripts
What's the difference between a TradingView script's filename and display name?
What settings do TradingView indicators and strategies share?
Why TradingView doesn't follow pyramiding settings when you use `strategy.order()`
PineScript API
Overview
Functions
Pine Script Functions
alert() - Pine Script Function
alertcondition() - Pine Script Function
array namespace
array.abs() - Pine Script Function
array.avg() - Pine Script Function
array.binary_search() - Pine Script Function
array.binary_search_leftmost() - Pine Script Function
array.binary_search_rightmost() - Pine Script Function
array.clear() - Pine Script Function
array.concat() - Pine Script Function
array.copy() - Pine Script Function
array.covariance() - Pine Script Function
array.every() - Pine Script Function
array.fill() - Pine Script Function
array.first() - Pine Script Function
array.from() - Pine Script Function
array.get() - Pine Script Function
array.includes() - Pine Script Function
array.indexof() - Pine Script Function
array.insert() - Pine Script Function
array.join() - Pine Script Function
array.last() - Pine Script Function
array.lastindexof() - Pine Script Function
array.max() - Pine Script Function
array.median() - Pine Script Function
array.min() - Pine Script Function
array.mode() - Pine Script Function
array.new_bool() - Pine Script Function
array.new_box() - Pine Script Function
array.new_color() - Pine Script Function
array.new_float() - Pine Script Function
array.new_int() - Pine Script Function
array.new_label() - Pine Script Function
array.new_line() - Pine Script Function
array.new_linefill() - Pine Script Function
array.new_string() - Pine Script Function
array.new_table() - Pine Script Function
array.new<type>() - Pine Script Function
array.percentile_linear_interpolation() - Pine Script Function
array.percentile_nearest_rank() - Pine Script Function
array.percentrank() - Pine Script Function
array.pop() - Pine Script Function
array.push() - Pine Script Function
array.range() - Pine Script Function
array.remove() - Pine Script Function
array.reverse() - Pine Script Function
array.set() - Pine Script Function
array.shift() - Pine Script Function
array.size() - Pine Script Function
array.slice() - Pine Script Function
array.some() - Pine Script Function
array.sort() - Pine Script Function
array.sort_indices() - Pine Script Function
array.standardize() - Pine Script Function
array.stdev() - Pine Script Function
array.sum() - Pine Script Function
array.unshift() - Pine Script Function
array.variance() - Pine Script Function
barcolor() - Pine Script Function
bgcolor() - Pine Script Function
bool() - Pine Script Function
box namespace
box.copy() - Pine Script Function
box.delete() - Pine Script Function
box.get_bottom() - Pine Script Function
box.get_left() - Pine Script Function
box.get_right() - Pine Script Function
box.get_top() - Pine Script Function
box.new() - Pine Script Function
box.set_bgcolor() - Pine Script Function
box.set_border_color() - Pine Script Function
box.set_border_style() - Pine Script Function
box.set_border_width() - Pine Script Function
box.set_bottom() - Pine Script Function
box.set_bottom_right_point() - Pine Script Function
box.set_extend() - Pine Script Function
box.set_left() - Pine Script Function
box.set_lefttop() - Pine Script Function
box.set_right() - Pine Script Function
box.set_rightbottom() - Pine Script Function
box.set_text() - Pine Script Function
box.set_text_color() - Pine Script Function
box.set_text_font_family() - Pine Script Function
box.set_text_formatting() - Pine Script Function
box.set_text_halign() - Pine Script Function
box.set_text_size() - Pine Script Function
box.set_text_valign() - Pine Script Function
box.set_text_wrap() - Pine Script Function
box.set_top() - Pine Script Function
box.set_top_left_point() - Pine Script Function
box.set_xloc() - Pine Script Function
chart namespace
chart.point.copy() - Pine Script Function
chart.point.from_index() - Pine Script Function
chart.point.from_time() - Pine Script Function
chart.point.new() - Pine Script Function
chart.point.now() - Pine Script Function
color namespace
color.b() - Pine Script Function
color.from_gradient() - Pine Script Function
color.g() - Pine Script Function
color.new() - Pine Script Function
color.r() - Pine Script Function
color.rgb() - Pine Script Function
color.t() - Pine Script Function
dayofmonth() - PineScript Function
dayofweek() - PineScript Function
fill() - Pine Script Function
fixnan() - PineScript Function
float() - Pine Script Function
hline() - Pine Script Function
hour() - Pine Script Function
indicator() - Pine Script Function
input() family - Pine Script
input.bool() - Pine Script Function
input.color() - Pine Script Function
input.enum() - Pine Script Function
input.float() - Pine Script Function
input.int() - Pine Script Function
input.price() - Pine Script Function
input.session() - Pine Script Function
input.source() - Pine Script Function
input.string() - Pine Script Function
input.symbol() - Pine Script Function
input.text_area() - Pine Script Function
input.time() - Pine Script Function
input.timeframe() - Pine Script Function
int() - Pine Script Function
label namespace
label.copy() - Pine Script Function
label.delete() - Pine Script Function
label.get_text() - Pine Script Function
label.get_x() - Pine Script Function
label.get_y() - Pine Script Function
label.new() - Pine Script Function
label.set_color() - Pine Script Function
label.set_point() - Pine Script Function
label.set_size() - Pine Script Function
label.set_style() - Pine Script Function
label.set_text() - Pine Script Function
label.set_text_font_family() - Pine Script Function
label.set_text_formatting() - Pine Script Function
label.set_textalign() - Pine Script Function
label.set_textcolor() - Pine Script Function
label.set_tooltip() - Pine Script Function
label.set_x() - Pine Script Function
label.set_xloc() - Pine Script Function
label.set_xy() - Pine Script Function
label.set_y() - Pine Script Function
label.set_yloc() - Pine Script Function
library() - Pine Script Function
line namespace
line.copy() - Pine Script Function
line.delete() - Pine Script Function
line.get_price() - Pine Script Function
line.get_x1() - Pine Script Function
line.get_x2() - Pine Script Function
line.get_y1() - Pine Script Function
line.get_y2() - Pine Script Function
line.new() - Pine Script Function
line.set_color() - Pine Script Function
line.set_extend() - Pine Script Function
line.set_first_point() - Pine Script Function
line.set_second_point() - Pine Script Function
line.set_style() - Pine Script Function
line.set_width() - Pine Script Function
line.set_x1() - Pine Script Function
line.set_x2() - Pine Script Function
line.set_xloc() - Pine Script Function
line.set_xy1() - Pine Script Function
line.set_xy2() - Pine Script Function
line.set_y1() - Pine Script Function
line.set_y2() - Pine Script Function
linefill namespace
linefill.delete() - Pine Script Function
linefill.get_line1() - Pine Script Function
linefill.get_line2() - Pine Script Function
linefill.new() - Pine Script Function
linefill.set_color() - Pine Script Function
log() - Pine Script Function
log.error() - Pine Script Function
log.info() - Pine Script Function
log.warning() - Pine Script Function
map() - Pine Script Function
map.clear() - Pine Script Function
map.contains() - Pine Script Function
map.copy() - Pine Script Function
map.get() - Pine Script Function
map.keys() - Pine Script Function
map.new<type,type>() - Pine Script Function
map.put() - Pine Script Function
map.put_all() - Pine Script Function
map.remove() - Pine Script Function
map.size() - Pine Script Function
map.values() - Pine Script Function
math namespace
math.abs() - Pine Script Function
math.acos() - Pine Script Function
math.asin() - Pine Script Function
math.atan() - Pine Script Function
math.avg() - Pine Script Function
math.ceil() - Pine Script Function
math.cos() - Pine Script Function
math.exp() - Pine Script Function
math.floor() - Pine Script Function
math.log() - Pine Script Function
math.log10() - Pine Script Function
math.max() - Pine Script Function
math.min() - Pine Script Function
math.pow() - Pine Script Function
math.random() - Pine Script Function
math.round() - Pine Script Function
math.round_to_mintick() - Pine Script Function
math.sign() - Pine Script Function
math.sin() - Pine Script Function
math.sqrt() - Pine Script Function
math.sum() - Pine Script Function
math.tan() - Pine Script Function
math.todegrees() - Pine Script Function
math.toradians() - Pine Script Function
matrix namespace
matrix.add_col() - Pine Script Function
matrix.add_row() - Pine Script Function
matrix.avg() - Pine Script Function
matrix.col() - Pine Script Function
matrix.columns() - Pine Script Function
matrix.concat() - Pine Script Function
matrix.copy() - Pine Script Function
matrix.det() - Pine Script Function
matrix.diff() - Pine Script Function
matrix.eigenvalues() - Pine Script Function
matrix.eigenvectors() - Pine Script Function
matrix.elements_count() - Pine Script Function
matrix.fill() - Pine Script Function
matrix.get() - Pine Script Function
matrix.inv() - Pine Script Function
matrix.is_antidiagonal() - Pine Script Function
matrix.is_antisymmetric() - Pine Script Function
matrix.is_binary() - Pine Script Function
matrix.is_diagonal() - Pine Script Function
matrix.is_identity() - Pine Script Function
matrix.is_square() - Pine Script Function
matrix.is_stochastic() - Pine Script Function
matrix.is_symmetric() - Pine Script Function
matrix.is_triangular() - Pine Script Function
matrix.is_zero() - Pine Script Function
matrix.kron() - Pine Script Function
matrix.max() - Pine Script Function
matrix.median() - Pine Script Function
matrix.min() - Pine Script Function
matrix.mode() - Pine Script Function
matrix.mult() - Pine Script Function
matrix.new<type>() - Pine Script Function
matrix.pinv() - Pine Script Function
matrix.pow() - Pine Script Function
matrix.rank() - Pine Script Function
matrix.remove_col() - Pine Script Function
matrix.remove_row() - Pine Script Function
matrix.reshape() - Pine Script Function
matrix.reverse() - Pine Script Function
matrix.row() - Pine Script Function
matrix.rows() - Pine Script Function
matrix.set() - Pine Script Function
matrix.sort() - Pine Script Function
matrix.submatrix() - Pine Script Function
matrix.sum() - Pine Script Function
matrix.swap_columns() - Pine Script Function
matrix.swap_rows() - Pine Script Function
matrix.trace() - Pine Script Function
matrix.transpose() - Pine Script Function
max_bars_back() - Pine Script Function
minute() - Pine Script Function
month() - Pine Script Function
na() - Pine Script Function
nz() - Pine Script Function
plot() - Pine Script Function
plotarrow() - Pine Script Function
plotbar() - Pine Script Function
plotcandle() - Pine Script Function
plotchar() - Pine Script Function
plotshape() - Pine Script Function
polyline namespace
polyline.delete() - Pine Script Function
polyline.new() - Pine Script Function
request namespace
request.currency_rate() - Pine Script Function
request.dividends() - Pine Script Function
request.earnings() - Pine Script Function
request.economic() - Pine Script Function
request.financial() - Pine Script Function
request.quandl() - Pine Script Function
request.security() - Pine Script Function
request.security_lower_tf() - Pine Script Function
request.seed() - Pine Script Function
request.splits() - Pine Script Function
runtime namespace
runtime.error() - Pine Script Function
second() - Pine Script Function
str namespace
str.contains() - Pine Script Function
str.endswith() - Pine Script Function
str.format() - Pine Script Function
str.format_time() - Pine Script Function
str.length() - Pine Script Function
str.lower() - Pine Script Function
str.match() - Pine Script Function
str.pos() - Pine Script Function
str.repeat() - Pine Script Function
str.replace() - Pine Script Function
str.replace_all() - Pine Script Function
str.split() - Pine Script Function
str.startswith() - Pine Script Function
str.substring() - Pine Script Function
str.tonumber() - Pine Script Function
str.tostring() - Pine Script Function
str.trim() - Pine Script Function
str.upper() - Pine Script Function
strategy() - Pine Script Function
strategy.cancel() - Pine Script Function
strategy.cancel_all() - Pine Script Function
strategy.close() - Pine Script Function
strategy.close_all() - Pine Script Function
strategy.closedtrades.commission() - Pine Script Function
strategy.closedtrades.entry_bar_index() - Pine Script Function
strategy.closedtrades.entry_comment() - Pine Script Function
strategy.closedtrades.entry_id() - Pine Script Function
strategy.closedtrades.entry_price() - Pine Script Function
strategy.closedtrades.entry_time() - Pine Script Function
strategy.closedtrades.exit_bar_index() - Pine Script Function
strategy.closedtrades.exit_comment() - Pine Script Function
strategy.closedtrades.exit_id() - Pine Script Function
strategy.closedtrades.exit_price() - Pine Script Function
strategy.closedtrades.exit_time() - Pine Script Function
strategy.closedtrades.max_drawdown() - Pine Script Function
strategy.closedtrades.max_drawdown_percent() - Pine Script Function
strategy.closedtrades.max_runup() - Pine Script Function
strategy.closedtrades.max_runup_percent() - Pine Script Function
strategy.closedtrades.profit() - Pine Script Function
strategy.closedtrades.profit_percent() - Pine Script Function
strategy.closedtrades.size() - Pine Script Function
strategy.convert_to_account() - Pine Script Function
strategy.convert_to_symbol() - Pine Script Function
strategy.default_entry_qty() - Pine Script Function
strategy.entry() - Pine Script Function
strategy.exit() - Pine Script Function
strategy.opentrades.commission() - Pine Script Function
strategy.opentrades.entry_bar_index() - Pine Script Function
strategy.opentrades.entry_comment() - Pine Script Function
strategy.opentrades.entry_id() - Pine Script Function
strategy.opentrades.entry_price() - Pine Script Function
strategy.opentrades.entry_time() - Pine Script Function
strategy.opentrades.max_drawdown() - Pine Script Function
strategy.opentrades.max_drawdown_percent() - Pine Script Function
strategy.opentrades.max_runup() - Pine Script Function
strategy.opentrades.max_runup_percent() - Pine Script Function
strategy.opentrades.profit() - Pine Script Function
strategy.opentrades.profit_percent() - Pine Script Function
strategy.opentrades.size() - Pine Script Function
strategy.order() - Pine Script Function
strategy.risk.allow_entry_in() - Pine Script Function
strategy.risk.max_cons_loss_days() - Pine Script Function
strategy.risk.max_drawdown() - Pine Script Function
strategy.risk.max_intraday_filled_orders() - Pine Script Function
strategy.risk.max_intraday_loss() - Pine Script Function
strategy.risk.max_position_size() - Pine Script Function
string() - Pine Script Function
syminfo namespace
syminfo.prefix() - Pine Script Function
syminfo.ticker() - Pine Script Function
ta namespace
ta.alma() - Pine Script Function
ta.atr() - Pine Script Function
ta.barssince() - Pine Script Function
ta.bb() - Pine Script Function
ta.bbw() - Pine Script Function
ta.cci() - Pine Script Function
ta.change() - Pine Script Function
ta.cmo() - Pine Script Function
ta.cog() - Pine Script Function
ta.correlation() - Pine Script Function
ta.cross() - Pine Script Function
ta.crossover() - Pine Script Function
ta.crossunder() - Pine Script Function
ta.cum() - Pine Script Function
ta.dev() - Pine Script Function
ta.dmi() - Pine Script Function
ta.ema() - Pine Script Function
ta.falling() - Pine Script Function
ta.highest() - Pine Script Function
ta.highestbars() - Pine Script Function
ta.hma() - Pine Script Function
ta.kc() - Pine Script Function
ta.kcw() - Pine Script Function
ta.linreg() - Pine Script Function
ta.lowest() - Pine Script Function
ta.lowestbars() - Pine Script Function
ta.macd() - Pine Script Function
ta.max() - Pine Script Function
ta.median() - Pine Script Function
ta.mfi() - Pine Script Function
ta.min() - Pine Script Function
ta.mode() - Pine Script Function
ta.mom() - Pine Script Function
ta.percentile_linear_interpolation() - Pine Script Function
ta.percentile_nearest_rank() - Pine Script Function
ta.percentrank() - Pine Script Function
ta.pivot_point_levels() - Pine Script Function
ta.pivothigh() - Pine Script Function
ta.pivotlow() - Pine Script Function
ta.range() - Pine Script Function
ta.rci() - Pine Script Function
ta.rising() - Pine Script Function
ta.rma() - Pine Script Function
ta.roc() - Pine Script Function
ta.rsi() - Pine Script Function
ta.sar() - Pine Script Function
ta.sma() - Pine Script Function
ta.stdev() - Pine Script Function
ta.stoch() - Pine Script Function
ta.supertrend() - Pine Script Function
ta.swma() - Pine Script Function
ta.tr() - Pine Script Function
ta.tsi() - Pine Script Function
ta.valuewhen() - Pine Script Function
ta.variance() - Pine Script Function
ta.vwap() - Pine Script Function
ta.vwma() - Pine Script Function
ta.wma() - Pine Script Function
ta.wpr() - Pine Script Function
table namespace
table.cell() - Pine Script Function
table.cell_set_bgcolor() - Pine Script Function
table.cell_set_height() - Pine Script Function
table.cell_set_text() - Pine Script Function
table.cell_set_text_color() - Pine Script Function
table.cell_set_text_font_family() - Pine Script Function
table.cell_set_text_formatting() - Pine Script Function
table.cell_set_text_halign() - Pine Script Function
table.cell_set_text_size() - Pine Script Function
table.cell_set_text_valign() - Pine Script Function
table.cell_set_tooltip() - Pine Script Function
table.cell_set_width() - Pine Script Function
table.clear() - Pine Script Function
table.delete() - Pine Script Function
table.merge_cells() - Pine Script Function
table.new() - Pine Script Function
table.set_bgcolor() - Pine Script Function
table.set_border_color() - Pine Script Function
table.set_border_width() - Pine Script Function
table.set_frame_color() - Pine Script Function
table.set_frame_width() - Pine Script Function
table.set_position() - Pine Script Function
ticker namespace
ticker.heikinashi() - Pine Script Function
ticker.inherit() - Pine Script Function
ticker.kagi() - Pine Script Function
ticker.linebreak() - Pine Script Function
ticker.modify() - Pine Script Function
ticker.new() - Pine Script Function
ticker.pointfigure() - Pine Script Function
ticker.renko() - Pine Script Function
ticker.standard() - Pine Script Function
time() - Pine Script Function
time_close() - Pine Script Function
timeframe namespace
timeframe.change() - Pine Script Function
timeframe.from_seconds() - Pine Script Function
timeframe.in_seconds() - Pine Script Function
timestamp() - Pine Script Function
weekofyear() - Pine Script Function
year() - Pine Script Function
Variables
Pine Script Variables
ask - PineScript Variable
bar_index - PineScript Variable
barstate - PineScript Variable
barstate.isconfirmed - Pine Script Variable
barstate.isfirst - Pine Script Variable
barstate.ishistory - Pine Script Variable
barstate.islast - Pine Script Variable
barstate.islastconfirmedhistory - Pine Script Variable
barstate.isnew - Pine Script Variable
barstate.isrealtime - Pine Script Variable
bid - PineScript Variable
box - Pine Script Variable
box.all - Pine Script Variable
chart - PineScript Variable
chart.bg_color - Pine Script Variable
chart.fg_color - Pine Script Variable
chart.is_heikinashi - Pine Script Variable
chart.is_kagi - Pine Script Variable
chart.is_linebreak - Pine Script Variable
chart.is_pnf - Pine Script Variable
chart.is_range - Pine Script Variable
chart.is_renko - Pine Script Variable
chart.is_standard - Pine Script Variable
chart.left_visible_bar_time - Pine Script Variable
chart.right_visible_bar_time - Pine Script Variable
close - PineScript Variable
dayofmonth - PineScript Variable
dayofweek - PineScript Variable
dividends - PineScript Variable
dividends.future_amount - Pine Script Variable
dividends.future_ex_date - Pine Script Variable
dividends.future_pay_date - Pine Script Variable
earnings - PineScript Variable
earnings.future_eps - Pine Script Variable
earnings.future_period_end_time - Pine Script Variable
earnings.future_revenue - Pine Script Variable
earnings.future_time - Pine Script Variable
high - PineScript Variable
hl2 - PineScript Variable
hlc3 - PineScript Variable
hlcc4 - PineScript Variable
hour - Pine Script Variable
label - Pine Script Variable
label.all - Pine Script Variable
last_bar_index - Pine Script Variable
last_bar_time - Pine Script Variable
line - Pine Script Variable
line.all - Pine Script Variable
linefill - Pine Script Variable
linefill.all - Pine Script Variable
low - PineScript Variable
minute - Pine Script Variable
month - Pine Script Variable
na - Pine Script Variable
ohlc4 - Pine Script Variable
open - PineScript Variable
polyline - Pine Script Variable
polyline.all - Pine Script Variable
second - Pine Script Variable
session - Pine Script Variable
session.isfirstbar - Pine Script Variable
session.isfirstbar_regular - Pine Script Variable
session.islastbar - Pine Script Variable
session.islastbar_regular - Pine Script Variable
session.ismarket - Pine Script Variable
session.ispostmarket - Pine Script Variable
session.ispremarket - Pine Script Variable
strategy - Pine Script Variable
strategy.account_currency - Pine Script Variable
strategy.avg_losing_trade - Pine Script Variable
strategy.avg_losing_trade_percent - Pine Script Variable
strategy.avg_trade - Pine Script Variable
strategy.avg_trade_percent - Pine Script Variable
strategy.avg_winning_trade - Pine Script Variable
strategy.avg_winning_trade_percent - Pine Script Variable
strategy.closedtrades.first_index - Pine Script Variable
strategy.equity - Pine Script Variable
strategy.eventrades - Pine Script Variable
strategy.grossloss - Pine Script Variable
strategy.grossloss_percent - Pine Script Variable
strategy.grossprofit - Pine Script Variable
strategy.grossprofit_percent - Pine Script Variable
strategy.initial_capital - Pine Script Variable
strategy.losstrades - Pine Script Variable
strategy.margin_liquidation_price - Pine Script Variable
strategy.max_contracts_held_all - Pine Script Variable
strategy.max_contracts_held_long - Pine Script Variable
strategy.max_contracts_held_short - Pine Script Variable
strategy.max_drawdown - Pine Script Variable
strategy.max_drawdown_percent - Pine Script Variable
strategy.max_runup - Pine Script Variable
strategy.max_runup_percent - Pine Script Variable
strategy.netprofit - Pine Script Variable
strategy.netprofit_percent - Pine Script Variable
strategy.openprofit - Pine Script Variable
strategy.openprofit_percent - Pine Script Variable
strategy.opentrades.capital_held - Pine Script Variable
strategy.position_avg_price - Pine Script Variable
strategy.position_entry_name - Pine Script Variable
strategy.position_size - Pine Script Variable
strategy.wintrades - Pine Script Variable
syminfo - Pine Script Variable
syminfo.basecurrency - Pine Script Variable
syminfo.country - Pine Script Variable
syminfo.currency - Pine Script Variable
syminfo.current_contract - Pine Script Variable
syminfo.description - Pine Script Variable
syminfo.employees - Pine Script Variable
syminfo.expiration_date - Pine Script Variable
syminfo.industry - Pine Script Variable
syminfo.main_tickerid - Pine Script Variable
syminfo.mincontract - Pine Script Variable
syminfo.minmove - Pine Script Variable
syminfo.mintick - Pine Script Variable
syminfo.pointvalue - Pine Script Variable
syminfo.prefix - Pine Script Variable
syminfo.pricescale - Pine Script Variable
syminfo.recommendations_buy - Pine Script Variable
syminfo.recommendations_buy_strong - Pine Script Variable
syminfo.recommendations_date - Pine Script Variable
syminfo.recommendations_hold - Pine Script Variable
syminfo.recommendations_sell - Pine Script Variable
syminfo.recommendations_sell_strong - Pine Script Variable
syminfo.recommendations_total - Pine Script Variable
syminfo.root - Pine Script Variable
syminfo.sector - Pine Script Variable
syminfo.session - Pine Script Variable
syminfo.shareholders - Pine Script Variable
syminfo.shares_outstanding_float - Pine Script Variable
syminfo.shares_outstanding_total - Pine Script Variable
syminfo.target_price_average - Pine Script Variable
syminfo.target_price_date - Pine Script Variable
syminfo.target_price_estimates - Pine Script Variable
syminfo.target_price_high - Pine Script Variable
syminfo.target_price_low - Pine Script Variable
syminfo.target_price_median - Pine Script Variable
syminfo.ticker - Pine Script Variable
syminfo.tickerid - Pine Script Variable
syminfo.timezone - Pine Script Variable
syminfo.type - Pine Script Variable
syminfo.volumetype - Pine Script Variable
ta - Pine Script Variable
ta.accdist - Pine Script Variable
ta.iii - Pine Script Variable
ta.nvi - Pine Script Variable
ta.obv - Pine Script Variable
ta.pvi - Pine Script Variable
ta.pvt - Pine Script Variable
ta.tr - Pine Script Variable
ta.vwap - Pine Script Variable
ta.wad - Pine Script Variable
ta.wvad - Pine Script Variable
table - Pine Script Variable
table.all - Pine Script Variable
time - PineScript Variable
time_close - PineScript Variable
time_tradingday - PineScript Variable
timeframe - Pine Script Variable
timeframe.isdaily - Pine Script Variable
timeframe.isdwm - Pine Script Variable
timeframe.isintraday - Pine Script Variable
timeframe.isminutes - Pine Script Variable
timeframe.ismonthly - Pine Script Variable
timeframe.isseconds - Pine Script Variable
timeframe.isticks - Pine Script Variable
timeframe.isweekly - Pine Script Variable
timeframe.main_period - Pine Script Variable
timeframe.multiplier - Pine Script Variable
timeframe.period - Pine Script Variable
timenow - PineScript Variable
volume - PineScript Variable
weekofyear - Pine Script Variable
year - Pine Script Variable
Constants
adjustment - Pine Script Constants
alert - Pine Script Constants
backadjustment - Pine Script Constants
barmerge - Pine Script Constants
color - Pine Script Constants
currency - Pine Script Constants
dayofweek - Pine Script Constants
display - Pine Script Constants
dividends - Pine Script Constants
earnings - Pine Script Constants
extend - Pine Script Constants
false - Pine Script Constant
font - Pine Script Constants
format - Pine Script Constants
hline - Pine Script Constants
label - Pine Script Constants
line - Pine Script Constants
location - Pine Script Constants
math - Pine Script Constants
order - Pine Script Constants
plot - Pine Script Constants
position - Pine Script Constants
scale - Pine Script Constants
session - Pine Script Constants
settlement_as_close - Pine Script Constants
shape - Pine Script Constants
size - Pine Script Constants
splits - Pine Script Constants
strategy - Pine Script Constants
text - Pine Script Constants
true - Pine Script Constant
xloc - Pine Script Constants
yloc - Pine Script Constants
Types
array - Pine Script Type
bool - Pine Script Type
box - Pine Script Type
chart.point - Pine Script Type
color - Pine Script Type
const - Pine Script Type
float - Pine Script Type
int - Pine Script Type
label - Pine Script Type
line - Pine Script Type
linefill - Pine Script Type
map - Pine Script Type
matrix - Pine Script Type
polyline - Pine Script Type
series - Pine Script Type
simple - Pine Script Type
string - Pine Script Type
table - Pine Script Type
Keywords
and - Pine Script Keyword
enum - Pine Script Keyword
export - Pine Script Keyword
for - Pine Script Keyword
for...in - Pine Script Keyword
if - Pine Script Keyword
import - Pine Script Keyword
method - Pine Script Keyword
not - Pine Script Keyword
or - Pine Script Keyword
switch - Pine Script Keyword
type - Pine Script Keyword
var - Pine Script Keyword
varip - Pine Script Keyword
while - Pine Script Keyword
Operators
=> - Pine Script Operator
= - Pine Script Operator
/ - Pine Script Operator
/= - Pine Script Operator
== - Pine Script Operator
> - Pine Script Operator
>= - Pine Script Operator
< - Pine Script Operator
<= - Pine Script Operator
- - Pine Script Operator
-= - Pine Script Operator
% - Pine Script Operator
%= - Pine Script Operator
* - Pine Script Operator
*= - Pine Script Operator
!= - Pine Script Operator
+ - Pine Script Operator
+= - Pine Script Operator
:= - Pine Script Operator
[] - Pine Script Operator
?: - Pine Script Operator
Select theme
Dark
Light
Auto
chart.is_kagi - Pine Script Variable
chart.is_kagi
Section titled “chart.is_kagi”
Overview
Section titled “Overview”
simple bool
Type
Section titled “Type”
bool
Qualifier
Section titled “Qualifier”
simple
See Also
Section titled “See Also”
chart.is_renko
chart.is_linebreak
chart.is_heikinashi
chart.is_pnf
chart.is_range