PyneCore built-in library reference — functions, variables, and constants
ta
Technical analysis indicators and functions
math
Mathematical functions and constants
str
String manipulation functions
color
Color functions and color constants
array
Dynamic array operations
matrix
Two-dimensional matrix operations
map
Key-value map operations
request
Data requests from other symbols and timeframes
strategy
Strategy order management — entry, exit, close, and order functions
strategy.closedtrades
Information about closed trades in a strategy
strategy.opentrades
Information about open trades in a strategy
strategy.risk
Strategy risk management rules
label
Chart labels — create, modify, and style text labels
line
Chart lines — create and modify line drawings
box
Chart boxes — create and modify rectangular drawings
table
Data tables — create and populate on-chart tables
polyline
Multi-segment line drawings
linefill
Fill areas between two lines
syminfo
Symbol information — ticker, exchange, currency, session, etc.
timeframe
Timeframe detection and conversion utilities
barstate
Bar state flags — first bar, last bar, new bar, etc.
chart
Chart properties — type, colors, visible range
session
Trading session detection
log
Logging functions for debugging
runtime
Runtime error handling
alert
Alert triggering functions
plot
Plot functions for displaying data on charts
hline
Horizontal line drawing functions and style constants
barmerge
Bar merge constants for request.security() gaps and lookahead
currency
Currency code constants (USD, EUR, etc.)
dayofweek
Day of week constants (sunday through saturday)
display
Plot display mode constants
extend
Line/box extend direction constants
font
Font family constants
format
Number format constants for labels and tooltips
location
Plot location constants (abovebar, belowbar, etc.)
order
Sort order constants (ascending, descending)
position
Table/label position constants
scale
Scale type constants for indicators
shape
plotshape marker shape constants
size
Label and shape size constants
text
Text alignment and wrapping constants
adjustment
Dividend adjustment constants
dividends
Dividend data field constants
earnings
Earnings data field constants
xloc
X-axis location constants for labels and lines
yloc
Y-axis location constants for labels
pivotpointtype
Pivot point calculation type constants