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ệnhQuanta StoryAlias chấp nhậnTruyền thống
Vào long % NAVenter long with wnav 5pctenter buy with wnav 5pctbuy(weight: 5pct) / long(weight: 5pct)
Vào long cố địnhenter long with size 1enter buy with size 1buy(qty: 1) / long(qty: 1)
Vào short % NAVenter short with wnav 3pctenter sell with wnav 3pctsell(weight: 3pct) / short(weight: 3pct)
Vào short cố địnhenter short with size 5000enter sell with size 5000sell(qty: 5000) / short(qty: 5000)
Đóng longclose long tag "exit"close buy tag "exit"sell(all: true)
Đóng shortclose shortclose sellbuy(all: true)
Đóng hếtflatten allclose allsell(all: true)
Tag / notetag "A" cùng dòng hoặc dòng sau enter/closemetadata
Inline enterenter long with wnav 5pct tag "Entry"enter buy …buy(weight:…, tag:…)
  • Synonym long: buy()long()enter longenter buyclose shortclose sell.
  • Synonym short: sell()short()enter shortenter sellclose longclose buy.
  • Codegen AI ưu tiên enter long|short / close long|short — không gen alias/buy/sell trừ 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?").