Quanta Docs
·Tài liệu Quanta hoàn chỉnh cho Quant Studio
Khái niệmrenderplot/liquid
`liquid` / `vol` — tích hợp Volume dưới chart nến
Volume dưới pane nến — một lớp màu (`in lime` / `body:`) + trend MA tùy chọn. Alias: `vol`.
Truyền thống
quanta
liquid(bar.volume, trend: sma(bar.volume, 20), trend_color: "red", title: "Volumes", body: cyan, opacity: 80pct, height: 20pct) liquid(bar.volume, title: "Volumes", body: lime, opacity: 50pct, height: 20pct)
Story-style
quanta
render: panel main: liquid bar.volume as "Volumes" in cyan with trend sma(bar.volume, 20) in "red" with opacity 80pct with height 20pct liquid bar.volume as "Volumes" in white with trend sma(bar.volume, 20) in "red" with opacity 50pct with height 20pct liquid bar.volume as "Volumess" in cl_cando with trend ma_v in "red" with opacity 50pct with height 20pct
in lime/body: lime— một màu cho bar (single stroke). Không dùngand …/border:.- Legacy
in X and Ychỉ lấy màu X (Y bị bỏ). - Modifier
with height 20pct(hoặcheight: 20pct) điều chỉnh chiều cao tối đa so với pane (mặc định 100%). trend/with trendtùy chọn để vẽ MA trên volume.
#plot
Xem thêm:concept/plots
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?").