Python
Python API for OHLC-bar indicators and strategies.
- Decorators
Top-level annotations that turn a Python file into an indicator, strategy, script, or day-start hoist.
- Inputs
Per-strategy parameters that surface in the analyzer UI for tuning and sweeping.
- Data Access
Price series, OHLC columns, TBBO tick fields, composite prices, and time components.
- Column Resolvers
Parquet-shape-portable helpers: volume_series, delta_series, vwap_series, df_col_or.
- Plotting
Lines, histograms with per-bar colors, fills, hlines, and shape markers.
- Signal Helpers
Crossover detection, threshold checks, streak counting, and order-flow primitives (cvd, imbalance, vwap_band).
- Technical Analysis
Vectorized ta.* namespace: moving averages, RSI, MACD, Bollinger, ATR, and friends.
- Styling & Tags
Bar/wick/border coloring with 8-char hex alpha, plotshape markers, region shading, and define_tag for signal classification.
- Custom Canvas
Free-form 2D canvas overlays via custom_layer(...). For visuals no predefined plot type covers: TF boundaries, R-multiple labels, candle-style overlays, custom histograms.
- Logging & Enums
log/warn/debug/print_series/print_df plus Source/DataMode/PlotType/Timeframe enums.
- Indicators Module
Compose indicators from strategies via use_indicator() and the indicators.* namespace.
- Backtest Results
Load and analyze prior backtest runs from notebook scripts.
- Script Helpers
get_chart_data, export_csv, and other helpers available to @script files.