Chuyển đến nội dung chính
ATK Pine Script®
Quay lại tài liệu

Trình duyệt ví dụ

Duyệt, xem trước và tải xuống các script ví dụ PyneScript V6. Mỗi ví dụ là một file Python độc lập sẵn sàng sử dụng trong ATK.

Indicator Starter

Khởi đầu

indicator, input.int, input.source, ta.rsi, hline.

.py

Strategy Starter

Khởi đầu

EMA crossover, mapped execution fields, build_mapped_trade_frame.

.py

Visual Indicator Starter

Khởi đầu

plot, plotshape, hline, static frame.attrs payload for box/label/line.

.py

RSI Indicator

Indicator

RSI sub-panel with safe source fallback.

.py

Histogram Sub-Panel

Indicator

ATK histogram rendering in sub-panel.

.py

MACD Sub-Panel

Indicator

MACD plus histogram colors.

.py

KDJ Oscillator

Indicator

K, D, J oscillator with threshold lines.

.py

Stochastic Oscillator

Indicator

Dual-line stochastic oscillator.

.py

StochRSI

Indicator

StochRSI with source handling.

.py

Volume with MA

Indicator

Volume histogram plus moving average in sub-panel.

.py

SuperTrend Indicator

Indicator

SuperTrend with ATR-based trend detection.

.py

SuperTrend Color Line

Indicator

SuperTrend with color-coded trend line.

.py

Murrey Math Lines V2

Indicator

Murrey Math Lines with support/resistance levels.

.py

Input Interactions

Indicator

Extended input family, confirm metadata, time/price pairing.

.py

Barstate & Log

Indicator

barstate.from_index plus log.info/log.warning.

.py

Plot Visual Surface

Indicator

plotbar, plotchar, plotarrow, barcolor, bgcolor.

.py

Native Table

Indicator

Native table.new, table.cell, and ctx.table.new.

.py

Request Seed Runtime

Indicator

request.seed with inline structured seeded data.

.py

Map Runtime

Indicator

map.new, map.put, map.get, map.keys, map.size.

.py

Matrix Runtime

Indicator

matrix.new, row/col reads, simple 2D aggregation.

.py

Bollinger Bands Fill

Indicator

Plots plus linefill.new for band visualization.

.py

SMA Crossover Strategy

Strategy

SMA crossover mapped strategy.

.py

EMA + ATR Strategy

Strategy

EMA and ATR combined test strategy.

.py

Bracket Strategy

Strategy

Bracket exits with mapped_sl and mapped_tp.

.py

Trailing Stop Strategy

Strategy

Trailing stop with mapped_trail_offset.

.py

RSI Filter Strategy

Strategy

RSI gating around a crossover entry system.

.py

Limit Entry Strategy

Strategy

LIMIT entries with mapped_entry_limit_price.

.py

Stop Market Entry

Strategy

STOP_MARKET entries with mapped_entry_trigger_price.

.py

Stop Limit Entry

Strategy

STOP_LIMIT entries with trigger and limit fields.

.py

Reduce-Only Exit

Strategy

mapped_reduce_only plus IOC exit-management.

.py

Slippage Strategy

Strategy

Declaration-level slippage modeling.

.py

Commission Strategy

Strategy

Fee modeling with commission_type and commission_value.

.py

Margin Strategy

Strategy

Margin and percent-of-equity sizing.

.py

Default Quantity

Strategy

Default quantity and sizing defaults.

.py

Pyramiding Strategy

Strategy

Pyramiding add-on entry flow.

.py

Limit Fill Assumption

Strategy

backtest_fill_limits_assumption with limit-entry design.

.py

MTF Confirmation

Strategy

request.security with lambda and HTF trend confirmation.

.py

Alert Strategy

Strategy

Alert calls and alert-friendly trade metadata.

.py

Strategy Alert Template

Strategy

strategy_alert_message plus alert-friendly mapped tags.

.py

Strategy Intent Surface

Strategy

strategy.entry/order/exit/close/cancel payload helpers.

.py

MT5 GTD Pending

Strategy

Good-till-date pending order strategy for MT5.

.py

UTBOT Strategy

Strategy

UTBOT strategy using shared core helpers.

.py

UTBOT Strategy Full

Strategy

UTBOT with explicit trade quantity input.

.py

ATK Plot Fill Bridge

Visual

ctx.atk.plot_line with ctx.atk.fill_between.

.py

ATK Shape Zone Bridge

Visual

Shape text, polyline, rectangles, rectangle ray.

.py

ATK Table Bridge

Visual

Dashboard table using ctx.atk.table.

.py

ATK Profile Candle Bridge

Visual

Composite visuals with candles and horizontal profile bars.

.py

Plot Shape Above

Visual

Conditional plotshape above bar.

.py

Plot Shape Below

Visual

Conditional plotshape below bar.

.py

Color Text Overlay

Visual

Styled text overlays with color, size, font, weight.

.py

Color Line Text

Visual

Line-text bundles with ATK bridge.

.py

Color Arrow

Visual

Directional arrows with per-row direction and color.

.py

Chart Point Showcase

Visual

chart.point, line, label, box, polyline APIs.

.py

Visual Settings Lifecycle

Visual

Object creation and mutation lifecycle across line, box, fill.

.py

Candlestick

Visual

Simple plotcandle declaration.

.py

Color Candlestick

Visual

Color-per-bar candle rendering.

.py

Candlestick Sub-Chart

Visual

Candles in a sub-panel via ATK bridge.

.py

Volume Profile Fixed Range

Visual

Volume profile payload and value-area rendering.

.py

Volume Profile with Rectangle

Visual

Profile variant with rectangle integration.

.py

Library Publish V1

Library

Versioned library publishing pattern (v1).

.py

Library Publish V2

Library

Versioned library publishing pattern (v2).

.py

Library Import Indicator

Library

Selective import from published library.

.py

Library Enum Utils

Library

Versioned library with enum exports.

.py

Library Enum Import

Library

Enum exports and selective import binding.

.py

Library Signal Utils

Library

Shared signal utility library.

.py

Library Upgrade Indicator

Library

Library version upgrade pattern.

.py

UTBOT Indicator

Nâng cao

UTBOT indicator with ATK arrow rendering.

.py

SMC Framework

Nâng cao

Advanced SMC framework using smart-money concepts.

.py

SMC ICT Confluence

Nâng cao

ICT-style confluence with summary table.

.py