Quanta Docs
·Tài liệu Quanta hoàn chỉnh cho Quant Studio
Khái niệmactstmt/signal
`quanta score` / `signal(...)` — allocator output
Story (mặc định AI): `quanta score expr with strong|conf|confidence conf note "…"`. Legacy: `signal(score:, confidence:, rationale:)`.
quanta
act: when fast crossover slow: quanta score sig_score with strong sig_conf note "EMA cross" # hoặc ngoài when (mỗi bar): quanta score sig_score with strong sig_conf note "EMA {fast_len}/{slow_len} Cross" # legacy: signal(score: 0.7, confidence: 0.65, rationale: 'EMA cross')
score > 0→ long view;< 0→ short / exit.confidenceảnh hưởng kích thước weight (xem allocator HRHR/Kelly).note "…"hiển thị trên UI — chèn biến bằng{var}/{var:.1f}(không cầnf"…"); biến từparams:hoặc block tên tự do (detect:,score:, …) đều resolve.quanta scorecó thể đặt trong hoặc ngoàiwhen— ngoàiwhenphát mỗi bar (chart-signals / allocator).- Xuống dòng thụt lề sau
quanta scorechowith strong …/note "…"(giốngrender:). score/confidencecó thể là Series: workshop chart-signals và preview căn đúng bar hiện tại (ví dụsignal(score: r)trongwhen RSI…).- Rubic điểm (điểm cộng theo TA): trong
logics:dùngiif(cond, điểm, 0.0), cộng dồn, rồi chuẩn hoá tổng về [-1,+1] (vdlimit sum / scale by -1.0 and 1.0hoặctanh(...)) trướcquanta score; RSI 0–100 làm độ tin cậy →limit rsi / 100.0 by 0.0 and 1.0. - Codegen AI (mặc định):
sig_score = limit <đã scale> by -1.0 and 1.0rồiquanta score sig_score with strong sig_conf note "…"; legacysignal(score:…)chỉ khi user yêu cầu cú pháp truyền thống. - Có thể gọi nhiều
signal()trong cùng 1 bar (engine merge theo score×conf).
#output
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?").