Quanta Docs

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

Hàmvolumefn/obv

obv(close: 'pd.Series', vol: 'pd.Series', anchor: 'str' = 'day') -> 'pd.Series'

On-Balance Volume — tích luỹ ±vol theo sign(delta close), reset theo anchor (day/week/month/quarter).

Tóm tắt: On-Balance Volume — tích luỹ ±vol theo sign(delta close), reset theo anchor (day/week/month/quarter).

Signature: obv(close: 'pd.Series', vol: 'pd.Series', anchor: 'str' = 'day') -> 'pd.Series'

Ví dụ:

quanta
# traditional: 
o = obv(market.close, market.volume, "month")
# default day: 
o = obv(c, v)
# namespace: 
o = obv_de
#function#volume
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?").