Quanta Docs
·Tài liệu Quanta hoàn chỉnh cho Quant Studio
Khái niệmactconcept/act-english
Act Quanta story — enter / close / signal
Block `act:` dùng cú pháp Quanta story, hoặc hàm truyền thống
Câu lệnh trong `act:` (story-style — khuyến nghị codegen)
| Lệnh | Quanta Story | Alias chấp nhận | Truyền thống |
|---|---|---|---|
| Vào long % NAV | enter long with wnav 5pct | enter buy with wnav 5pct | buy(weight: 5pct) / long(weight: 5pct) |
| Vào long cố định | enter long with size 1 | enter buy with size 1 | buy(qty: 1) / long(qty: 1) |
| Vào short % NAV | enter short with wnav 3pct | enter sell with wnav 3pct | sell(weight: 3pct) / short(weight: 3pct) |
| Vào short cố định | enter short with size 5000 | enter sell with size 5000 | sell(qty: 5000) / short(qty: 5000) |
| Đóng long | close long tag "exit" | close buy tag "exit" | sell(all: true) |
| Đóng short | close short | close sell | buy(all: true) |
| Đóng hết | flatten all | close all | sell(all: true) |
| Tag / note | tag "A" cùng dòng hoặc dòng sau enter/close | — | metadata |
| Inline enter | enter long with wnav 5pct tag "Entry" | enter buy … | buy(weight:…, tag:…) |
- Synonym long:
buy()≡long()≡enter long≡enter buy≡close short≡close sell. - Synonym short:
sell()≡short()≡enter short≡enter sell≡close long≡close buy. - Codegen AI ưu tiên
enter long|short/close long|short— không gen alias/buy/selltrừ khi user yêu cầu truyền thống.
Allocator signal (canonical v2)
quanta
score: sig_score = limit raw by -1.0 and 1.0 act: when cond: quanta score sig_score with strong sig_conf note "SMC buy" # legacy: signal(score: sig_score, confidence: sig_conf, rationale: "SMC buy")
#act#execution#v2#ai
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?").