Indicator Examples
Sub-panel oscillators, runtime surface demonstrations, and indicator pattern examples for ATK PyneScript V6.
Sub-Panel Examples#
Indicators that live below price — RSI, MACD, stochastic families, and custom volume panels. Good for studying multi-line, histogram, and mixed renderer patterns.
| File | What it demonstrates | Pattern | Download |
|---|---|---|---|
pynescript_rsi_indicator.py | RSI sub-panel with safe source fallback. | Pure frame builder. | Download |
pynescript_histogram_sub_indicator.py | ATK histogram rendering in sub-panel. | Row-oriented visual data. | Download |
pynescript_macd_sub_indicator.py | MACD plus histogram colors. | Multi-visual sub-panel. | Download |
pynescript_kdj.py | K, D, J oscillator with threshold lines. | Multi-line oscillator. | Download |
pynescript_stoch.py | Stochastic oscillator. | Dual-line oscillator. | Download |
pynescript_stochrsi.py | StochRSI with source handling. | Oscillator with source flexibility. | Download |
pynescript_volume_with_ma.py | Volume histogram plus moving average in sub-panel. | Dual-render ATK bridge panel. | Download |
pynescript_candlestick_subchart.py | Candles in a sub-panel. | ATK candlestick bridge. | Download |
Runtime Surface Examples#
Covers runtime surfaces that did not yet have dedicated teaching examples. Pick these when you already understand the starter scripts and need a focused reference for one specific namespace.
| File | What it demonstrates | Best use | Download |
|---|---|---|---|
pynescript_input_interactions_indicator.py | Extended input family, confirm metadata, and time/price input pairing. | Advanced input authoring. | Download |
pynescript_barstate_log_indicator.py | barstate.from_index(...) plus log.info/log.warning. | Runtime diagnostics and per-bar lifecycle flags. | Download |
pynescript_plot_visual_surface_indicator.py | plotbar, plotchar, plotarrow, barcolor, and bgcolor. | Plot-family migration reference. | Download |
pynescript_native_table_indicator.py | Native table.new, table.cell, and ctx.table.new. | Managed table widgets without the ATK bridge. | Download |
pynescript_request_seed_runtime_indicator.py | request.seed(...) with inline structured seeded data. | Seed-backed auxiliary data flows. | Download |
pynescript_map_runtime_indicator.py | map.new, map.put, map.get, map.keys, and map.size. | Keyed runtime bundle reference. | Download |
pynescript_matrix_runtime_indicator.py | matrix.new, row/col reads, and simple 2D aggregation. | Matrix runtime reference. | Download |
pynescript_library_enum_utils.py + pynescript_library_enum_import_indicator.py | Versioned library publishing, enum exports, and selective import binding. | Library authoring and reuse. | Download |
pynescript_strategy_intent_surface.py | Supported strategy.entry/order/exit/close/cancel* payload helpers alongside canonical mapped execution. | Intent-helper reference. | Download |
pynescript_alert_strategy.py + pynescript_strategy_alert_template_strategy.py | Alert calls, strategy template alerts, mapped tags, and alert-friendly trade metadata. | Alert authoring and payload design. | Download |