Skip to main content Crate pine_core Copy item path Source impl_output_traits_delegate Macro to easily implement all output traits by delegating to a base field AlertCondition An alertcondition(...) declaration — a named alert with a message. Bar Represents a single bar/candle of market data Color Represents a color with RGBA components Data Everything a script needs to know about the market it is running on: the
bars themselves, and the symbol they belong to. DefaultPineOutput Default implementation of PineOutput that supports all features FileResolver A LibraryLoader backed by an in-memory set of named sources: register a
library’s text under a path and import <path> resolves against it. FillObject Represents a box drawable object
A fill(...) between two plots or hlines. GlobalContext Chart-wide settings written by global functions like bgcolor/barcolor. Indicator The indicator(...) declaration — a script’s identity and display settings. Input A declared script input (input.int(...), input.source(...), …). Label Represents a label drawable object LineObject A trend line drawn between two points, (x1, y1)–(x2, y2). LogEntry A log entry with level and message Ohlcv One row of raw market data, before it is placed in a series. PineBox Plot Represents a plot output Plotarrow Represents a plotarrow output Plotbar Represents a plotbar output Plotcandle Represents a plotcandle output Plotchar Represents a plotchar output Plotshape Represents a plotshape output SeriesBuffer A capped window of past values, newest first. SymInfo Symbol information the host supplies for a script run. Table A table overlay: a fixed grid of cells anchored to a chart position. TableCell One cell of a Table . Timeframe The chart timeframe a script runs on, exposed as timeframe.*. TimeframeError Why an interval string could not be read as a timeframe. InputValue The default value of a declared input, preserved with its type so a host can
render the right settings widget. LogLevel Log level PineVersion The language version a script targets, declared by the //@version=N
annotation at the top of a script. TimeframeUnit The unit of a Timeframe . Pine writes each as a suffix on the multiplier
("3D", "5S", "1W"); minutes have no suffix ("60"). VersionError A missing annotation is deliberately not represented here — that is
Ok(None) from PineVersion::detect , because choosing what to assume is
the caller’s policy, not a failure to resolve. MAX_LOOKBACK The most values any single call site retains. Matches the lookback Pine
allows, and bounds memory when a script asks for an absurd length. AlertConditionOutput Extension trait for recording declared alert conditions. BoxOutput Extension trait for box output DataProvider A source of market data: given a symbol and a Pine timeframe, produce its
bars. FillOutput Extension trait for recording fill(...) areas. GlobalOutput Extension trait for chart-wide globals (bgcolor, barcolor). IndicatorOutput Extension trait for the script’s indicator(...) declaration. InputOutput Extension trait for recording declared inputs LabelOutput Extension trait for label output LibraryLoader Loads the source of a library by its import path. LineOutput Extension trait for line output LogOutput Extension trait for logging output PineOutput Base trait for all output implementations PlotOutput Extension trait for plot-related output TableOutput Extension trait for table output ProviderError The error a DataProvider fails with.