spacetrader

OBV Accumulation/Distribution combination

OBV takes difference between old close and new close and multiplies by volume without considering high and low.
This assigns the entire volume into a single direction even tho movement could've been in both.


Accum/dist takes difference between close and high and low without considering previous close or open. This causes huge deviation from OBV when you have close or open far from high or low and price moving in the other direction like in a series of descending hammers.


This is attempt to combine both so relative motion between candles is detected and volume direction is assigned based relative to movement within a candle to account for volume in both directions.

+ and - depends if close is above previous close (+ if above, - if below)

Maximum upward volume counts if close = high and previous close = low, this makes multiplier 1 and thus entire volume is counted upwards

Maximum downward volume counts if close = low and previous close = high, this makes multiplier -1 and thus entire volume is counted downwards.

Zero volume movement occurs when close = previous close.

Half upward volume movement occurs if close-previous_close is half the range from high-low.
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?