Quanta Docs

Tài liệu Quanta hoàn chỉnh cho Quant Studio

Khái niệmrenderplot/band

`band` — vùng fill (Bollinger / Keltner / Donchian)

Fill giữa hai series hoặc struct indicator; hỗ trợ màu động và viền solid/dash/dot.

Vẽ vùng giữa hai biên (hoặc cả mid khi truyền struct bbands).

Story-style (`render:`):

quanta
render:
  panel main:
    band bbs as "BB" in color_change dotted with opacity 10pct
    band bbs.upper to bbs.lower as "BB" in color_change dashed with opacity 10pct

Cú pháp truyền thống:

quanta
band(bbs, color: color_change, dash: true, title: "bbs", opacity: 10pct)
band(bbs.upper, bbs.lower, color: color_change, dash: true, title: "bbs", opacity: 10pct)

Thứ tự modifier: as → at → in → dashed/dotted/solid → with width/opacity → shaped Khẩu quyết: *Name it "as" · place it "at" · paint it "in" · style it "with" · shap"ed"*

  • band bbs / band(bbs, …) → vẽ upper + mid + lower từ struct.
  • band bbs.upper to bbs.lower / hai đối số → chỉ fill 2 biên (ẩn mid).
  • in color_change — màu fill động theo bar.
#plot#band
Trợ lý Quanta"Học nhanh hơn, hiệu quả hơn cùng AI"

Xin chào! Tôi là trợ lý học ngôn ngữ Quanta. Hỏi tôi về cú pháp, hàm, hoặc cách viết một chiến lược cụ thể (ví dụ: "Làm sao để xác định đỉnh đáy để vẽ trendline?").