Skip to main content Crate pine_lang Copy item path Source pub use pine_ast as ast;pub use pine_broker as broker;pub use pine_builtins as builtins;pub use pine_core as core;pub use pine_data as data;pub use pine_diagnostics as diagnostics;pub use pine_format as format;pub use pine_interpreter as interpreter;pub use pine_lexer as lexer;pub use pine_lint as lint;pub use pine_parser as parser;pub use pine_sema as sema;Backtest What a strategy produced over a run: the equity curve, the trade log, and
the summary values Pine exposes as strategy.*. Field names follow Pine’s. DirLoader A LibraryLoader that reads libraries from directories on disk. 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. Metrics Standard summary metrics of a run, from Backtest::generate_metrics . Every
figure is reported with the context that makes it comparable — returns beside
drawdown, wins beside profit factor. Run What a full replay produced. Owns its data, so the Script is dropped once
[Script::run] returns. RunResult A run’s per-bar outputs turned into columns. Script A compiled PineScript program, and the bars it will run over. ScriptBuilder Error Error type for Pine operations DataProvider LibraryLoader Loads the source of a library by its import path. check Parse and semantically analyze source without bars or execution, returning
every diagnostic. execute inputs_from_json Decode input.* overrides from a JSON object — {"Length": 20, "Smooth": true, "Source": "close"} — keyed by input title, for
ScriptBuilder::with_inputs .