Skip to content
Algo Trade Analytics Docs
Search
Ctrl
K
Cancel
GitHub
Twitter
Select theme
Dark
Light
Auto
Getting Started
Introduction
Quick Start
Integration Guide
Overview
CSV Export & Import
Webhook Integration
Algo Trade Analytics Webhook API
Pine Script Export
User Guides
Knowledge Base
Strategy Configuration
Strategy Samples
PineScript Learning
154+ pages
Introduction
Fundamentals
Basic Syntax
How-To Guides
57
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()`
Function Reference
55
alert() - Pine Script Function
alertcondition() - Pine Script Function
array namespace
barcolor() - Pine Script Function
bgcolor() - Pine Script Function
bool() - Pine Script Function
box namespace
chart namespace
color namespace
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
int() - Pine Script Function
label namespace
library() - Pine Script Function
line namespace
linefill namespace
log() - Pine Script Function
map() - Pine Script Function
math namespace
matrix namespace
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
request namespace
runtime namespace
second() - Pine Script Function
str namespace
strategy() - Pine Script Function
string() - Pine Script Function
syminfo namespace
ta namespace
table namespace
ticker namespace
time() - Pine Script Function
time_close() - Pine Script Function
timeframe namespace
timestamp() - Pine Script Function
weekofyear() - Pine Script Function
year() - Pine Script Function
Variable Reference
42
ask - PineScript Variable
bar_index - PineScript Variable
barstate - PineScript Variable
bid - PineScript Variable
box - PineScript Variable
chart - PineScript Variable
close - PineScript Variable
dayofmonth - PineScript Variable
dayofweek - PineScript Variable
dividends - PineScript Variable
earnings - PineScript Variable
high - PineScript Variable
hl2 - PineScript Variable
hlc3 - PineScript Variable
hlcc4 - PineScript Variable
hour - PineScript Variable
label - PineScript Variable
last_bar_index - PineScript Variable
last_bar_time - PineScript Variable
line - PineScript Variable
linefill - PineScript Variable
low - PineScript Variable
minute - PineScript Variable
month - PineScript Variable
na - PineScript Variable
ohlc4 - PineScript Variable
open - PineScript Variable
polyline - PineScript Variable
second - PineScript Variable
session - PineScript Variable
strategy - PineScript Variable
syminfo - PineScript Variable
ta - PineScript Variable
table - PineScript Variable
time - PineScript Variable
time_close - PineScript Variable
time_tradingday - PineScript Variable
timeframe - PineScript Variable
timenow - PineScript Variable
volume - PineScript Variable
weekofyear - PineScript Variable
year - PineScript Variable
GitHub
Twitter
Select theme
Dark
Light
Auto
polyline - PineScript Variable
polyline
Section titled “polyline”
Overview
Section titled “Overview”
Reference for the polyline built-in variable.
Type
Section titled “Type”
series